Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

EdgeComparerSimple.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/planarity/PlanRep.h>
36 
37 namespace ogdf {
38 
44 class OGDF_EXPORT EdgeComparerSimple : public VComparer<adjEntry>
45 {
46 public:
47  EdgeComparerSimple(const GraphAttributes& AG, const node v, bool useBends = true)
48  : m_basis(v), m_AG(&AG), m_useBends(useBends) { }
49 
50  int compare(const adjEntry &e1, const adjEntry &e2) const override;
51 
52 private:
55  bool m_useBends;
56 
57 };
58 
59 }
Declaration of class GraphAttributes which extends a Graph by additional attributes.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
bool m_useBends
true iff the algorithm should consider the bend-points
Declaration of a base class for planar representations of graphs and cluster graphs.
Abstract base class for comparer classes.
Definition: comparer.h:232
Stores additional attributes of a graph (like layout information).
Class for the representation of nodes.
Definition: Graph_d.h:169
Compares incident edges of a node based on the position of the last bend point or the position of the...
EdgeComparerSimple(const GraphAttributes &AG, const node v, bool useBends=true)
The namespace for all OGDF objects.
Class for adjacency list elements.
Definition: Graph_d.h:79
const GraphAttributes * m_AG