Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
EdgeComparerSimple.h
Go to the documentation of this file.
1
32#pragma once
33
36
37namespace ogdf {
38
44class OGDF_EXPORT EdgeComparerSimple : public VComparer<adjEntry> {
45public:
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
51private:
55};
56
57}
Declaration of class GraphAttributes which extends a Graph by additional attributes.
Declaration of a base class for planar representations of graphs and cluster graphs.
Class for adjacency list elements.
Definition Graph_d.h:79
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)
const GraphAttributes * m_AG
bool m_useBends
true iff the algorithm should consider the bend-points
int compare(const adjEntry &e1, const adjEntry &e2) const override
Compares x and y and returns the result as an integer.
Stores additional attributes of a graph (like layout information).
Class for the representation of nodes.
Definition Graph_d.h:177
Abstract base class for comparer classes.
Definition comparer.h:254
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition config.h:101
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.