Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
Repulsion.h
Go to the documentation of this file.
1
36#pragma once
37
39
40namespace ogdf {
41namespace davidson_harel {
42
43class Repulsion : public NodePairEnergy {
44public:
45 //Initializes data structures to speed up later computations
47
48private:
49 //computes for two vertices an the given positions the repulsive energy
50 double computeCoordEnergy(node, node, const DPoint&, const DPoint&) const override;
51};
52
53}
54}
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.
Definition Graph_d.h:177
double computeCoordEnergy(node, node, const DPoint &, const DPoint &) const override
Computes the energy stored by a pair of vertices at the given positions.
Repulsion(GraphAttributes &AG)
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.