BiconnectedComponents - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


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

Calling Sequence

IsBiconnected(G)

BiconnectedComponents(G)

Blocks(G)

Parameters

G

-

undirected unweighted graph

Description

• 

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.

Examples

withGraphTheory:

GGraphTrail1,2,3,4,2,Trail4,5,6,7,5

GGraph 1: an undirected graph with 7 vertices and 8 edge(s)

(1)

DrawGraphG

IsBiconnectedG

false

(2)

The two triangles in G and the two edges {1,2} and {4,5} are the blocks in G.

BlocksG

5,6,7,4,5,2,3,4,1,2

(3)

ArticulationPointsG

2,4,5

(4)

seqIsBiconnectedInducedSubgraphG,B,B=BlocksG

true,true,true,true

(5)

References

  

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