Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

EdgeComparerSimple.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/Graph.h>
35 #include <ogdf/basic/basic.h>
36 #include <ogdf/basic/comparer.h>
37 
38 namespace ogdf {
39 class GraphAttributes;
40 
46 class OGDF_EXPORT EdgeComparerSimple : public VComparer<adjEntry> {
47 public:
48  EdgeComparerSimple(const GraphAttributes& AG, const node v, bool useBends = true)
49  : m_basis(v), m_AG(&AG), m_useBends(useBends) { }
50 
51  int compare(const adjEntry& e1, const adjEntry& e2) const override;
52 
53 private:
56  bool m_useBends;
57 };
58 
59 }
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::EdgeComparerSimple::m_useBends
bool m_useBends
true iff the algorithm should consider the bend-points
Definition: EdgeComparerSimple.h:56
ogdf::EdgeComparerSimple::m_basis
node m_basis
Definition: EdgeComparerSimple.h:54
ogdf::AdjElement
Class for adjacency list elements.
Definition: Graph_d.h:142
ogdf::VComparer
Abstract base class for comparer classes.
Definition: comparer.h:258
ogdf::EdgeComparerSimple::EdgeComparerSimple
EdgeComparerSimple(const GraphAttributes &AG, const node v, bool useBends=true)
Definition: EdgeComparerSimple.h:48
ogdf::EdgeComparerSimple::m_AG
const GraphAttributes * m_AG
Definition: EdgeComparerSimple.h:55
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:46
basic.h
Basic declarations, included by all source files.
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
comparer.h
Declarations for Comparer objects.
ogdf::NodeElement
Class for the representation of nodes.
Definition: Graph_d.h:240