GraphTheory
IsBiconnected
test is graph is biconnected
BiconnectedComponents
compute biconnected components of a graph
Blocks
compute blocks of a graph
Calling Sequence
Parameters
Description
Examples
References
IsBiconnected(G)
BiconnectedComponents(G)
Blocks(G)
G
-
undirected unweighted graph
A graph G is bi-connected or 2-connected if it is connected and removal of any vertex from G does not disconnect G. A maximal bi-connected subgraph of G is called a bi-connected component or block of G.
The IsBiconnected command returns true if the input graph is bi-connected. It returns false otherwise.
The Blocks and BiconnectedComponents commands return a list the vertices of all blocks of the graph. The InducedSubgraph command can be used to extract the blocks of the graph as separate subgraphs.
with⁡GraphTheory:
G≔Graph⁡Trail⁡1,2,3,4,2,Trail⁡4,5,6,7,5
G≔Graph 1: an undirected graph with 7 vertices and 8 edge(s)
DrawGraph⁡G
IsBiconnected⁡G
false
The two triangles in G and the two edges {1,2} and {4,5} are the blocks in G.
Blocks⁡G
5,6,7,4,5,2,3,4,1,2
ArticulationPoints⁡G
2,4,5
seq⁡IsBiconnected⁡InducedSubgraph⁡G,B,B=Blocks⁡G
true,true,true,true
Hopcroft and Tarjan, "Efficient algorithms for graph manipulation", CACM. Vol. 16:372-378, 1973. doi:10.1145/362248.362272
"Biconnected component", Wikipedia. http://en.wikipedia.org/wiki/Biconnected_component
See Also
ArticulationPoints
IsConnected
IsTwoEdgeConnected
Trail
Download Help Document