|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
44 class HierarchyLevels;
45 template<
class E1,
class E2>
50 template<
class T =
double>
83 : m_nodes(num), m_pLevels(pLevels), m_index(index) { }
95 int size()
const override {
return m_nodes.
size(); }
98 int high()
const override {
return m_nodes.
high(); }
101 int index()
const {
return m_index; }
110 void swap(
int i,
int j);
The namespace for all OGDF objects.
node & operator[](int i) override
Returns the node at position i.
Includes declaration of graph class.
friend std::ostream & operator<<(std::ostream &os, const Level &L)
WeightComparer(const NodeArray< T > *pWeight)
int m_index
The index of this level.
Tuples of two elements (2-tuples).
Interface of hierarchy layout algorithms.
int high() const override
Returns the maximal array index (= size()-1).
INDEX high() const
Returns the maximal array index.
const node & operator[](int i) const override
Returns the node at position i.
void sortOrder(C &orderComparer)
Sorts the nodes according to orderComparer.
Level(HierarchyLevels *pLevels, int index, int num)
Creates a level with index index in hierarchy pLevels.
void sort(T *array, int size, LessThan lt)
int size() const override
Returns the number of nodes on this level.
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Array< node > m_nodes
The nodes on this level.
bool less(node v, node w) const
RegisteredArray for nodes, edges and adjEntries of a graph.
const HierarchyLevels & levels() const
Returns the hierarchy to which this level belongs.
Declaration of interfaces used in Sugiyama framework.
int index() const
Returns the array index of this level in the hierarchy.
HierarchyLevels * m_pLevels
The hierarchy to which this level belongs.
Basic declarations, included by all source files.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Declaration and implementation of Array class and Array algorithms.
void quicksort()
Sorts array using Quicksort.
INDEX size() const
Returns the size (number of elements) of the array.
Representation of levels in hierarchies.
Representation of levels in hierarchies.
Class for the representation of nodes.
Declaration of memory manager for allocating small pieces of memory.
const NodeArray< T > * m_pWeight
bool operator()(node v, node w) const
Representation of proper hierarchies used by Sugiyama-layout.