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
34#include <ogdf/basic/Graph.h>
35#include <ogdf/basic/basic.h>
36#include <ogdf/basic/comparer.h>
37
38namespace ogdf {
39class GraphAttributes;
40
46class OGDF_EXPORT EdgeComparerSimple : public VComparer<adjEntry> {
47public:
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
53private:
57};
58
59}
Includes declaration of graph class.
Basic declarations, included by all source files.
Class for adjacency list elements.
Definition Graph_d.h:143
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:241
Abstract base class for comparer classes.
Definition comparer.h:258
Declarations for Comparer objects.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
Definition config.h:117
The namespace for all OGDF objects.