|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
41 namespace cluster_planarity {
76 for (
auto u : c->
nodes) {
97 if (uAncestor == vAncestor) {
113 m_repEdge[e] = RepGraph[allocCluster]->newEdge(v1, v2);
122 RepGraph[c] =
new Graph;
The namespace for all OGDF objects.
void initialize(const ClusterGraph &CG)
Initializes some internally used members on CG.
Includes declaration of graph class.
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.
const Graph & constGraph() const
Returns a reference to the underlying graph.
RegisteredArray for labeling the clusters of a ClusterGraph.
Constructs a c-planar subclustered spanning tree of the input by setting edgearray values.
void dfsBuildSpanningTree(node v, EdgeArray< bool > &treeEdges, NodeArray< bool > &visited)
ListContainer< cluster, ClusterElement > children
The container containing the child clusters (children in the cluster tree) of this cluster.
Representation of clusters in a clustered graph.
internal::GraphObjectContainer< ClusterElement > clusters
The container containing all cluster objects.
NodeArray< node > m_vRepNode
void deleteRepresentationGraphs(const ClusterGraph &CG, ClusterArray< Graph * > &RepGraph)
Decralation of GraphElement and GraphList classes.
RegisteredArray for nodes, edges and adjEntries of a graph.
Data type for general directed graphs (adjacency list representation).
void constructRepresentationGraphNodes(const ClusterGraph &CG, Graph &g, cluster c)
constructs for every cluster a graph representing its main structure (children & their connections) o...
cluster commonClusterLastAncestors(node v, node w, cluster &c1, cluster &c2) const
Returns the lowest common cluster lca and the highest ancestors on the path to lca.
cluster rootCluster() const
Returns the root cluster.
internal::GraphObjectContainer< EdgeElement > edges
The container containing all edge objects.
Basic declarations, included by all source files.
EdgeArray< cluster > m_allocCluster
store the allocation cluster to avoid multiple computation
node newNode(int index=-1)
Creates a new node and returns it.
void dfsBuildOriginalST(node v, ClusterArray< EdgeArray< bool >> &treeEdges, EdgeArray< bool > &inST, NodeArray< bool > &visited)
builds spanning tree on original graph out of repgraphs STs
Class for the representation of edges.
Derived class of GraphObserver providing additional functionality to handle clustered graphs.
void computeRepresentationGraphs(const ClusterGraph &CG, ClusterArray< Graph * > &RepGraph)
Computes representation graphs used for spanning tree computation.
Declaration of doubly linked lists and iterators.
EdgeArray< edge > m_repEdge
store the representation edge
Encapsulates a pointer to a list element.
ListContainer< node, ClusterElement > nodes
The container containing the nodes lying (directly) in this cluster.
Representation of clustered graphs.
Class for the representation of nodes.
virtual void call(const ClusterGraph &CG, EdgeArray< bool > &inST)
sets values in inST according to membership in c-planar STGraph
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.