Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Overlap.h
Go to the documentation of this file.
1 
38 #pragma once
39 
40 #include <ogdf/basic/Graph.h>
41 #include <ogdf/basic/geometry.h>
43 
44 namespace ogdf {
45 class GraphAttributes;
46 
47 namespace davidson_harel {
48 
49 class Overlap : public NodePairEnergy {
50 public:
51  //Initializes private data structures
52  explicit Overlap(GraphAttributes& AG);
53 
54  ~Overlap() { }
55 
56 private:
57  //computes for two vertices at the given position the overlap energy
58  double computeCoordEnergy(node, node, const DPoint&, const DPoint&) const override;
59 };
60 
61 }
62 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
ogdf::GraphAttributes
Stores additional attributes of a graph (like layout information).
Definition: GraphAttributes.h:72
Graph.h
Includes declaration of graph class.
ogdf::GenericPoint< double >
geometry.h
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment,...
ogdf::davidson_harel::Overlap::computeCoordEnergy
double computeCoordEnergy(node, node, const DPoint &, const DPoint &) const override
Computes the energy stored by a pair of vertices at the given positions.
ogdf::davidson_harel::Overlap::~Overlap
~Overlap()
Definition: Overlap.h:54
ogdf::davidson_harel::Overlap::Overlap
Overlap(GraphAttributes &AG)
ogdf::davidson_harel::NodePairEnergy
Definition: NodePairEnergy.h:51
ogdf::davidson_harel::Overlap
Definition: Overlap.h:49
NodePairEnergy.h
Declares class NodePairEnergy which implements an energy function where the energy of a layout depend...
ogdf::NodeElement
Class for the representation of nodes.
Definition: Graph_d.h:240