List< edge > & lcaEdges(cluster c)
Returns list of edges for cluster c with lca c.
NodeArray< int > m_ialevel
List< node > & oaNodes(cluster c)
Returns list of outeractive vertices for cluster c. The result is only valid if lists are stored...
Declaration and implementation of HashArray class.
bool isInnerActive(node v, cluster c)
The parameterized class Array implements dynamic arrays of type E.
Derived class of GraphObserver providing additional functionality to handle clustered graphs...
ClusterArray< int > * m_oanum
Number of outer active vertices.
Indexed arrays using hashing for element access.
void computeIndyBags()
Compute independent bags per cluster and store result as vertex-indyBag index in m_indyBagNumber.
NodeArray< ClusterArray< int > * > m_iactive
static const int DefaultIndex
cluster indyBagRoot(int i)
Returns root cluster of independent bag. Note that this cluster either has direct vertex members or m...
const bool m_storeoalists
If set to true (default) lists of outeractive vertices are stored.
int innerActive(cluster c)
Returns number of inneractive vertices of cluster c.
const bool m_indyBags
If true, a node partition into independent bags is computed which can be used for dividing the input ...
static const int IsNotActiveBound
int bagIndex(node v, cluster c)
Returns bag index number for a vertex v in cluster c.
NodeArray< ClusterArray< int > * > m_bagindex
We store the bag affiliation of the vertices for each cluster. A value of -1 indicates that the verte...
ClusterArray< List< node > > * m_oalists
For each cluster we store the outeractive vertices. In case you want to save space, set m_storeoalists to false.
Representation of clustered graphs.
Dynamic arrays indexed with nodes.
bool isOuterActive(node v, cluster c)
Returns outer activity status for vertex v wrt cluster c.
int minIOALevel(node v) const
Returns the highest (smallest) level depth for which a vertex is inner or outer active.
ClusterArray< int > * m_bags
Number of bags per cluster (stored even if vertex list is not stored)
ClusterArray< List< edge > > * m_lcaEdges
For each cluster c we store the edges with lca c.
Class for the representation of nodes.
ClusterArray< int > * m_ianum
Number of inner active vertices.
Encapsulates a pointer to a list element.
int indyBagIndex(node v)
Returns independent bag index number for a vertex v.
void init()
Initialize the structures, performs analyses.
Representation of clusters in a clustered graph.
int minIALevel(node v) const
Returns the highest (smallest) level depth for which a vertex is inner active, only initialized if ve...
int numberOfBags(cluster c)
Returns number of bags for cluster c.
void partitionCluster(ListConstIterator< node > &nodeIt, cluster c, HashArray< int, List< node > > &bagNodes, HashArray< int, bool > &indyBag, Skiplist< int *> &indexNumbers, Array< cluster > &bagRoots)
Runs through a list of vertices (starting with the one nodeIT points to) which is expected to be a fu...
The namespace for all OGDF objects.
NodeArray< ClusterArray< int > * > m_oactive
void cleanUp()
Deletes dynamically allocated structures.
int numberOfIndyBags()
Returns number of independent bags in clustergraph, -1 in case no independent bags were computed...
void computeBags()
Compute bags per cluster and store result as vertex-bag index in m_bagIndex.
NodeArray< int > m_indyBagNumber
Each independent bag has a different number.
ClusterAnalysis(const ClusterGraph &C, bool indyBags=false)
Constructor. Performs all analyses and in case indyBags is set to true, also computes a partition int...
int outerActive(cluster c)
Returns number of outeractive vertices of cluster c.
NodeArray< int > m_oalevel
Declaration of class Skiplist.
int minOALevel(node v) const
Returns the highest (smallest) level depth for which a vertex is outer active, only initialized if ve...