Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

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