Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

MMOrder.h
Go to the documentation of this file.
1 
33 #pragma once
34 
35 #include <ogdf/planarity/PlanRep.h>
38 
39 namespace ogdf {
40 
41 class MMOrder
42 {
43 public:
44  MMOrder() { }
45 
46  void init(PlanRep &PG, ShellingOrderModule &compOrder, adjEntry adjExternal);
47 
48  int rank(node v) const {
49  return m_lmc.rank(v);
50  }
51 
52  int length() const {
53  return m_lmc.length();
54  }
55 
56  const ShellingOrderSet &operator[](int k) const {
57  return m_lmc[k];
58  }
59 
60  node operator()(int k, int i) const {
61  return m_lmc(k,i);
62  }
63 
64  int len(int k) const {
65  return m_lmc.len(k);
66  }
67 
69 
70 
71 private:
73 };
74 
75 }
The node set in a shelling order of a graph.
Definition: ShellingOrder.h:43
Base class for modules that compute a shelling order of a graph.
int len(int k) const
Definition: MMOrder.h:64
const ShellingOrderSet & operator[](int k) const
Definition: MMOrder.h:56
Declaration of a base class for planar representations of graphs and cluster graphs.
int length() const
Returns the number of sets in the node partition.
node operator()(int k, int i) const
Definition: MMOrder.h:60
void init(PlanRep &PG, ShellingOrderModule &compOrder, adjEntry adjExternal)
Declares classes ShellingOrderSet and ShellingOrder.
Array< node > m_left
Definition: MMOrder.h:68
Declares the base class ShellingOrderModule for modules that compute a shelling order of a graph...
Class for the representation of nodes.
Definition: Graph_d.h:169
The shelling order of a graph.
Array< node > m_right
Definition: MMOrder.h:68
int rank(node v) const
Returns the rank of node v, where rank(v) = i iff v is contained in Vi.
int length() const
Definition: MMOrder.h:52
ShellingOrder m_lmc
Definition: MMOrder.h:72
The namespace for all OGDF objects.
int rank(node v) const
Definition: MMOrder.h:48
Class for adjacency list elements.
Definition: Graph_d.h:79
Planarized representations (of a connected component) of a graph.
Definition: PlanRep.h:59
int len(int i) const
Returns the length of the i-th order set Vi.