Class for the representation of hypernodes. More...
#include <ogdf/hypergraph/Hypergraph.h>
Public Types | |
enum class | Type { normal = 0x0000001 , dummy = 0x0000002 , OR = 0x0000003 , BUF = 0x0000004 , AND = 0x0000005 , NOR = 0x0000006 , NOT = 0x0000007 , XOR = 0x0000008 , DFF = 0x0000009 , NAND = 0x0000010 , INPUT = 0x0000011 , OUTPUT = 0x0000012 } |
The type of hypernodes. More... | |
Public Member Functions | |
bool | adjacent (hypernode v) const |
Returns true iff v is adjacent to the hypernode. | |
template<class NODELIST > | |
void | allHyperedges (NODELIST &hyperedges) const |
Returns a list with all incident hyperedges of the hypernode. | |
int | degree () const |
Returns the hypernode degree. | |
adjHypergraphEntry | firstAdj () const |
Returns the first entry in the adjaceny list. | |
Hypergraph * | hypergraph () const |
Returns the hypergraph containing the hypernode. | |
int | index () const |
Returns the (unique) hypernode index. | |
adjHypergraphEntry | lastAdj () const |
Returns the last entry in the adjacency list. | |
bool | operator== (const hypernode v) const |
Equality operator. | |
hypernode | pred () const |
Returns the predecessor in the list of all hypernodes. | |
hypernode | succ () const |
Returns the successor in the list of all hypernodes. | |
Type | type () const |
Returns the type of hypernode. | |
void | type (Type pType) |
Sets the type of hypernode. | |
Public Attributes | |
OGDF_NEW_DELETE | |
Private Member Functions | |
HypernodeElement (int pIndex) | |
Constructor. | |
HypernodeElement (int pIndex, Type pType) | |
Constructor. | |
Private Attributes | |
internal::GraphList< AdjHypergraphElement > | m_adjHyperedges |
The adjacency list of the hypernode. | |
int | m_degree |
The number of incident hyperedges. | |
Hypergraph * | m_hypergraph |
The hypergraph containing the hypernode (if any). | |
int | m_index |
The (unique) index of the hypernode. | |
Type | m_type |
The type of the hypernode. | |
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< HypernodeElement > |
Class for the representation of hypernodes.
Definition at line 215 of file Hypergraph.h.
The type of hypernodes.
Definition at line 222 of file Hypergraph.h.
|
inlineexplicitprivate |
Constructor.
Definition at line 254 of file Hypergraph.h.
Constructor.
Definition at line 258 of file Hypergraph.h.
Returns true iff v
is adjacent to the hypernode.
Definition at line 293 of file Hypergraph.h.
Returns a list with all incident hyperedges of the hypernode.
Definition at line 285 of file Hypergraph.h.
|
inline |
Returns the hypernode degree.
Definition at line 266 of file Hypergraph.h.
|
inline |
Returns the first entry in the adjaceny list.
Definition at line 278 of file Hypergraph.h.
|
inline |
Returns the hypergraph containing the hypernode.
Definition at line 269 of file Hypergraph.h.
|
inline |
Returns the (unique) hypernode index.
Definition at line 263 of file Hypergraph.h.
|
inline |
Returns the last entry in the adjacency list.
Definition at line 281 of file Hypergraph.h.
Equality operator.
Definition at line 309 of file Hypergraph.h.
|
inline |
Returns the predecessor in the list of all hypernodes.
Definition at line 306 of file Hypergraph.h.
|
inline |
Returns the successor in the list of all hypernodes.
Definition at line 303 of file Hypergraph.h.
|
inline |
Returns the type of hypernode.
Definition at line 272 of file Hypergraph.h.
Sets the type of hypernode.
Definition at line 275 of file Hypergraph.h.
Definition at line 217 of file Hypergraph.h.
|
friend |
Definition at line 216 of file Hypergraph.h.
|
friend |
Definition at line 217 of file Hypergraph.h.
|
private |
The adjacency list of the hypernode.
Definition at line 239 of file Hypergraph.h.
|
private |
The number of incident hyperedges.
Definition at line 245 of file Hypergraph.h.
|
private |
The hypergraph containing the hypernode (if any).
Definition at line 251 of file Hypergraph.h.
|
private |
The (unique) index of the hypernode.
Definition at line 242 of file Hypergraph.h.
|
private |
The type of the hypernode.
Definition at line 248 of file Hypergraph.h.
ogdf::HypernodeElement::OGDF_NEW_DELETE |
Definition at line 313 of file Hypergraph.h.