113 void setRandomInitialPlacement(
bool randomInitialPlacement);
119 void setBendNormalizationAngle(
double bendNormalizationAngle);
122 void setNumberOfIterations(
int numberOfIterations);
125 void setMinimalTemperature(
double minimalTemperature);
129 void setInitialTemperature(
double initialTemperature);
133 void setTemperatureDecreaseOffset(
double temperatureDecreaseOffset);
136 void setGravitation(
double gravitation);
139 void setOscillationAngle(
double oscillationAngle);
142 void setDesiredMinEdgeLength(
double desiredMinEdgeLength);
145 void setInitDummiesPerEdge(
int initDummiesPerEdge);
149 void setMaxDummiesPerEdge(
int maxDummiesPerEdge);
152 void setDummyInsertionThreshold(
double dummyInsertionThreshold);
155 void setMaxDisturbance(
double maxDisturbance);
158 void setRepulsionDistance(
double repulsionDistance);
161 void setMinDistCC(
double minDistCC);
164 void setPageRatio(
double pageRatio);
354 std::pair<double,double> computeImpulse(
node v);
358 void updateNode(
node v, std::pair<double,double> newImpulse);
366 switch (attr.
shape(v)) {
372 return std::max(attr.
height(v), attr.
width(v)) / 2.0;
377 return std::hypot(attr.
height(v), attr.
width(v)) / 2.0;
389 }
else if (m_copy.
isDummy(v)) {
391 }
else if (m_copy.
isDummy(w)) {
400 return v->
degree() / m_degreeSum;
double m_maxDisturbance
Maximal disturbance, i.e. maximal random node movement.
double m_temperatureDecreaseOffset
Factor for which holds: If only m_numberOfIterations * m_temperatureDecreaseOffset iterations are lef...
double width(node v) const
Returns the width of the bounding box of node v.
edge theEdge() const
Returns the edge associated with this adjacency entry.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
double m_barycenterY
Weighted sum of y-coordinates of all nodes.
int m_iterCounter
Number of iterations for which the algorithm still has to run.
double getBendNormalizationAngle() const
Returns m_bendNormalizationAngle.
PostProcessingMode
Sets whether unnecessary edge bends should be filtered out in a post-processing step.
double getDummyInsertionThreshold() const
Returns m_dummyInsertionThreshold.
int degree() const
Returns the degree of the node (indegree + outdegree).
double getDesiredMinEdgeLength() const
Returns m_desiredMinEdgeLength.
int getInitDummiesPerEdge() const
Returns m_initDummiesPerEdge.
double getPageRatio() const
Returns m_pageRatio.
NodeArray< double > m_impulseY
Y-coordinate of the last impulse of the node.
int m_degreeSum
Twice the number of all edges in the original graph.
~NodeRespecterLayout()
Destroys an instance of the NodeRespecterLayout.
double m_initialTemperature
Initial temperature of every node.
EdgeArray< bool > m_hasParEdges
Whether the edge has parallel edges.
int m_numberOfIterations
Number of times a single node is moved for each connected component.
NodeArray< double > m_impulseX
X-coordinate of the last impulse of the node.
GraphCopy m_copy
Copy of the given graph which may contain dummy nodes.
double height(node v) const
Returns the height of the bounding box of node v.
double m_pageRatio
Page ratio used for the layout of connected components.
The NodeRespecterLayout layout algorithm.
PostProcessingMode getPostProcessing() const
Returns m_postProcessing.
NodeArray< double > m_localTemperature
Local temperature of the node.
int getNumberOfIterations() const
Returns m_numberOfIterations.
double getMaxDisturbance() const
Returns m_maxDisturbance.
double weight(node v) const
Returns the weight of node v according to its degree.
Stores additional attributes of a graph (like layout information).
double getOscillationAngle() const
Returns m_oscillationAngle.
GraphAttributes m_copyAttr
GraphAttributes for m_copy.
double getMinimalTemperature() const
Returns m_minimalTemperature.
Declaration of graph copy classes.
double getInitialTemperature() const
Returns m_initialTemperature.
Copies of graphs supporting edge splitting.
double getRepulsionDistance() const
Returns m_repulsionDistance.
Declaration of interface for layout algorithms (class LayoutModule)
bool haveSameOriginalEdge(node v, node w) const
Returns whether v and w belong to the same original edge. If only one of the nodes is a dummy node...
double m_barycenterX
Weighted sum of x-coordinates of all nodes.
NodeArray< double > m_nodeRadius
Radius of the smallest circle encompassing the node.
Class for the representation of nodes.
bool m_randomInitialPlacement
Whether nodes should be initialized in random positions.
NodeArray< NodeArray< double > > m_desiredDistance
Desired distance between each pair of nodes.
#define OGDF_NEW_DELETE
Makes the class use OGDF's memory allocator.
Interface of general layout algorithms.
const Graph & original() const
Returns a reference to the original graph.
double m_gravitation
Gravitational constant scaling attractive forces towards the barycenter.
int getMaxDummiesPerEdge() const
Returns m_maxDummiesPerEdge.
double m_factor
Precomputed constant used to get the max. temperature for each iteration.
Two geometric objects do not intersect.
double m_minimalTemperature
Minimal temperature, lower bound for the global temperature.
double m_cos
Precomputed cosinus of (m_oscillationAngle / 2).
double getTemperatureDecreaseOffset() const
Returns m_temperatureDecreaseOffset.
double m_dummyInsertionThreshold
How many times larger than the desired edge length an edge has to be in order for a new dummy node to...
double getMinDistCC() const
Returns m_minDistCC.
double m_minDistCC
Minimal distance between connected components.
The namespace for all OGDF objects.
double m_desiredMinEdgeLength
Desired minimal node separation/edge length.
PostProcessingMode m_postProcessing
Whether unnecessary bends should be filtered out in a post processing step.
int m_maxDummiesPerEdge
How many dummy nodes should maximally be created for one edge.
double getGravitation() const
Returns m_gravitation.
double radius(const GraphAttributes &attr, node v) const
Returns the radius of the smallest circle surrounding the shape of v (while still having its center a...
double m_repulsionDistance
Maximum distance between a dummy and another node such that the former is repulsed by the latter...
adjEntry firstAdj() const
Returns the first entry in the adjaceny list.
bool isDummy(node v) const
Returns true iff v has no corresponding node in the original graph.
int m_initDummiesPerEdge
How many dummy nodes should initially be created for one edge.
double m_oscillationAngle
Maximum angle between new and previous impulse such that the node movement is counted as an oscillati...
Shape shape(node v) const
Returns the shape type of node v.
double m_bendNormalizationAngle
Lower bound for the minimum angle between two line segments such that the bend point between them is ...
bool getRandomInitialPlacement() const
Returns m_randomInitialPlacement.
double m_globalTemperature
Average of all local node temperatures.