|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
39 class GraphAttributes;
41 namespace davidson_harel {
The namespace for all OGDF objects.
Stores additional attributes of a graph (like layout information).
Includes declaration of graph class.
void setPreferredEdgelength(double length)
set the preferred edge length
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment,...
Energy function for attraction between two adjacent vertices.
Attraction(GraphAttributes &AG)
void reinitializeEdgeLength(double multi)
set multiplier for the edge length with repspect to node size to multi
void printInternalData() const override
double m_preferredEdgeLength
the length that that all edges should ideally have
double computeCoordEnergy(node, node, const DPoint &, const DPoint &) const override
computes the energy contributed by the two nodes if they are placed at the two given positions
Declares class NodePairEnergy which implements an energy function where the energy of a layout depend...
Class for the representation of nodes.
static const double MULTIPLIER
Average length and height of nodes is multiplied by this factor to get preferred edge length.