Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
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
38namespace ogdf {
39class ShellingOrder;
40class ShellingOrderSet;
41template<class E>
42class List;
43
49public:
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
75
76protected:
78
86 virtual void doCall(const Graph& G, adjEntry adj, List<ShellingOrderSet>& partition) = 0;
87
88 double m_baseRatio;
89};
90
91}
Includes declaration of graph class.
Basic declarations, included by all source files.
Class for adjacency list elements.
Definition Graph_d.h:143
Data type for general directed graphs (adjacency list representation).
Definition Graph_d.h:866
Doubly linked lists (maintaining the length of the list).
Definition List.h:1451
The shelling order of a graph.
Base class for modules that compute a shelling order of a graph.
void call(const Graph &G, ShellingOrder &order, adjEntry adj=nullptr)
Computes a shelling order of an embedded graph G such that adj lies on the external face.
void callLeftmost(const Graph &G, ShellingOrder &order, adjEntry adj=nullptr)
Computes a lefmost shelling order of an embedded graph G such that adj lies on the external face.
double baseRatio() const
Returns the current setting of the option base ratio.
virtual void doCall(const Graph &G, adjEntry adj, List< ShellingOrderSet > &partition)=0
This pure virtual function does the actual computation.
void baseRatio(double x)
Sets the option base ratio to x.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
Definition config.h:117
The namespace for all OGDF objects.