61 m_leftVertex = (adjL !=
nullptr) ? adjL->twinNode() :
nullptr;
62 m_rightVertex = (adjR !=
nullptr) ? adjR->twinNode() :
nullptr;
190 node operator() (
int i,
int j)
const {
201 return m_V[i].left();
206 return m_V[i].right();
232 friend class CompOrderBic;
The node set in a shelling order of a graph.
The parameterized class Array implements dynamic arrays of type E.
bool hasLeft() const
Returns true iff the adjacency entry to the left-node exists.
ShellingOrderSet(int l, adjEntry adjL=nullptr, adjEntry adjR=nullptr)
Creates a shelling order set for l nodes.
Data type for general directed graphs (adjacency list representation).
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
void init()
Reinitializes the array to an array with empty index set.
ShellingOrder()
Creates an empty shelling order.
int high() const
Returns the maximal array index.
adjEntry rightAdj() const
Returns the adjacency entry pointing from zp to the right node (or 0 if no such node).
NodeArray< int > m_rank
the rank of nodes.
ShellingOrderSet & operator=(const ShellingOrderSet &S)
Assignment operator.
node m_rightVertex
the right-node of the set.
node operator[](const int i) const
Returns the i-th node in the order set from left (the leftmost node has index 1). ...
node left() const
Returns the left-node of the set.
int length() const
Returns the number of sets in the node partition.
void right(node cr)
Sets the right-node to cr.
void left(node cl)
Sets the left-node to cl.
const Graph * m_pGraph
the associated graph.
bool hasRight() const
Returns true iff the adjacency entry to the right-node exists.
adjEntry leftAdj() const
Returns the adjacency entry pointing from z1 to the left node (or 0 if no such node).
void leftAdj(adjEntry adjL)
Sets the adjacency entry pointing to the left-node to adjL.
Doubly linked lists (maintaining the length of the list).
const Graph & getGraph() const
Returns the graph associated with the shelling order.
node left(int i) const
Returns the left-node of the i-th set Vi.
adjEntry m_leftAdj
the adjacency entry pointing to the left-node.
node right(int i) const
Returns the right-node of the i-th set Vi.
Class for the representation of nodes.
Declaration and implementation of NodeArray class.
Array< ShellingOrderSet > m_V
the node partition.
The shelling order of a graph.
void rightAdj(adjEntry adjR)
Sets the adjacency entry pointing to the right-node to adjR.
adjEntry m_rightAdj
the adjacency entry pointing to the right-node.
node right() const
Returns the right-node of the set.
node m_leftVertex
the left-node of the set.
int rank(node v) const
Returns the rank of node v, where rank(v) = i iff v is contained in Vi.
Array< E, INDEX > & operator=(const Array< E, INDEX > &A)
Assignment operator.
const_reference operator[](INDEX i) const
Returns a reference to the element at position i.
The namespace for all OGDF objects.
ShellingOrderSet()
Creates an empty shelling order set.
Class for adjacency list elements.
int len() const
Returns the length of the order set, i.e., the number of contained nodes.
const ShellingOrderSet & operator[](int i) const
Returns the i-th set V_i
int len(int i) const
Returns the length of the i-th order set Vi.