Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
VariableEmbeddingInserterBase.h
Go to the documentation of this file.
1
32#pragma once
33
36
37namespace ogdf {
38
41public:
44 : m_rrOption(RemoveReinsertType::None), m_percentMostCrossed(25) { }
45
49 , m_rrOption(inserter.m_rrOption)
50 , m_percentMostCrossed(inserter.m_percentMostCrossed) { }
51
54 m_rrOption = inserter.m_rrOption;
55 m_percentMostCrossed = inserter.m_percentMostCrossed;
56 return *this;
57 }
58
61
69
71 RemoveReinsertType removeReinsert() const { return m_rrOption; }
72
74
78 void percentMostCrossed(double percent) { m_percentMostCrossed = percent; }
79
81 double percentMostCrossed() const { return m_percentMostCrossed; }
82
89 int runsPostprocessing() const { return m_runsPostprocessing; }
90
91protected:
93 void runsPostprocessing(int runs) { m_runsPostprocessing = runs; }
94
96
97private:
100
102};
103
104}
Declaration of interface for edge insertion algorithms.
Definition of RemoveReinsertType (used for postprocessing in edge insertion algorithms).
Interface for edge insertion algorithms.
Common parameter functionality for ogdf::VariableEmbeddingInserter and ogdf::VariableEmbeddingInserte...
VariableEmbeddingInserterBase()
Creates an instance of variable embedding edge inserter with default settings.
VariableEmbeddingInserterBase & operator=(const VariableEmbeddingInserterBase &inserter)
Assignment operator. Copies option settings only.
double m_percentMostCrossed
The portion of most crossed edges considered.
void runsPostprocessing(int runs)
Sets the number of runs performed by the remove-reinsert method.
void percentMostCrossed(double percent)
Sets the option percentMostCrossed to percent.
void removeReinsert(RemoveReinsertType rrOption)
Sets the remove-reinsert postprocessing method.
double percentMostCrossed() const
Returns the current setting of option percentMostCrossed.
VariableEmbeddingInserterBase(const VariableEmbeddingInserterBase &inserter)
Creates an instance of variable embedding inserter with the same settings as inserter.
RemoveReinsertType m_rrOption
The remove-reinsert method.
int m_runsPostprocessing
Runs of remove-reinsert method.
RemoveReinsertType removeReinsert() const
Returns the current setting of the remove-reinsert postprocessing method.
int runsPostprocessing() const
Returns the number of runs performed by the remove-reinsert method after the algorithm has been calle...
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition config.h:101
RemoveReinsertType
The postprocessing method for edge insertion algorithms.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.
@ None
Two geometric objects do not intersect.