71 OGDF_ASSERT(v->graphOf() == m_isContained.graphOf());
72 bool &isContained = m_isContained[v];
73 if (isContained ==
false) {
86 for(
node v : m_nodes) {
87 m_isContained[v] =
false;
99 OGDF_ASSERT(v->graphOf() == m_isContained.graphOf());
100 return m_isContained[v];
154 itV = m_nodes.pushBack(v);
180 for(
node v : m_nodes) {
195 return m_it[v].valid();
216 m_it.init(*V.
m_it.graphOf());
267 itV = m_nodes.pushBack(v);
293 for(
node v : m_nodes) {
308 return m_it[v].valid();
316 return m_nodes.size();
337 m_it.init(*V.
m_it.graphOf());
Declaration of singly linked lists and iterators.
void clear()
Removes all nodes from S.
bool isMember(node v) const
Returns true if node v is contained in S, false otherwise.
Data type for general directed graphs (adjacency list representation).
void insert(node v)
Inserts node v into S.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
bool isMember(node v) const
Returns true if node v is contained in S, false otherwise.
NodeSet(const Graph &G)
Creates an empty node set associated with graph G.
bool isMember(node v) const
Returns true if node v is contained in S, false otherwise.
ListPure< node > m_nodes
The list of nodes contained in S.
int size() const
Returns the size of S.
const List< node > & nodes() const
Returns a reference to the list of nodes contained in S.
void insert(node v)
Inserts node v into S.
void insert(node v)
Inserts node v into S.
NodeSetPure & operator=(const NodeSetPure &V)
Assignment operator.
NodeSet & operator=(const NodeSet &V)
Assignment operator.
Doubly linked lists (maintaining the length of the list).
Class for the representation of nodes.
Declaration and implementation of NodeArray class.
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 oth...
Encapsulates a pointer to a list element.
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 oth...
NodeSetPure(const NodeSetPure &V)
Copy constructor.
const ListPure< node > & nodes() const
Returns a reference to the list of nodes contained in S.
const SListPure< node > & nodes() const
Returns a reference to the list of nodes contained in S.
NodeSetSimple(const Graph &G)
Creates an empty node set associated with graph G.
NodeArray< bool > m_isContained
m_isContained[v] is true iff v is contained in S.
List< node > m_nodes
The list of nodes contained in S.
The namespace for all OGDF objects.
SListPure< node > m_nodes
The list of nodes contained in S.
NodeSet(const NodeSet &V)
Copy constructor.
void clear()
Removes all nodes from S.
void clear()
Removes all nodes from S.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
NodeSetPure(const Graph &G)
Creates an empty node set associated with graph G.
Declaration of doubly linked lists and iterators.