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
38#include <ogdf/basic/Graph.h>
39#include <ogdf/basic/geometry.h>
41
42namespace ogdf {
43class GraphAttributes;
44
45namespace davidson_harel {
46
47class Repulsion : public NodePairEnergy {
48public:
49 //Initializes data structures to speed up later computations
51
52private:
53 //computes for two vertices an the given positions the repulsive energy
54 double computeCoordEnergy(node, node, const DPoint&, const DPoint&) const override;
55};
56
57}
58}
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.
Definition Graph_d.h:241
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)
The namespace for all OGDF objects.