Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

MaxAdjOrdering.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/basic.h>
35 #include <ogdf/basic/Graph.h>
37 #include <ogdf/basic/geometry.h>
38 #include <ogdf/basic/graphics.h>
40 
41 namespace ogdf {
42 
52 private:
62  void m_calcAllMAOs_recursion(
63  int n,
64  ListPure<node> currentOrder,
65  ListPure<node> currentUnsorted,
68  );
69 
82  void m_calcAllMAOs_recursion(
83  int n,
84  ListPure<node> currentOrder,
85  ListPure<ListPure<edge>> currentForest,
86  ListPure<node> currentUnsorted,
88  ListPure<ListPure<node>> *MAOs,
90  );
91 public:
99  ~MaxAdjOrdering();
100 
106  void calc(
107  const Graph *G,
108  ListPure<node> *MAO
109  );
116  void calcBfs(
117  const Graph *G,
118  ListPure<node> *MAO
119  );
120 
127  void calc(
128  const Graph *G,
129  node s,
130  ListPure<node> *MAO
131  );
132 
139  void calc(
140  const Graph *G,
141  ListPure<node> *MAO,
142  ListPure<ListPure<edge>> *Forests
143  );
144 
152  void calc(
153  const Graph *G,
154  node s,
155  ListPure<node> *MAO,
156  ListPure<ListPure<edge>> *Forests
157  );
158 
164  void calcAll(
165  const Graph *G,
166  ListPure<ListPure<node>> *MAOs
167  );
168 
175  void calcAll(
176  const Graph *G,
177  ListPure<ListPure<node>> *MAOs,
179  );
185  bool testIfMAO(
186  const Graph *G,
187  ListPure< node> *Ordering
188  );
189 
195  bool testIfMAOBfs(
196  const Graph *G,
197  ListPure< node> *Ordering
198  );
199 
200 
211  bool testIfAllMAOs(
212  const Graph *G,
213  ListPure<ListPure<node>> *Orderings,
214  ListPure<ListPure<node>> *Perms
215  );
221  void visualize(
222  GraphAttributes *GA,
223  ListPure<node> *MAO
224  );
225 
232  void visualize(
233  GraphAttributes *GA,
234  ListPure<node> *MAO,
236  );
237  };
238 
239 }
Declaration of class GraphAttributes which extends a Graph by additional attributes.
Calculate one or all Maximum Adjacency Ordering(s) of a given simple undirected graph.
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
Doubly linked lists.
Definition: List.h:41
Stores additional attributes of a graph (like layout information).
Class for the representation of nodes.
Definition: Graph_d.h:169
Basic declarations, included by all source files.
Includes declaration of graph class.
The namespace for all OGDF objects.
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment, DPolygon, DRect, DIntersectableRect.
This class is a simple layout that places nodes next to each other and draws edges as bows above the ...
Declaration of basic types for graphics.