Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

FixedEmbeddingInserter.h
Go to the documentation of this file.
1 
32 #pragma once
33 
36 
37 namespace ogdf {
38 
49 public:
52 
55 
58 
60  virtual EdgeInsertionModule* clone() const override;
61 
63  FixedEmbeddingInserter& operator=(const FixedEmbeddingInserter& inserter);
64 
75  void removeReinsert(RemoveReinsertType rrOption) { m_rrOption = rrOption; }
76 
78  RemoveReinsertType removeReinsert() const { return m_rrOption; }
79 
81 
85  void percentMostCrossed(double percent) { m_percentMostCrossed = percent; }
86 
88  double percentMostCrossed() const { return m_percentMostCrossed; }
89 
91 
96  void keepEmbedding(bool keep) { m_keepEmbedding = keep; }
97 
99  bool keepEmbeding() const { return m_keepEmbedding; }
100 
106  int runsPostprocessing() const { return m_runsPostprocessing; }
108 
110 
111 private:
113  virtual ReturnType doCall(PlanRepLight& pr, const Array<edge>& origEdges,
114  const EdgeArray<int>* costOrig, const EdgeArray<bool>* pForbiddenOrig,
115  const EdgeArray<uint32_t>* pEdgeSubGraphs) override;
116 
120 
122 };
123 
124 }
ogdf
The namespace for all OGDF objects.
Definition: AugmentationModule.h:36
ogdf::FixedEmbeddingInserter::percentMostCrossed
void percentMostCrossed(double percent)
Sets the option percentMostCrossed to percent.
Definition: FixedEmbeddingInserter.h:85
ogdf::FixedEmbeddingInserter::~FixedEmbeddingInserter
~FixedEmbeddingInserter()
Destructor.
Definition: FixedEmbeddingInserter.h:57
RemoveReinsertType.h
Definition of RemoveReinsertType (used for postprocessing in edge insertion algorithms).
ogdf::EdgeInsertionModule
Interface for edge insertion algorithms.
Definition: EdgeInsertionModule.h:45
ogdf::FixedEmbeddingInserter::keepEmbeding
bool keepEmbeding() const
Returns the current setting of option keepEmbedding.
Definition: FixedEmbeddingInserter.h:99
ogdf::FixedEmbeddingInserter
Inserts edges optimally into an embedding.
Definition: FixedEmbeddingInserter.h:48
ogdf::FixedEmbeddingInserter::percentMostCrossed
double percentMostCrossed() const
Returns the current setting of option percentMostCrossed.
Definition: FixedEmbeddingInserter.h:88
ogdf::FixedEmbeddingInserter::removeReinsert
RemoveReinsertType removeReinsert() const
Returns the current setting of the remove-reinsert postprocessing method.
Definition: FixedEmbeddingInserter.h:78
ogdf::FixedEmbeddingInserter::m_percentMostCrossed
double m_percentMostCrossed
The portion of most crossed edges considered.
Definition: FixedEmbeddingInserter.h:118
ogdf::FixedEmbeddingInserter::keepEmbedding
void keepEmbedding(bool keep)
Sets the option keepEmbedding to keep.
Definition: FixedEmbeddingInserter.h:96
EdgeInsertionModule.h
Declaration of interface for edge insertion algorithms.
ogdf::FixedEmbeddingInserter::m_keepEmbedding
bool m_keepEmbedding
Definition: FixedEmbeddingInserter.h:119
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
ogdf::RemoveReinsertType
RemoveReinsertType
The postprocessing method for edge insertion algorithms.
Definition: RemoveReinsertType.h:41
ogdf::FixedEmbeddingInserter::removeReinsert
void removeReinsert(RemoveReinsertType rrOption)
Sets the remove-reinsert postprocessing method.
Definition: FixedEmbeddingInserter.h:75
ogdf::FixedEmbeddingInserter::m_rrOption
RemoveReinsertType m_rrOption
The remove-reinsert method.
Definition: FixedEmbeddingInserter.h:117
ogdf::FixedEmbeddingInserter::m_runsPostprocessing
int m_runsPostprocessing
Runs of remove-reinsert method.
Definition: FixedEmbeddingInserter.h:121