Class for adjacency list elements. More...
#include <ogdf/hypergraph/Hypergraph.h>
Inheritance diagram for ogdf::AdjHypergraphElement:Public Member Functions | |
| adjHypergraphEntry | cyclicPred () const |
| Returns the cyclic predecessor in the adjacency list. | |
| adjHypergraphEntry | cyclicSucc () const |
| Returns the cyclic successor in the adjacency list. | |
| GraphElement * | element () const |
| Returns the element associated with this adjacency entry. | |
| int | index () const |
| Returns the index of this adjacency element. | |
| adjHypergraphEntry | pred () const |
| Returns the predecessor in the adjacency list. | |
| adjHypergraphEntry | succ () const |
| Returns the successor in the adjacency list. | |
| adjHypergraphEntry | twin () const |
| Returns the pointer to a twin adjacency list. | |
Public Attributes | |
| OGDF_NEW_DELETE | |
Private Member Functions | |
| AdjHypergraphElement (GraphElement *pElement) | |
| Constructs an adjacency element for a given hyper{node,edge}. | |
| AdjHypergraphElement (GraphElement *pElement, int pIndex) | |
| Constructs an adjacency entry for a given hyper{node,edge} and index. | |
Private Attributes | |
| GraphElement * | m_element |
| The associated hyperedge or hypernode. | |
| int | m_index |
| The (unique) index of the adjacency entry. | |
| adjHypergraphEntry | m_twin |
| The corresponding adjacency entry. | |
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 | GraphListBase |
| class | Hypergraph |
| class | internal::GraphList< AdjHypergraphElement > |
| std::ostream & | operator<< (std::ostream &os, ogdf::adjHypergraphEntry v) |
Class for adjacency list elements.
Adjacency list elements represent the occurrence of hypernodes of a hyperedge or hyperedges of a hypernode adjacency lists.
Definition at line 86 of file Hypergraph.h.
|
inlineexplicitprivate |
Constructs an adjacency element for a given hyper{node,edge}.
Definition at line 108 of file Hypergraph.h.
|
inlineprivate |
Constructs an adjacency entry for a given hyper{node,edge} and index.
Definition at line 112 of file Hypergraph.h.
| adjHypergraphEntry ogdf::AdjHypergraphElement::cyclicPred | ( | ) | const |
Returns the cyclic predecessor in the adjacency list.
| adjHypergraphEntry ogdf::AdjHypergraphElement::cyclicSucc | ( | ) | const |
Returns the cyclic successor in the adjacency list.
|
inline |
Returns the element associated with this adjacency entry.
It is always a pointer to an instance of HypernodeElement or HyperedgeElement, you are expected to explicitly overtype it to the correct type.
Definition at line 125 of file Hypergraph.h.
|
inline |
Returns the index of this adjacency element.
Definition at line 117 of file Hypergraph.h.
|
inline |
Returns the predecessor in the adjacency list.
Definition at line 134 of file Hypergraph.h.
|
inline |
Returns the successor in the adjacency list.
Definition at line 131 of file Hypergraph.h.
|
inline |
Returns the pointer to a twin adjacency list.
Definition at line 128 of file Hypergraph.h.
|
friend |
Definition at line 88 of file Hypergraph.h.
|
friend |
Definition at line 87 of file Hypergraph.h.
|
friend |
Definition at line 88 of file Hypergraph.h.
|
friend |
|
private |
The associated hyperedge or hypernode.
Definition at line 93 of file Hypergraph.h.
|
private |
The (unique) index of the adjacency entry.
Definition at line 105 of file Hypergraph.h.
|
private |
The corresponding adjacency entry.
Note: For instance, if this AdjHypergraphElement is associated with a hypernode v, its element is an hyperedge e (incident with v) then the twin AdjHypergraphElement is the one associated with e and containing element v. This is a different from m_twin in Graph_d.h!
Definition at line 102 of file Hypergraph.h.
| ogdf::AdjHypergraphElement::OGDF_NEW_DELETE |
Definition at line 142 of file Hypergraph.h.