Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

ShellingOrderModule.h
Go to the documentation of this file.
1 
33 #pragma once
34 
36 
37 
38 namespace ogdf {
39 
40 
46 {
47 public:
49 
55  void call(const Graph &G, ShellingOrder &order, adjEntry adj = nullptr);
56 
58 
64  void callLeftmost(const Graph &G, ShellingOrder &order, adjEntry adj = nullptr);
65 
67  void baseRatio(double x) {m_baseRatio = x;}
68 
70  double baseRatio() const {return m_baseRatio;}
71 
72  virtual ~ShellingOrderModule() { }
73 
74 protected:
76 
84  virtual void doCall(const Graph &G,
85  adjEntry adj,
86  List<ShellingOrderSet> &partition) = 0;
87 
88  double m_baseRatio;
89 
90 };
91 
92 
93 } // end namespace ogdf
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 modules that compute a shelling order of a graph.
double baseRatio() const
Returns the current setting of the option base ratio.
void baseRatio(double x)
Sets the option base ratio to x.
Declares classes ShellingOrderSet and ShellingOrder.
Doubly linked lists (maintaining the length of the list).
Definition: List.h:39
The shelling order of a graph.
The namespace for all OGDF objects.
Class for adjacency list elements.
Definition: Graph_d.h:78