Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

FixedEmbeddingInserter.h
Go to the documentation of this file.
1 
32 #pragma once
33 
36 
37 namespace ogdf {
38 
49 {
50 public:
53 
56 
59 
61  virtual EdgeInsertionModule *clone() const override;
62 
64  FixedEmbeddingInserter &operator=(const FixedEmbeddingInserter &inserter);
65 
66 
78  m_rrOption = rrOption;
79  }
80 
83  return m_rrOption;
84  }
85 
86 
88 
92  void percentMostCrossed(double percent) {
93  m_percentMostCrossed = percent;
94  }
95 
97  double percentMostCrossed() const {
98  return m_percentMostCrossed;
99  }
100 
102 
107  void keepEmbedding(bool keep) {
108  m_keepEmbedding = keep;
109  }
110 
112  bool keepEmbeding() const {
113  return m_keepEmbedding;
114  }
115 
121  int runsPostprocessing() const {
123  return m_runsPostprocessing;
124  }
125 
127 
128 private:
130  virtual ReturnType doCall(
131  PlanRepLight &pr,
132  const Array<edge> &origEdges,
133  const EdgeArray<int> *costOrig,
134  const EdgeArray<bool> *pForbiddenOrig,
135  const EdgeArray<uint32_t> *pEdgeSubGraphs) override;
136 
140 
142 };
143 
144 }
RemoveReinsertType removeReinsert() const
Returns the current setting of the remove-reinsert postprocessing method.
The parameterized class Array implements dynamic arrays of type E.
Definition: Array.h:200
bool keepEmbeding() const
Returns the current setting of option keepEmbedding.
void removeReinsert(RemoveReinsertType rrOption)
Sets the remove-reinsert postprocessing method.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
Declaration of interface for edge insertion algorithms.
RemoveReinsertType
The postprocessing method for edge insertion algorithms.
Interface for edge insertion algorithms.
RemoveReinsertType m_rrOption
The remove-reinsert method.
Definition of RemoveReinsertType (used for postprocessing in edge insertion algorithms).
ReturnType
The return type of a module.
Definition: Module.h:51
Light-weight version of a planarized representation, associated with a PlanRep.
Definition: PlanRepLight.h:44
int m_runsPostprocessing
Runs of remove-reinsert method.
void percentMostCrossed(double percent)
Sets the option percentMostCrossed to percent.
double m_percentMostCrossed
The portion of most crossed edges considered.
void keepEmbedding(bool keep)
Sets the option keepEmbedding to keep.
double percentMostCrossed() const
Returns the current setting of option percentMostCrossed.
The namespace for all OGDF objects.
Inserts edges optimally into an embedding.