Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

EdgeComparer.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/planarity/PlanRep.h>
36 
37 namespace ogdf {
38 
48 class OGDF_EXPORT EdgeComparer : public VComparer<adjEntry>
49 {
50 public:
60  EdgeComparer(const GraphAttributes& AG, const PlanRep& PR) : m_AG(&AG), m_PR(&PR) { }
61 
67  explicit EdgeComparer(const GraphAttributes &AG) : m_AG(&AG), m_PR(nullptr) {}
68 
69  int compare(const adjEntry &e1, const adjEntry &e2) const override;
70 
75  bool before(const DPoint &u, const DPoint &v, const DPoint &w) const;
76 
77 private:
82  int orientation(
83  const DPoint &u,
84  const DPoint &v,
85  const DPoint &w) const;
86 
88  const PlanRep *m_PR;
89 };
90 
91 }
Declaration of class GraphAttributes which extends a Graph by additional attributes.
EdgeComparer(const GraphAttributes &AG, const PlanRep &PR)
Constructor for a given PlanRep and given GraphAttributes.
Definition: EdgeComparer.h:60
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
Declaration of a base class for planar representations of graphs and cluster graphs.
const GraphAttributes * m_AG
Definition: EdgeComparer.h:87
EdgeComparer(const GraphAttributes &AG)
Constructor for given GraphAttributes.
Definition: EdgeComparer.h:67
Abstract base class for comparer classes.
Definition: comparer.h:232
const PlanRep * m_PR
Definition: EdgeComparer.h:88
Stores additional attributes of a graph (like layout information).
The namespace for all OGDF objects.
Compares adjacency entries based on the position of the nodes given by GraphAttribute layout informat...
Definition: EdgeComparer.h:48
Class for adjacency list elements.
Definition: Graph_d.h:79
Planarized representations (of a connected component) of a graph.
Definition: PlanRep.h:59
int orientation(const DPoint &p, const DPoint &q, const DPoint &r)