Node sets. More...
#include <ogdf/basic/NodeSet.h>
Public Member Functions | |
| NodeSetPure (const Graph &G) | |
Creates an empty node set associated with graph G. More... | |
| NodeSetPure (const NodeSetPure &V) | |
| Copy constructor. More... | |
| ~NodeSetPure () | |
| void | clear () |
| Removes all nodes from S. More... | |
| void | insert (node v) |
Inserts node v into S. More... | |
| bool | isMember (node v) const |
Returns true if node v is contained in S, false otherwise. More... | |
| const ListPure< node > & | nodes () const |
| Returns a reference to the list of nodes contained in S. More... | |
| NodeSetPure & | operator= (const NodeSetPure &V) |
| Assignment operator. More... | |
| void | remove (node v) |
Removes node v from S. More... | |
Private Attributes | |
| NodeArray< ListIterator< node > > | m_it |
| m_it[v] contains the list iterator pointing to v if v is contained in S, an invalid list iterator otherwise. More... | |
| ListPure< node > | m_nodes |
| The list of nodes contained in S. More... | |
Node sets.
A node set maintains a subset S of the nodes contained in an associated graph. This kind of node set provides efficient operations for testing membership, insertion and deletion of elements, and clearing the set.
In contrast to NodeSet, a NodeSetPure does not provide efficient access to the number of nodes stored in the set.
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |