Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

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 
55 
56 public:
58 
59 protected:
60  virtual void doCall(
61  const Graph &G,
62  adjEntry adjExternal,
63  GridLayout &gridLayout,
64  IPoint &boundingBox,
65  bool fixEmbedding) override;
66 
67 private:
68  void contract(Graph& G, node a, node b, node c, List<node>& L);
69 
70  void realizer(
71  GraphCopy& G,
72  const List<node>& L,
73  node a,
74  node b,
75  node c,
76  EdgeArray<int>& rValues,
77  GraphCopy& T);
78 
79  void subtreeSizes(
80  EdgeArray<int>& rValues,
81  int i,
82  node r,
83  NodeArray<int>& size);
84 
85  void prefixSum(
86  EdgeArray<int>& rValues,
87  int i,
88  node r,
89  const NodeArray<int>& val,
90  NodeArray<int>& sum);
91 
92  void schnyderEmbedding(
93  GraphCopy& GC,
94  GridLayout &gridLayout,
95  adjEntry adjExternal);
96 };
97 
98 
99 } // end namespace ogdf
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:472
#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.
The class SchnyderLayout represents the layout algorithm by Schnyder [Sch90].
Integer points.
Definition: geometry.h:156
Declaration of interface for grid layout algorithms.
Doubly linked lists (maintaining the length of the list).
Definition: List.h:39
Copies of graphs supporting edge splitting.
Definition: GraphCopy.h:250
Class for the representation of nodes.
Definition: Graph_d.h:167
Pure declaration header, find template implementation in Graph.h.
The namespace for all OGDF objects.
Class for adjacency list elements.
Definition: Graph_d.h:78
Declaration of doubly linked lists and iterators.