#include <ogdf/layered/CrossingMinInterfaces.h>
Inheritance diagram for ogdf::HierarchyLevelsBase:Public Types | |
| enum class | TraversingDir { downward , upward } |
Public Member Functions | |
| HierarchyLevelsBase ()=default | |
| HierarchyLevelsBase (const HierarchyLevelsBase &)=default | |
| virtual | ~HierarchyLevelsBase () |
| virtual const Array< node > & | adjNodes (node v, TraversingDir dir) const =0 |
Returns the adjacent nodes of v. | |
| int | calculateCrossings () const |
| Computes the total number of crossings. | |
| int | calculateCrossings (int i) const |
Computes the number of crossings between level i and i+1. | |
| virtual const Hierarchy & | hierarchy () const =0 |
| virtual int | high () const |
| Returns the maximal array index of a level (= size()-1). | |
| HierarchyLevelsBase & | operator= (const HierarchyLevelsBase &)=default |
| virtual const LevelBase & | operator[] (int i) const =0 |
| Returns the i-th level. | |
| virtual int | pos (node v) const =0 |
Returns the position of node v on its level. | |
| virtual int | size () const =0 |
| Returns the number of levels. | |
Definition at line 61 of file CrossingMinInterfaces.h.
| Enumerator | |
|---|---|
| downward | |
| upward | |
Definition at line 71 of file CrossingMinInterfaces.h.
|
default |
|
default |
|
inlinevirtual |
Definition at line 69 of file CrossingMinInterfaces.h.
|
pure virtual |
Returns the adjacent nodes of v.
Implemented in ogdf::BlockOrder, and ogdf::HierarchyLevels.
| int ogdf::HierarchyLevelsBase::calculateCrossings | ( | ) | const |
Computes the total number of crossings.
Computes the number of crossings between level i and i+1.
Implemented in ogdf::BlockOrder, and ogdf::HierarchyLevels.
Returns the maximal array index of a level (= size()-1).
Reimplemented in ogdf::HierarchyLevels.
Definition at line 83 of file CrossingMinInterfaces.h.
|
default |
Returns the i-th level.
Implemented in ogdf::BlockOrder, and ogdf::HierarchyLevels.
Returns the position of node v on its level.
Implemented in ogdf::BlockOrder, and ogdf::HierarchyLevels.
Returns the number of levels.
Implemented in ogdf::BlockOrder, and ogdf::HierarchyLevels.