Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

Repulsion.h
Go to the documentation of this file.
1 
36 #pragma once
37 
39 
40 namespace ogdf {
41 namespace davidson_harel {
42 
43 class Repulsion: public NodePairEnergy {
44 public:
45  //Initializes data structures to speed up later computations
46  explicit Repulsion(GraphAttributes &AG);
47 private:
48  //computes for two vertices an the given positions the repulsive energy
49  double computeCoordEnergy(node, node, const DPoint&, const DPoint&) const override;
50 };
51 
52 }}
Real points.
Definition: geometry.h:219
Stores additional attributes of a graph (like layout information).
Class for the representation of nodes.
Definition: Graph_d.h:167
Declares class NodePairEnergy which implements an energy function where the energy of a layout depend...
double computeCoordEnergy(node, node, const DPoint &, const DPoint &) const override
Computes the energy stored by a pair of vertices at the given positions.
The namespace for all OGDF objects.
Repulsion(GraphAttributes &AG)