Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

ShellingOrderModule.h
Go to the documentation of this file.
1 
33 #pragma once
34 
35 #include <ogdf/basic/Graph.h>
36 #include <ogdf/basic/basic.h>
37 
38 namespace ogdf {
39 class ShellingOrder;
40 class ShellingOrderSet;
41 template<class E>
42 class List;
43 
49 public:
51 
57  void call(const Graph& G, ShellingOrder& order, adjEntry adj = nullptr);
58 
60 
66  void callLeftmost(const Graph& G, ShellingOrder& order, adjEntry adj = nullptr);
67 
69  void baseRatio(double x) { m_baseRatio = x; }
70 
72  double baseRatio() const { return m_baseRatio; }
73 
74  virtual ~ShellingOrderModule() { }
75 
76 protected:
78 
86  virtual void doCall(const Graph& G, adjEntry adj, List<ShellingOrderSet>& partition) = 0;
87 
88  double m_baseRatio;
89 };
90 
91 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
Graph.h
Includes declaration of graph class.
ogdf::ShellingOrderModule
Base class for modules that compute a shelling order of a graph.
Definition: ShellingOrderModule.h:48
ogdf::ShellingOrderModule::baseRatio
double baseRatio() const
Returns the current setting of the option base ratio.
Definition: ShellingOrderModule.h:72
ogdf::AdjElement
Class for adjacency list elements.
Definition: Graph_d.h:142
ogdf::ShellingOrderModule::baseRatio
void baseRatio(double x)
Sets the option base ratio to x.
Definition: ShellingOrderModule.h:69
ogdf::ShellingOrderModule::~ShellingOrderModule
virtual ~ShellingOrderModule()
Definition: ShellingOrderModule.h:74
ogdf::List
Doubly linked lists (maintaining the length of the list).
Definition: DfsMakeBiconnected.h:40
ogdf::ShellingOrderModule::m_baseRatio
double m_baseRatio
Definition: ShellingOrderModule.h:88
ogdf::Graph
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:869
basic.h
Basic declarations, included by all source files.
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
ogdf::ShellingOrder
The shelling order of a graph.
Definition: ShellingOrder.h:116