Class for adjacency list elements. More...
#include <ogdf/basic/Graph_d.h>
Public Member Functions | |
adjEntry | clockwiseFacePred () const |
Returns the clockwise predecessor in face. Use faceCycleSucc instead! | |
adjEntry | clockwiseFaceSucc () const |
Returns the clockwise successor in face. Use faceCycleSucc instead! | |
adjEntry | counterClockwiseFacePred () const |
Returns the counter-clockwise predecessor in face. | |
adjEntry | counterClockwiseFaceSucc () const |
Returns the counter-clockwise successor in face. | |
adjEntry | cyclicPred () const |
Returns the cyclic predecessor in the adjacency list. | |
adjEntry | cyclicSucc () const |
Returns the cyclic successor in the adjacency list. | |
adjEntry | faceCyclePred () const |
Returns the cyclic predecessor in face. | |
adjEntry | faceCycleSucc () const |
Returns the cyclic successor in face. | |
int | index () const |
Returns the index of this adjacency element. | |
bool | isBetween (adjEntry adjBefore, adjEntry adjAfter) const |
Returns whether this adjacency entry lies between adjBefore and adjAfter in clockwise rotation. | |
bool | isSource () const |
Returns true iff this is the source adjacency entry of the corresponding edge. | |
operator edge () const | |
Conversion to edge. | |
operator node () const | |
Casts to the node whose adjacency list contains this element. | |
adjEntry | pred () const |
Returns the predecessor in the adjacency list. | |
adjEntry | succ () const |
Returns the successor in the adjacency list. | |
edge | theEdge () const |
Returns the edge associated with this adjacency entry. | |
node | theNode () const |
Returns the node whose adjacency list contains this element. | |
adjEntry | twin () const |
Returns the corresponding adjacency element associated with the same edge. | |
node | twinNode () const |
Returns the associated node of the corresponding adjacency entry (shorthand for twin()->theNode()). | |
Static Public Member Functions | |
static int | compare (const AdjElement &x, const AdjElement &y) |
Standard Comparer. | |
Private Member Functions | |
AdjElement (edge e, int id) | |
Constructs an adjacency entry for a given edge and index. | |
AdjElement (node v) | |
Constructs an adjacency element for a given node. | |
Private Attributes | |
edge | m_edge |
The associated edge. | |
int | m_id |
The (unique) index of the adjacency entry. | |
node | m_node |
The node whose adjacency list contains this entry. | |
AdjElement * | m_twin |
The corresponding adjacency entry (same edge) | |
Private Attributes inherited from ogdf::internal::GraphElement | |
GraphElement * | m_next = nullptr |
The successor in the list. | |
GraphElement * | m_prev = nullptr |
The predecessor in the list. | |
Friends | |
class | Graph |
class | internal::GraphList< AdjElement > |
class | internal::GraphListBase |
Class for adjacency list elements.
Adjacency list elements represent the occurrence of an edges in the adjacency list of a node.
|
inlineexplicitprivate |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns whether this adjacency entry lies between adjBefore
and adjAfter
in clockwise rotation.
Note that this operation takes time linear in the degree of the node.
adjBefore | First adjacency entry. Must be at the same node as this. |
adjAfter | Last adjacency entry. Must be at the same node as this. |
true
iff this adjacency entry is in between
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
private |
|
private |
|
private |