37namespace davidson_harel {
Declares class NodePairEnergy which implements an energy function where the energy of a layout depend...
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.
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)
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.