66 OGDF_ASSERT(c->graphOf() == m_isContained.graphOf());
70 m_clusters.pushFront(c);
82 for (it = m_clusters.begin(); it.
valid(); ++it) {
83 m_isContained[*it] =
false;
95 OGDF_ASSERT(c->graphOf() == m_isContained.graphOf());
96 return m_isContained[c];
144 itV = m_clusters.pushBack(c);
171 for (it = m_clusters.begin(); it.
valid(); ++it) {
185 return m_it[c].valid();
234 itV = m_clusters.pushBack(c);
261 for (it = m_clusters.begin(); it.
valid(); ++it) {
275 return m_it[c].valid();
282 int size()
const {
return m_clusters.size(); }
Declaration and implementation of ClusterArray class.
Declaration of doubly linked lists and iterators.
Dynamic arrays indexed with clusters.
Representation of clusters in a clustered graph.
Representation of clustered graphs.
void clear()
Removes all clusters from S.
bool isMember(cluster c) const
Returns true if cluster c is contained in S, false otherwise.
ClusterArray< ListIterator< cluster > > m_it
m_it[c] contains the list iterator pointing to c if c is contained in S, an invalid list iterator oth...
void remove(cluster c)
Removes cluster c from S.
const List< cluster > & clusters() const
Returns a reference to the list of clusters contained in S.
ClusterSet(const ClusterGraph &C)
Creates an empty cluster set associated with clustered graph C.
int size() const
Returns the size of S.
List< cluster > m_clusters
The list of clusters contained in S.
void insert(cluster c)
Inserts cluster c into S.
const ListPure< cluster > & clusters() const
Returns a reference to the list of clusters contained in S.
void insert(cluster c)
Inserts cluster c into S.
void remove(cluster c)
Removes cluster c from S.
ListPure< cluster > m_clusters
The list of clusters contained in S.
ClusterSetPure(const ClusterGraph &C)
Creates an empty cluster set associated with clustered graph C.
void clear()
Removes all clusters from S.
ClusterArray< ListIterator< cluster > > m_it
m_it[c] contains the list iterator pointing to c if c is contained in S, an invalid list iterator oth...
bool isMember(cluster c) const
Returns true if cluster c is contained in S, false otherwise.
void insert(cluster c)
Inserts cluster c into S.
const SListPure< cluster > & clusters() const
Returns a reference to the list of clusters contained in S.
void clear()
Removes all clusters from S.
ClusterArray< bool > m_isContained
m_isContained[c] is true iff c is contained in S
SListPure< cluster > m_clusters
The list of clusters contained in S.
bool isMember(cluster c) const
Returns true if cluster c is contained in S, false otherwise.
ClusterSetSimple(const ClusterGraph &C)
Creates an empty cluster set associated with clustered graph C.
Doubly linked lists (maintaining the length of the list).
Encapsulates a pointer to a list element.
bool valid() const
Returns true iff the iterator points to an element.
Encapsulates a pointer to an ogdf::SList element.
bool valid() const
Returns true iff the iterator points to an element.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.