Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

MMSubgraphPlanarizer.h
Go to the documentation of this file.
1 
32 #pragma once
33 
37 #include <memory>
38 
39 namespace ogdf {
40 
47 {
48 public:
51 
54  m_subgraph.reset(pSubgraph);
55  }
56 
59  m_inserter.reset(pInserter);
60  }
61 
63  int permutations() { return m_permutations; }
64 
66  void permutations(int p) { m_permutations = p; }
67 
68 protected:
69  virtual ReturnType doCall(PlanRepExpansion &PG,
70  int cc,
71  const EdgeArray<bool> *forbid,
72  int& crossingNumber,
73  int& numNS,
74  int& numSN) override;
75 
76 private:
77  std::unique_ptr<PlanarSubgraphModule<int>> m_subgraph;
78  std::unique_ptr<MMEdgeInsertionModule> m_inserter;
79 
81 };
82 
83 }
int permutations()
Returns the number of performed permutations in the edge insertion step.
std::unique_ptr< MMEdgeInsertionModule > m_inserter
The minor-monotone edge insertion module.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
Planarized representations (of a connected component) of a graph.
ReturnType
The return type of a module.
Definition: Module.h:51
Planarization approach for minor-monotone crossing minimization.
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.
Declaration of MMCrossingMinimization Module, an interface for minor-monotone crossing minimization a...
Interface for minor-monotone edge insertion algorithms.
void setInserter(MMEdgeInsertionModule *pInserter)
Sets the module option for minor-monotone edge insertion.
std::unique_ptr< PlanarSubgraphModule< int > > m_subgraph
The planar subgraph module.
The namespace for all OGDF objects.
Declaration of interface for planar subgraph algorithms.
Interface for minor-monotone crossing minimization algorithms.
int m_permutations
The number of permutations.
Declaration of interface for minor-monotone edge insertion algorithms.