39namespace cluster_planarity {
74 for (
auto u : c->
nodes) {
82 for (
edge e :
CG.constGraph().edges) {
Declaration and implementation of ClusterArray class.
Derived class of GraphObserver providing additional functionality to handle clustered graphs.
Declaration and implementation of EdgeArray class.
Dynamic arrays indexed with clusters.
Representation of clusters in a clustered graph.
ListContainer< node, ClusterElement > nodes
The container containing the nodes lying (directly) in this cluster.
ListContainer< cluster, ClusterElement > children
The container containing the child clusters (children in the cluster tree) of this cluster.
Representation of clustered graphs.
Dynamic arrays indexed with edges.
Class for the representation of edges.
Data type for general directed graphs (adjacency list representation).
node newNode()
Creates a new node and returns it.
Encapsulates a pointer to a list element.
Dynamic arrays indexed with nodes.
Class for the representation of nodes.
Constructs a c-planar subclustered spanning tree of the input by setting edgearray values.
void dfsBuildSpanningTree(node v, EdgeArray< bool > &treeEdges, NodeArray< bool > &visited)
void constructRepresentationGraphNodes(const ClusterGraph &CG, Graph &g, cluster c)
constructs for every cluster a graph representing its main structure (children & their connections) o...
EdgeArray< cluster > m_allocCluster
store the allocation cluster to avoid multiple computation
void deleteRepresentationGraphs(const ClusterGraph &CG, ClusterArray< Graph * > &RepGraph)
NodeArray< node > m_vRepNode
virtual void call(const ClusterGraph &CG, EdgeArray< bool > &inST)
sets values in inST according to membership in c-planar STGraph
void dfsBuildOriginalST(node v, ClusterArray< EdgeArray< bool > > &treeEdges, EdgeArray< bool > &inST, NodeArray< bool > &visited)
builds spanning tree on original graph out of repgraphs STs
EdgeArray< edge > m_repEdge
store the representation edge
virtual void call(const ClusterGraph &CG, EdgeArray< bool > &inST, EdgeArray< double > &weight)
sets values in inST according to membership in c-planar STGraph, computes minimum spanning tree accor...
void computeRepresentationGraphs(const ClusterGraph &CG, ClusterArray< Graph * > &RepGraph)
Computes representation graphs used for spanning tree computation.
void initialize(const ClusterGraph &CG)
Initializes some internally used members on CG.
void constructRepresentationGraphEdges(const ClusterGraph &CG, ClusterArray< Graph * > &RepGraph)
insert rep edges for all edges in clustergraph
ClusterArray< node > m_cRepNode
store the representation nodes for nodes and clusters
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.