|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
43 class GraphAttributes;
55 : m_hasEdgeCostsAttribute(false)
56 , m_hasInitialLayout(false)
57 , m_numberOfIterations(200)
60 , m_componentLayout(false)
65 , m_forcing2DLayout(false)
76 inline void hasInitialLayout(
bool hasInitialLayout);
79 inline void fixXCoordinates(
bool fix);
82 inline void fixYCoordinates(
bool fix);
85 inline void fixZCoordinates(
bool fix);
89 inline void layoutComponentsSeparately(
bool separate);
93 inline void setEdgeCosts(
double edgeCosts);
97 inline void setIterations(
int numberOfIterations);
100 inline void convergenceCriterion(TerminationCriterion criterion);
103 inline void useEdgeCostsAttribute(
bool useEdgeCostsAttribute);
112 inline void setForcing2DLayout(
bool forcing2DLayout);
186 const double curStress);
The namespace for all OGDF objects.
Stores additional attributes of a graph (like layout information).
void hasInitialLayout(bool hasInitialLayout)
Tells whether the current layout should be used or the initial layout needs to be computed.
Includes declaration of graph class.
StressMinimization()
Constructor: Constructs instance of stress majorization.
double m_edgeCosts
The weight of an edge.
TerminationCriterion m_terminationCriterion
Indicates whether epsilon convergence is used or not.
Energy-based layout using stress minimization.
Declaration of interface for layout algorithms (class LayoutModule)
bool m_componentLayout
Indicates whether the components should be treated separately.
void fixXCoordinates(bool fix)
Tells whether the x coordinates are allowed to be modified or not.
const static int DEFAULT_NUMBER_OF_PIVOTS
Default number of pivots used for the initial Pivot-MDS layout.
bool m_hasInitialLayout
Tells whether an initial layout has to be computed or not.
void layoutComponentsSeparately(bool separate)
Sets whether the graph's components should be layouted separately or a dummy distance should be used ...
void useEdgeCostsAttribute(bool useEdgeCostsAttribute)
Tells whether the edge costs are uniform or defined by some edge costs attribute.
void setForcing2DLayout(bool forcing2DLayout)
Sets whether a 2D-layout should be calculated even when GraphAttributes::threeD is set.
bool m_fixZCoords
Indicates whether the z coordinates will be modified or not.
RegisteredArray for nodes, edges and adjEntries of a graph.
Data type for general directed graphs (adjacency list representation).
double m_avgEdgeCosts
The average edge costs. Needed to define distances of nodes belonging to different graph components.
bool m_fixYCoords
Indicates whether the y coordinates will be modified or not.
void fixYCoordinates(bool fix)
Tells whether the y coordinates are allowed to be modified or not.
bool m_forcing2DLayout
Indicates whether a 2D-layout is calculated even when GraphAttributes::threeD is set.
void setIterations(int numberOfIterations)
Sets a fixed number of iterations for stress majorization. If the new value is smaller or equal 0 the...
const static double EPSILON
Convergence constant.
Basic declarations, included by all source files.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
bool m_hasEdgeCostsAttribute
Tells whether the stress minimization is based on uniform edge costs or a edge costs attribute.
@ None
Two geometric objects do not intersect.
void convergenceCriterion(TerminationCriterion criterion)
Tells which TerminationCriterion should be used.
bool m_fixXCoords
Indicates whether the x coordinates will be modified or not.
void setEdgeCosts(double edgeCosts)
Sets the desired distance between adjacent nodes. If the new value is smaller or equal 0 the default ...
int m_numberOfIterations
Number of iterations performed by the stress minimization.
bool m_use3D
Indicates whether a 3D-layout is computed.
~StressMinimization()
Destructor.
Interface of general layout algorithms.