Open
Graph Drawing
Framework

 v. 2022.02 (Dogwood)
 

ogdf::EdgeComparerSimple Class Reference

Compares incident edges of a node based on the position of the last bend point or the position of the adjacent node given by the layout information of the graph. More...

#include <ogdf/basic/EdgeComparerSimple.h>

+ Inheritance diagram for ogdf::EdgeComparerSimple:

Public Member Functions

 EdgeComparerSimple (const GraphAttributes &AG, const node v, bool useBends=true)
 
int compare (const adjEntry &e1, const adjEntry &e2) const override
 Compares x and y and returns the result as an integer. More...
 
- Public Member Functions inherited from ogdf::VComparer< adjEntry >
 VComparer ()
 Initializes a comparer. More...
 
virtual ~VComparer ()
 
virtual bool equal (const adjEntry &x, const adjEntry &y) const
 Returns true iff x = y. More...
 
virtual bool geq (const adjEntry &x, const adjEntry &y) const
 Returns true iff x >= y. More...
 
virtual bool greater (const adjEntry &x, const adjEntry &y) const
 Returns true iff x > y. More...
 
virtual bool leq (const adjEntry &x, const adjEntry &y) const
 Returns true iff x <= y. More...
 
virtual bool less (const adjEntry &x, const adjEntry &y) const
 Returns true iff x < y. More...
 

Private Attributes

const GraphAttributesm_AG
 
node m_basis
 
bool m_useBends
 true iff the algorithm should consider the bend-points More...
 

Detailed Description

Compares incident edges of a node based on the position of the last bend point or the position of the adjacent node given by the layout information of the graph.

Definition at line 44 of file EdgeComparerSimple.h.

Constructor & Destructor Documentation

◆ EdgeComparerSimple()

ogdf::EdgeComparerSimple::EdgeComparerSimple ( const GraphAttributes AG,
const node  v,
bool  useBends = true 
)
inline

Definition at line 47 of file EdgeComparerSimple.h.

Member Function Documentation

◆ compare()

int ogdf::EdgeComparerSimple::compare ( const adjEntry x,
const adjEntry y 
) const
overridevirtual

Compares x and y and returns the result as an integer.

The returns value is

  • < 0 iff x < y,
  • = 0 iff x = y,
  • > 0 iff x > y

Implements ogdf::VComparer< adjEntry >.

Member Data Documentation

◆ m_AG

const GraphAttributes* ogdf::EdgeComparerSimple::m_AG
private

Definition at line 54 of file EdgeComparerSimple.h.

◆ m_basis

node ogdf::EdgeComparerSimple::m_basis
private

Definition at line 53 of file EdgeComparerSimple.h.

◆ m_useBends

bool ogdf::EdgeComparerSimple::m_useBends
private

true iff the algorithm should consider the bend-points

Definition at line 55 of file EdgeComparerSimple.h.


The documentation for this class was generated from the following file: