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