|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
60 m_leftVertex = (adjL !=
nullptr) ? adjL->twinNode() :
nullptr;
61 m_rightVertex = (adjR !=
nullptr) ? adjR->twinNode() :
nullptr;
131 int length()
const {
return m_V.high(); }
134 int len(
int i)
const {
return m_V[i].len(); }
168 friend class CompOrderBic;
The namespace for all OGDF objects.
Includes declaration of graph class.
NodeArray< int > m_rank
the rank of nodes.
node operator[](const int i) const
Returns the i-th node in the order set from left (the leftmost node has index 1).
int len() const
Returns the length of the order set, i.e., the number of contained nodes.
void leftAdj(adjEntry adjL)
Sets the adjacency entry pointing to the left-node to adjL.
The node set in a shelling order of a graph.
int high() const
Returns the maximal array index.
adjEntry leftAdj() const
Returns the adjacency entry pointing from z1 to the left node (or 0 if no such node).
bool hasLeft() const
Returns true iff the adjacency entry to the left-node exists.
node left(int i) const
Returns the left-node of the i-th set Vi.
ShellingOrderSet()
Creates an empty shelling order set.
node & operator[](const int i)
Returns the i-th node in the order set from left (the leftmost node has index 1).
const Graph & getGraph() const
Returns the graph associated with the shelling order.
void rightAdj(adjEntry adjR)
Sets the adjacency entry pointing to the right-node to adjR.
adjEntry rightAdj() const
Returns the adjacency entry pointing from zp to the right node (or 0 if no such node).
Class for adjacency list elements.
adjEntry m_leftAdj
the adjacency entry pointing to the left-node.
node operator()(int i, int j) const
Returns the j-th node of the i-th order set Vi.
node m_leftVertex
the left-node of the set.
The parameterized class Array implements dynamic arrays of type E.
bool hasRight() const
Returns true iff the adjacency entry to the right-node exists.
const_reference operator[](INDEX i) const
Returns a reference to the element at position i.
void left(node cl)
Sets the left-node to cl.
int length() const
Returns the number of sets in the node partition.
int rank(node v) const
Returns the rank of node v, where rank(v) = i iff v is contained in Vi.
Doubly linked lists (maintaining the length of the list).
RegisteredArray for nodes, edges and adjEntries of a graph.
Data type for general directed graphs (adjacency list representation).
int len(int i) const
Returns the length of the i-th order set Vi.
ShellingOrder()
Creates an empty shelling order.
const Graph * m_pGraph
the associated graph.
node m_rightVertex
the right-node of the set.
void right(node cr)
Sets the right-node to cr.
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.
ShellingOrderSet(int n, adjEntry adjL=nullptr, adjEntry adjR=nullptr)
Creates a shelling order set for n nodes.
const ShellingOrderSet & operator[](int i) const
Returns the i-th set V_i
node right(int i) const
Returns the right-node of the i-th set Vi.
node left() const
Returns the left-node of the set.
Array< ShellingOrderSet > m_V
the node partition.
adjEntry m_rightAdj
the adjacency entry pointing to the right-node.
The shelling order of a graph.
Class for the representation of nodes.
node right() const
Returns the right-node of the set.