|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
39 class GraphAttributes;
68 void fixSettings(SettingsParameter sp);
75 void setSpeed(SpeedParameter sp);
88 void setRepulsionWeight(
double w);
94 void setAttractionWeight(
double);
100 void setNodeOverlapWeight(
double);
106 void setPlanarityWeight(
double);
112 void setStartTemperature(
int t);
118 void setNumberOfIterations(
int steps);
The namespace for all OGDF objects.
Stores additional attributes of a graph (like layout information).
double getNodeOverlapWeight() const
Returns the weight for the energy function NodeOverlap.
double getPlanarityWeight() const
Returns the weight for the energy function Planarity.
bool m_itAsFactor
Should m_numberOfIterations be factor (true) or fixed number.
void setPreferredEdgeLength(double elen)
Sets the preferred edge length to elen.
double m_repulsionWeight
The weight for repulsion energy.
double m_planarityWeight
The weight for edge crossing energy.
Declaration of interface for layout algorithms (class LayoutModule)
int m_numberOfIterations
The number of iterations per temperature step.
int m_startTemperature
The temperature at the start of the optimization.
double m_prefEdgeLength
Preferred edge length (abs value), only used if > 0.
bool m_crossings
Should crossings be computed?
SettingsParameter
Easy way to set fixed costs.
double m_multiplier
By default, number of iterations per temperature step is number of vertices multiplied by multiplier.
double m_nodeOverlapWeight
The weight for node overlap energy.
double getAttractionWeight() const
Returns the weight for the energy function Attraction.
void setPreferredEdgeLengthMultiplier(double multi)
Sets the preferred edge length multiplier for attraction.
void setIterationNumberAsFactor(bool b)
Switch between using iteration number as fixed number or factor (*number of nodes of graph)
SpeedParameter m_speed
You can override this by manually setting iter=0.
SpeedParameter
Easy way to set temperature and iterations.
double getRepulsionWeight() const
Returns the weight for the energy function Repulsion.
int getNumberOfIterations() const
Returns the number of iterations per temperature step.
Basic declarations, included by all source files.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
double m_attractionWeight
The weight for attraction energy.
int getStartTemperature() const
Returns the starting temperature.
The Davidson-Harel layout algorithm.
Interface of general layout algorithms.