Representation of levels in hierarchies.
More...
#include <ogdf/layered/Level.h>
Representation of levels in hierarchies.
- See also
- Hierarchy, SugiyamaLayout
Definition at line 60 of file Level.h.
◆ Level()
Creates a level with index index
in hierarchy pLevels
.
- Parameters
-
pLevels | is a pointer to the hierarchy to which the created level will belong. |
index | is the index of the level. |
num | is the number of nodes on this level. |
Definition at line 76 of file Level.h.
◆ ~Level()
◆ adjNodes()
Returns the (sorted) array of adjacent nodes of v
(according to direction()).
◆ getIsolatedNodes()
◆ high()
int ogdf::Level::high |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ index()
int ogdf::Level::index |
( |
| ) |
const |
|
inline |
Returns the array index of this level in the hierarchy.
Definition at line 95 of file Level.h.
◆ levels()
Returns the hierarchy to which this level belongs.
Definition at line 101 of file Level.h.
◆ operator[]() [1/2]
◆ operator[]() [2/2]
node & ogdf::Level::operator[] |
( |
int |
i | ) |
|
|
inlineoverridevirtual |
◆ recalcPos()
void ogdf::Level::recalcPos |
( |
| ) |
|
◆ setIsolatedNodes()
◆ size()
int ogdf::Level::size |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ sort() [1/2]
Sorts the nodes according to weight
using quicksort.
◆ sort() [2/2]
Sorts the nodes according to weight
using bucket sort.
◆ sortByWeightOnly()
Sorts the nodes according to weight
(without special placement for "isolated" nodes).
◆ sortOrder()
void ogdf::Level::sortOrder |
( |
C & |
orderComparer | ) |
|
|
inline |
Sorts the nodes according to orderComparer
.
Definition at line 117 of file Level.h.
◆ swap()
Exchanges nodes at position i
and j
.
◆ HierarchyLayoutModule
◆ HierarchyLevels
◆ LayerBasedUPRLayout
◆ operator<<
◆ m_index
The index of this level.
Definition at line 67 of file Level.h.
◆ m_nodes
The nodes on this level.
Definition at line 65 of file Level.h.
◆ m_pLevels
The hierarchy to which this level belongs.
Definition at line 66 of file Level.h.
The documentation for this class was generated from the following file: