Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

SchnyderLayout.h
Go to the documentation of this file.
1 
33 #pragma once
34 
35 #include <ogdf/basic/Graph_d.h>
37 #include <ogdf/basic/List.h>
38 
39 namespace ogdf {
40 
61 
62 public:
64 
70  enum class CombinatorialObjects {
71  VerticesMinusDepth,
72  Faces
76  };
79 
81  CombinatorialObjects getCombinatorialObjects() { return m_combinatorialObjects; }
82 
84  void setCombinatorialObjects(CombinatorialObjects combinatorialObjects) {
85  m_combinatorialObjects = combinatorialObjects;
86  }
87 
88 protected:
89  virtual void doCall(
90  const Graph &G,
91  adjEntry adjExternal,
92  GridLayout &gridLayout,
93  IPoint &boundingBox,
94  bool fixEmbedding) override;
95 
96 private:
97  void contract(Graph& G, node a, node b, node c, List<node>& L);
98 
99  void realizer(
100  GraphCopy& G,
101  const List<node>& L,
102  node a,
103  node b,
104  node c,
105  EdgeArray<int>& rValues,
106  GraphCopy& T);
107 
108  void subtreeSizes(
109  EdgeArray<int>& rValues,
110  int i,
111  node r,
112  NodeArray<int>& size);
113 
114  void prefixSum(
115  EdgeArray<int>& rValues,
116  int i,
117  node r,
118  const NodeArray<int>& val,
120 
121  void schnyderEmbedding(
122  GraphCopy& GC,
123  GridLayout &gridLayout,
124  adjEntry adjExternal);
125 
128 
129 };
130 
131 }
Representation of a graph&#39;s grid layout.
Definition: GridLayout.h:46
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:492
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
Base class for planar grid layout algorithms.
void setCombinatorialObjects(CombinatorialObjects combinatorialObjects)
Sets the type of combinatorial objects whose number corresponds to the node coordinates.
The class SchnyderLayout represents the layout algorithm by Schnyder [Sch90].
CombinatorialObjects
Each node in a Schnyder wood splits the graph into three regions.
Declaration of interface for grid layout algorithms.
Doubly linked lists (maintaining the length of the list).
Definition: List.h:40
CombinatorialObjects m_combinatorialObjects
Determines how the barycentric coordinates of each node are computed.
Copies of graphs supporting edge splitting.
Definition: GraphCopy.h:249
Class for the representation of nodes.
Definition: Graph_d.h:169
Pure declaration header, find template implementation in Graph.h.
The namespace for all OGDF objects.
CombinatorialObjects getCombinatorialObjects()
Returns the type of combinatorial objects whose number corresponds to the node coordinates.
Container::value_type sum(const Container &values)
Returns the sum of an iterable container of given values.
Definition: Math.h:245
Class for adjacency list elements.
Definition: Graph_d.h:79
Declaration of doubly linked lists and iterators.