135 List<node> nodesOfType(NodeType t)
const override;
206 if (eOrig !=
nullptr) cpAddEdge(eOrig,Gp);
211 if (w != v) cpRec(w,Gp);
Skeleton graphs of nodes in a static SPQR-tree.
node target() const
Returns the target node of the edge.
virtual edge realEdge(edge e) const =0
Returns the real edge that corresponds to skeleton edge e.
edge skeletonEdgeTgt(edge e) const
Returns the edge in skeleton of target(e) that corresponds to tree edge e.
edge theEdge() const
Returns the edge associated with this adjacency entry.
Data type for general directed graphs (adjacency list representation).
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
int numberOfSNodes() const override
Returns the number of S-nodes in T.
const Graph & getGraph() const
Returns a reference to the skeleton graph M.
EdgeArray< edge > m_copyOf
skeleton edge corresponding to real edge e
const Skeleton & skeletonOfReal(edge e) const override
Returns the skeleton that contains the real edge e.
const Graph & originalGraph() const override
Returns a reference to the original graph G.
NodeArray< StaticSkeleton * > m_sk
pointer to skeleton of a node in T
int numberOfRNodes() const override
Returns the number of R-nodes in T.
Dynamic arrays indexed with edges.
Skeleton graphs of nodes in an SPQR-tree.
EdgeArray< StaticSkeleton * > m_skOf
skeleton containing real edge e
Pertinent graphs of nodes in an SPQR-tree.
internal::GraphObjectContainer< EdgeElement > edges
The container containing all edge objects.
int numberOfEdges() const
Returns the number of edges in the graph.
EdgeArray< edge > m_skEdgeSrc
corresponding edge in skeleton(source(e))
NodeType typeOf(node v) const override
Returns the type of node v.
edge firstEdge() const
Returns the first edge in the list of all edges.
edge rootEdge() const override
Returns the edge of G at which T is rooted.
int m_numS
number of S-nodes
Doubly linked lists (maintaining the length of the list).
Declares class Triconnectivity which realizes the Hopcroft/Tarjan algorithm for finding the triconnec...
Class for the representation of edges.
StaticSPQRTree(const Graph &G, edge e)
Creates an SPQR tree T for graph G rooted at the edge e.
Class for the representation of nodes.
Declaration of class SPQRTree.
node m_rootNode
root node of T
NodeArray< NodeType > m_type
type of nodes in T
Graph m_tree
underlying tree graph
Skeleton & skeleton(node v) const override
Returns the skeleton of node v.
StaticSPQRTree(const Graph &G, Triconnectivity &tricComp)
Creates an SPQR tree T for graph G rooted at the first edge of G.
Linear-time implementation of static SPQR-trees.
EdgeArray< edge > m_skEdgeTgt
corresponding edge in skeleton(target(e))
node rootNode() const override
Returns the root node of T.
edge m_rootEdge
edge of G at which T is rooted
Linear-time implementation of static SPQR-trees.
int m_numP
number of P-nodes
The namespace for all OGDF objects.
const Graph * m_pGraph
pointer to original graph
StaticSPQRTree(const Graph &G)
Creates an SPQR tree T for graph G rooted at the first edge of G.
edge copyOfReal(edge e) const override
Returns the skeleton edge that corresponds to the real edge e.
int m_numR
number of R-nodes
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...
Class for adjacency list elements.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
Declaration of class StaticSkeleton.
int numberOfPNodes() const override
Returns the number of P-nodes in T.
edge skeletonEdgeSrc(edge e) const
Returns the edge in skeleton of source(e) that corresponds to tree edge e.
const Graph & tree() const override
Returns a reference to the tree T.
realizes Hopcroft/Tarjan algorithm for finding the triconnected components of a biconnected multi-gra...
internal::GraphObjectContainer< AdjElement > adjEntries
The container containing all entries in the adjacency list of this node.