Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
MMSubgraphPlanarizer.h
Go to the documentation of this file.
1
32#pragma once
33
37
38#include <memory>
39
40namespace ogdf {
41
48public:
51
54
57
59 int permutations() { return m_permutations; }
60
62 void permutations(int p) { m_permutations = p; }
63
64protected:
66 int& crossingNumber, int& numNS, int& numSN) override;
67
68private:
69 std::unique_ptr<PlanarSubgraphModule<int>> m_subgraph;
70 std::unique_ptr<MMEdgeInsertionModule> m_inserter;
71
73};
74
75}
Declaration of MMCrossingMinimization Module, an interface for minor-monotone crossing minimization a...
Declaration of interface for minor-monotone edge insertion algorithms.
Declaration of interface for planar subgraph algorithms.
Dynamic arrays indexed with edges.
Definition EdgeArray.h:125
Interface for minor-monotone crossing minimization algorithms.
Interface for minor-monotone edge insertion algorithms.
Planarization approach for minor-monotone crossing minimization.
int permutations()
Returns the number of performed permutations in the edge insertion step.
void permutations(int p)
Sets the number of performed permutations in the edge insertion step.
void setSubgraph(PlanarSubgraphModule< int > *pSubgraph)
Sets the module option for the computation of the planar subgraph.
int m_permutations
The number of permutations.
MMSubgraphPlanarizer()
Creates a subgraph planarizer for minor-monotone crossing minimization.
void setInserter(MMEdgeInsertionModule *pInserter)
Sets the module option for minor-monotone edge insertion.
virtual ReturnType doCall(PlanRepExpansion &PG, int cc, const EdgeArray< bool > *forbid, int &crossingNumber, int &numNS, int &numSN) override
Actual algorithm call that needs to be implemented by derived classed.
std::unique_ptr< PlanarSubgraphModule< int > > m_subgraph
The planar subgraph module.
std::unique_ptr< MMEdgeInsertionModule > m_inserter
The minor-monotone edge insertion module.
ReturnType
The return type of a module.
Definition Module.h:50
Planarized representations (of a connected component) of a graph.
Interface for planar subgraph algorithms.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition config.h:101
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.