41namespace davidson_harel {
Includes declaration of graph class.
Declares class NodePairEnergy which implements an energy function where the energy of a layout depend...
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment,...
Stores additional attributes of a graph (like layout information).
Class for the representation of nodes.
Energy function for attraction between two adjacent vertices.
void setPreferredEdgelength(double length)
set the preferred edge length
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
static const double MULTIPLIER
Average length and height of nodes is multiplied by this factor to get preferred edge length.
void printInternalData() const override
double m_preferredEdgeLength
the length that that all edges should ideally have
void reinitializeEdgeLength(double multi)
set multiplier for the edge length with repspect to node size to multi
Attraction(GraphAttributes &AG)
The namespace for all OGDF objects.