153 void createSPQR(
node vB)
const;
167 m_tNode_owner[vT] = vT;
168 m_tNode_type[vT] = spqrNodeType;
171 if (spqrNodeType == TNodeType::PComp) {
173 }
else if (spqrNodeType == TNodeType::SComp) {
175 }
else if (spqrNodeType == TNodeType::RComp) {
189 m_hEdge_position[eH] = m_tNode_hEdges[vT]->pushBack(eH);
190 m_hEdge_tNode[eH] = vT;
201 m_tNode_hEdges[vT]->del(m_hEdge_position[eH]);
215 m_hEdge_twinEdge[eH] = fH;
216 m_hEdge_twinEdge[fH] = eH;
416 edge updateInsertedEdge(
edge eG)
override;
node target() const
Returns the target node of the edge.
NodeArray< TNodeType > m_tNode_type
The types of the SPQR-tree-vertices.
Data type for general directed graphs (adjacency list representation).
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Dynamic arrays indexed with edges.
NodeArray< node > m_tNode_owner
The owners of the SPQR-tree-vertices in the UNION/FIND structure.
Singly linked lists (maintaining the length of the list).
Dynamic arrays indexed with nodes.
void delHEdge(edge eH, node vT) const
Deletes edge eH from m_H and removes its connection to a vertex vT of the SPQRForest.
node newSPQRNode(node vB, const TNodeType spqrNodeType) const
Creates a new node in the SPQR-tree for a given B-component of the BC-tree.
NodeArray< List< edge > * > m_tNode_hEdges
Lists of real and virtual edges belonging to SPQR-tree vertices.
EdgeArray< node > m_hEdge_tNode
The SPQR-tree-vertices which the real and virtual edges are belonging to.
Class for the representation of edges.
void addHEdge(edge eH, node vT) const
Adds edge eH to a vertex vT of the SPQRForest.
node spqrproper(edge eH) const
DynamicSPQRForest(Graph &G)
A constructor.
Class for the representation of nodes.
Declaration of class SPQRTree.
NodeArray< int > m_bNode_numR
The numbers of R-components.
NodeArray< node > m_htogc
Auxiliary array used by createSPQR().
TNodeType typeOfTNode(node vT) const
NodeArray< int > m_bNode_numP
The numbers of P-components.
NodeArray< bool > m_tNode_isMarked
Auxiliary array used by findNCASPQR()
Declaration of class DynamicBCTree.
edge twinEdge(edge eH) const
Returns the twin edge of a given edge of m_H, if it is virtual, or nullptr, if it is real...
edge newTwinEdge(edge eH, node vT) const
Creates a twin edge for eH, adds it to vT and returns it.
NodeArray< int > m_bNode_numS
The numbers of S-components.
NodeArray< node > m_bNode_SPQR
node source() const
Returns the source node of the edge.
The namespace for all OGDF objects.
EdgeArray< ListIterator< edge > > m_hEdge_position
The positions of real and virtual edges in their m_tNode_hEdges lists.
EdgeArray< edge > m_hEdge_twinEdge
The partners of virtual edges (nullptr if real).
node newNode()
Creates a new node and returns it.
Graph m_T
A Graph structure containing all SPQR-trees.
const List< edge > & hEdgesSPQR(node vT) const
Returns a linear list of the edges in m_H belonging to the triconnected component represented by a gi...
NodeArray< edge > m_tNode_hRefEdge
The virtual edges leading to the parents of the SPQR-tree vertices.
TNodeType
Enumeration type for characterizing the SPQR-tree-vertices.