gives the edge connectivity of the graph g.
EdgeConnectivity[g,s,t]
gives the s-t edge connectivity of the graph g.
EdgeConnectivity[{vw,…},…]
uses rules vw to specify the graph g.
EdgeConnectivity
gives the edge connectivity of the graph g.
EdgeConnectivity[g,s,t]
gives the s-t edge connectivity of the graph g.
EdgeConnectivity[{vw,…},…]
uses rules vw to specify the graph g.
Details and Options
- EdgeConnectivity is also known as line connectivity.
- The edge connectivity of a graph g is the smallest number of edges whose deletion from g disconnects g.
- The s-t edge connectivity is the smallest number of edges whose deletion from g disconnects g, with s and t in two different connected components.
- For weighted graphs, EdgeConnectivity gives the smallest sum of edge weights.
- For a disconnected graph, EdgeConnectivity will return 0.
- The following option can be given:
-
EdgeWeight Automatic edge weight for each edge
Examples
open all close allBasic Examples (2)
Scope (7)
EdgeConnectivity works on undirected graphs:
EdgeConnectivity[[image]]EdgeConnectivity[[image]]EdgeConnectivity[[image]]EdgeConnectivity[[image]]EdgeConnectivity[[image]]Use rules to specify the graph:
EdgeConnectivity[{1 -> 2, 2 -> 3, 4 -> 3, 6 -> 1, 6 -> 5, 5 -> 2, 5 -> 4, 2 -> 6, 3 -> 5}]EdgeConnectivity works on large graphs:
g = GridGraph[{10, 10, 10, 10}];EdgeConnectivity[g]//TimingOptions (1)
EdgeWeight (1)
By default, the edge weight of an edge is taken to be its EdgeWeight property if available, otherwise 1:
EdgeConnectivity[[image]]Use EdgeWeight->weights to set the edge weight:
EdgeConnectivity[[image], EdgeWeight -> Range[5]]Properties & Relations (3)
Use FindEdgeCut to compute the edge connectivity:
g = [image];{Length[FindEdgeCut[g]], EdgeConnectivity[g]}The maximum flow between two vertices is equal to the edge connectivity:
g = [image];{FindMaximumFlow[g, 1, 2], EdgeConnectivity[g, 1, 2]}EdgeConnectivity returns 0 for a disconnected graph:
g = [image];ConnectedGraphQ[g]EdgeConnectivity[g]Text
Wolfram Research (2012), EdgeConnectivity, Wolfram Language function, https://reference.wolfram.com/language/ref/EdgeConnectivity.html (updated 2015).
CMS
Wolfram Language. 2012. "EdgeConnectivity." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/EdgeConnectivity.html.
APA
Wolfram Language. (2012). EdgeConnectivity. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EdgeConnectivity.html
BibTeX
@misc{reference.wolfram_2026_edgeconnectivity, author="Wolfram Research", title="{EdgeConnectivity}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/EdgeConnectivity.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_edgeconnectivity, organization={Wolfram Research}, title={EdgeConnectivity}, year={2015}, url={https://reference.wolfram.com/language/ref/EdgeConnectivity.html}, note=[Accessed: 13-June-2026]}