322 void initNotConnected (
node vG);
341 virtual node parent (
node vB)
const;
363 explicit BCTree (
Graph& G,
bool callInitConnected =
false) : m_G(G), m_eStack(G.numberOfEdges()) {
364 if (!callInitConnected) {
380 BCTree (
Graph& G,
node vG,
bool callInitConnected =
false) : m_G(G), m_eStack(G.numberOfEdges()) {
381 if (!callInitConnected)
383 else initNotConnected(vG);
408 GNodeType typeOfGNode (
node vG)
const {
return m_bNode_type[m_hNode_bNode[m_gNode_hNode[vG]]]==BNodeType::BComp ? GNodeType::Normal : GNodeType::CutVertex; }
601 void initBasic(
node vG);
Declaration of singly linked lists and iterators.
edge rep(edge eG) const
Returns the edge of the biconnected components graph corresponding to a given edge of the original gr...
GNodeType
Enumeration type for characterizing the vertices of the original graph.
NodeArray< node > m_gNode_hNode
An injective mapping vertices(G) -> vertices(H).
int numberOfBComps() const
Returns the number of B-components.
Data type for general directed graphs (adjacency list representation).
NodeArray< node > m_bNode_hParNode
Array that contains for each BC-tree-vertex the representant of itself within the subgraph in the bic...
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
NodeArray< SList< edge > > m_bNode_hEdges
Array that contains for each BC-tree-vertex a linear list of the edges of the biconnected components ...
NodeArray< node > m_hNode_gNode
A surjective mapping vertices(H) -> vertices(G).
BNodeType typeOfBNode(node vB) const
node firstNode() const
Returns the first node in the list of all nodes.
An array that keeps track of the number of inserted elements; also usable as an efficient stack...
const Graph & auxiliaryGraph() const
Returns the biconnected components graph.
Dynamic arrays indexed with edges.
NodeArray< node > m_bNode_hRefNode
Array that contains for each BC-tree-vertex the representantive of its parent within the subgraph in ...
BCTree(Graph &G, bool callInitConnected=false)
A constructor.
Singly linked lists (maintaining the length of the list).
NodeArray< BNodeType > m_bNode_type
Array that contains the type of each BC-tree-vertex.
NodeArray< int > m_lowpt
Temporary array.
Declaration and implementation of EdgeArray class.
NodeArray< node > m_hNode_bNode
NodeArray< bool > m_gNode_isMarked
int m_numC
The number of C-components.
int size() const
Returns the size (number of elements) of the array.
BCTree(Graph &G, node vG, bool callInitConnected=false)
A constructor.
NodeArray< int > m_number
Temporary array.
Class for the representation of edges.
virtual node bcproper(node vG) const
Returns a BC-tree-vertex representing a biconnected component which a given vertex of the original gr...
GNodeType typeOfGNode(node vG) const
Class for the representation of nodes.
Declaration and implementation of NodeArray class.
node rep(node vG) const
Returns a vertex of the biconnected components graph corresponding to a given vertex of the original ...
edge original(edge eH) const
Returns the edge of the original graph which a given edge of the biconnected components graph is corr...
NodeArray< node > m_gtoh
Temporary array.
EdgeArray< edge > m_gEdge_hEdge
A bijective mapping edges(G) -> edges(H).
Graph & m_G
The original graph.
int numberOfNodes(node vB) const
Returns the number of vertices belonging to the biconnected component represented by a given BC-tree-...
const SList< edge > & hEdges(node vB) const
Returns a linear list of the edges of the biconnected components graph belonging to the biconnected c...
BNodeType
Enumeration type for characterizing the BC-tree-vertices.
int m_numB
The number of B-components.
ArrayBuffer< adjEntry > m_eStack
Temporary stack.
EdgeArray< node > m_hEdge_bNode
A surjective mapping edges(H) -> vertices(B).
SList< node > m_nodes
Temporary list.
The namespace for all OGDF objects.
virtual node bcproper(edge eG) const
Returns the BC-tree-vertex representing the biconnected component which a given edge of the original ...
virtual ~BCTree()
Virtual destructor.
NodeArray< int > m_bNode_numNodes
Array that contains for each BC-tree-vertex the number of vertices belonging to the biconnected compo...
int numberOfEdges(node vB) const
Returns the number of edges belonging to the biconnected component represented by a given BC-tree-ver...
const Graph & originalGraph() const
Returns the original graph.
Class for adjacency list elements.
const Graph & bcTree() const
Returns the BC-tree graph.
int numberOfCComps() const
Returns the number of C-components.
NodeArray< bool > m_bNode_isMarked
Array of marks for the BC-tree-vertices.
Graph m_H
The biconnected components graph.
EdgeArray< edge > m_hEdge_gEdge
A bijective mapping edges(H) -> edges(G).