EdgeConnectivity - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


GraphTheory

  

EdgeConnectivity

  

compute edge connectivity of a graph

  

VertexConnectivity

  

compute vertex connectivity of a graph

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

EdgeConnectivity(G)

VertexConnectivity(G)

Parameters

G

-

graph

Options

• 

output = value or ['value', 'cutset']

  

Specify what the command returns: value is the connectivity value as a positive integer. cutset is a set of edges or vertices of size value that can be removed to disconnect the graph.

Description

• 

EdgeConnectivity returns the edge connectivity of a graph, that is the minimum number of edges whose removal disconnects the graph. The output option can be used to return a cut-set of minimal size. This set is typically not unique. The IsCutSet command can be used to test whether a set of edges is a cut-set.

• 

VertexConnectivity returns the vertex connectivity of a graph, that is the minimum number of vertices whose removal disconnects the graph. The output option can be used to return a minimal set of vertices tha can be used to disconnnect the graph. Again, this set is not unique.

• 

In the general case, both these commands call MaxFlow iteratively over pairs of vertices in the graph (or a related graph) and they call MinCut to compute the cut-set.

• 

By an elementary theorem of graph theory, the vertex connectivity of a graph is less than or equal to the edge connectivity, which is less than or equal to the minimum degree.

Examples

withGraphTheory:

GGraph1,2,1,3,1,4,2,3,3,4,4,5,4,6,5,6

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

(1)

DrawGraphG

MinimumDegreeG

2

(2)

EdgeConnectivityG

2

(3)

VertexConnectivityG,output=value,cutset

1,4

(4)

When the vertex connectivity value is 1, then the disconnection point is an articulation point and was computed with the command ArticulationPoints.

ArticulationPointsG

4

(5)

The Peterson Graph is a good example where both connectivity values are equal to the minimum degree.

PSpecialGraphs:-PetersenGraph

PGraph 2: an undirected graph with 10 vertices and 15 edge(s)

(6)

DrawGraphP

MinimumDegreeP

3

(7)

vc,vcutVertexConnectivityP,output=value,cutset

vc,vcut3,2,4,7

(8)

DrawGraphDeleteVertexP,vcut

ec,ecutEdgeConnectivityP,output=value,cutset

ec,ecut3,1,2,2,3,2,9

(9)

IsCutSetP,ecut

true

(10)

DrawGraphDeleteEdgeP,ecut

ec=vc

3=3

(11)

Compatibility

• 

The GraphTheory[EdgeConnectivity] and GraphTheory[VertexConnectivity] commands were updated in Maple 2024.

• 

The output option was introduced in Maple 2024.

• 

For more information on Maple 2024 changes, see Updates in Maple 2024.

See Also

ArticulationPoints

DeleteEdge

DeleteVertex

IsConnected

IsCutSet

MinimumDegree