Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

MMOrder.h
Go to the documentation of this file.
1 
33 #pragma once
34 
35 #include <ogdf/planarity/PlanRep.h>
38 
39 
40 namespace ogdf {
41 
42 
43 class MMOrder
44 {
45 public:
46  MMOrder() { }
47 
48  void init(PlanRep &PG, ShellingOrderModule &compOrder, adjEntry adjExternal);
49 
50  int rank(node v) const {
51  return m_lmc.rank(v);
52  }
53 
54  int length() const {
55  return m_lmc.length();
56  }
57 
58  const ShellingOrderSet &operator[](int k) const {
59  return m_lmc[k];
60  }
61 
62  node operator()(int k, int i) const {
63  return m_lmc(k,i);
64  }
65 
66  int len(int k) const {
67  return m_lmc.len(k);
68  }
69 
71 
72 
73 private:
75 };
76 
77 
78 } // end namespace ogdf
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:66
const ShellingOrderSet & operator[](int k) const
Definition: MMOrder.h:58
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:62
void init(PlanRep &PG, ShellingOrderModule &compOrder, adjEntry adjExternal)
Declares classes ShellingOrderSet and ShellingOrder.
Array< node > m_left
Definition: MMOrder.h:70
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:167
The shelling order of a graph.
Array< node > m_right
Definition: MMOrder.h:70
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:54
ShellingOrder m_lmc
Definition: MMOrder.h:74
The namespace for all OGDF objects.
int rank(node v) const
Definition: MMOrder.h:50
Class for adjacency list elements.
Definition: Graph_d.h:78
Planarized representations (of a connected component) of a graph.
Definition: PlanRep.h:60
int len(int i) const
Returns the length of the i-th order set Vi.