114 node rootNode ()
const override {
return findSPQR(m_bNode_SPQR[m_B.firstNode()]); }
131 return (
NodeType)m_tNode_type[findSPQR(v)];
147 if (!m_sk[v])
return createSkeleton(v);
163 e = m_gEdge_hEdge[e];
164 skeleton(spqrproper(e));
165 return m_skelEdge[e];
175 edge e = virtualEdge(v,w);
178 return m_skelEdge[e];
202 edge updateInsertedEdge (
edge e)
override;
227 edge e = m_hEdge_gEdge[*i];
228 if (e) cpAddEdge(e,Gp);
229 else if (*i!=m_tNode_hRefEdge[v]) cpRec(spqrproper(*i),Gp);
const Skeleton & skeletonOfReal(edge e) const override
Returns the skeleton that contains the real edge e.
DynamicSPQRTree(Graph &G)
Creates an SPQR tree T for graph G rooted at the first edge of G.
edge m_rootEdge
edge of G at which T is rooted
EdgeArray< edge > m_skelEdge
copies of real and virtual edges in their skeleton graphs (invalid, if the skeleton does not actually...
edge rootEdge() const override
Returns the edge of G at which T is rooted.
Data type for general directed graphs (adjacency list representation).
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Skeleton & skeleton(node v) const override
Returns the skeleton of node v.
const Graph & tree() const override
Returns a reference to the tree T.
NodeType typeOf(node v) const override
Returns the type of node v.
edge copyOfReal(edge e) const override
Returns the skeleton edge that corresponds to the real edge e.
Dynamic arrays indexed with edges.
void cpRec(node v, PertinentGraph &Gp) const override
Recursively performs the task of adding edges (and nodes) to the pertinent graph Gp for each involved...
Singly linked lists (maintaining the length of the list).
Skeleton graphs of nodes in an SPQR-tree.
bool valid() const
Returns true iff the iterator points to an element.
NodeArray< DynamicSkeleton * > m_sk
pointer to skeleton of a node in T
Pertinent graphs of nodes in an SPQR-tree.
Dynamic arrays indexed with nodes.
NodeType
The type of a tree node in T.
edge firstEdge() const
Returns the first edge in the list of all edges.
node rootNode() const override
Returns the root node of T.
SList< node > & findPath(node s, node t)
Finds the shortest path between the two sets of vertices of T which s and t of G belong to...
const Graph & originalGraph() const override
Returns a reference to the original graph G.
Doubly linked lists (maintaining the length of the list).
int numberOfPNodes() const override
Returns the number of P-nodes in T.
Class for the representation of edges.
Class for the representation of nodes.
Declaration of class SPQRTree.
Linear-time implementation of dynamic SPQR-trees.
Encapsulates a pointer to a list element.
int numberOfSNodes() const override
Returns the number of S-nodes in T.
Skeleton graphs of nodes in a dynamic SPQR-tree.
Declaration of class DynamicSPQRForest.
NodeArray< node > m_mapV
temporary array used by createSkeleton()
DynamicSPQRTree(Graph &G, edge e)
Creates an SPQR tree T for graph G rooted at the edge e.
Linear-time implementation of static SPQR-trees.
The namespace for all OGDF objects.
int numberOfRNodes() const override
Returns the number of R-nodes in T.
Declaration of class DynamicSkeleton.
edge skeletonEdge(node v, node w) const
Returns the virtual edge in the skeleton of w that corresponds to the tree edge between v and w...