Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

MMSubgraphPlanarizer.h
Go to the documentation of this file.
1 
32 #pragma once
33 
37 #include <memory>
38 
39 
40 namespace ogdf
41 {
42 
49 {
50 public:
53 
56  m_subgraph.reset(pSubgraph);
57  }
58 
61  m_inserter.reset(pInserter);
62  }
63 
65  int permutations() { return m_permutations; }
66 
68  void permutations(int p) { m_permutations = p; }
69 
70 protected:
71  virtual ReturnType doCall(PlanRepExpansion &PG,
72  int cc,
73  const EdgeArray<bool> *forbid,
74  int& crossingNumber,
75  int& numNS,
76  int& numSN) override;
77 
78 private:
79  std::unique_ptr<PlanarSubgraphModule<int>> m_subgraph;
80  std::unique_ptr<MMEdgeInsertionModule> m_inserter;
81 
83 };
84 
85 }
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.