Post · 4 min read· pp. 749–751

Edge connectivity / Vertex connectivity

Definition

Given an undirected graph GG with nn vertices and mm edges. Both the edge connectivity and the vertex connectivity are characteristics describing the graph.

Edge connectivity

The edge connectivity λ\lambda of the graph GG is the minimum number of edges that need to be deleted, such that the graph GG gets disconnected.

For example an already disconnected graph has an edge connectivity of 00, a connected graph with at least one bridge has an edge connectivity of 11, and a connected graph with no bridges has an edge connectivity of at least 22.

We say that a set SS of edges separates the vertices ss and tt, if, after removing all edges in SS from the graph GG, the vertices ss and tt end up in different connected components.

It is clear, that the edge connectivity of a graph is equal to the minimum size of such a set separating two vertices ss and tt, taken among all possible pairs (s,t)(s, t).

Vertex connectivity

The vertex connectivity κ\kappa of the graph GG is the minimum number of vertices that need to be deleted, such that the graph GG gets disconnected.

For example an already disconnected graph has the vertex connectivity 00, and a connected graph with an articulation point has the vertex connectivity 11. We define that a complete graph has the vertex connectivity n−1n-1. For all other graphs the vertex connectivity doesn't exceed n−2n-2, because you can find a pair of vertices which are not connected by an edge, and remove all other n−2n-2 vertices.

We say that a set TT of vertices separates the vertices ss and tt, if, after removing all vertices in TT from the graph GG, the vertices end up in different connected components.

It is clear, that the vertex connectivity of a graph is equal to the minimal size of such a set separating two vertices ss and tt, taken among all possible pairs (s,t)(s, t).

Properties

The Whitney inequalities

The Whitney inequalities (1932) gives a relation between the edge connectivity λ\lambda, the vertex connectivity κ\kappa, and the minimum degree of any vertex in the graph δ\delta:

κ≤λ≤δ\kappa \le \lambda \le \delta

Intuitively if we have a set of edges of size λ\lambda, which make the graph disconnected, we can choose one of each end point, and create a set of vertices, that also disconnect the graph. And this set has size ≤λ\le \lambda.

And if we pick the vertex and the minimal degree δ\delta, and remove all edges connected to it, then we also end up with a disconnected graph. Therefore the second inequality λ≤δ\lambda \le \delta.

It is interesting to note, that the Whitney inequalities cannot be improved: i.e. for any triple of numbers satisfying this inequality there exists at least one corresponding graph. One such graph can be constructed in the following way: The graph will consists of 2(δ+1)2(\delta + 1) vertices, the first δ+1\delta + 1 vertices form a clique (all pairs of vertices are connected via an edge), and the second δ+1\delta + 1 vertices form a second clique. In addition we connect the two cliques with λ\lambda edges, such that it uses λ\lambda different vertices in the first clique, and only κ\kappa vertices in the second clique. The resulting graph will have the three characteristics.

The Ford-Fulkerson theorem

The Ford-Fulkerson theorem implies, that the biggest number of edge-disjoint paths connecting two vertices, is equal to the smallest number of edges separating these vertices.

Computing the values

Edge connectivity using maximum flow

This method is based on the Ford-Fulkerson theorem.

We iterate over all pairs of vertices (s,t)(s, t) and between each pair we find the largest number of disjoint paths between them. This value can be found using a maximum flow algorithm: we use ss as the source, tt as the sink, and assign each edge a capacity of 11. Then the maximum flow is the number of disjoint paths.

The complexity for the algorithm using Edmonds-Karp is O(V2VE2)=O(V3E2)O(V^2 V E^2) = O(V^3 E^2). But we should note, that this includes a hidden factor, since it is practically impossible to create a graph such that the maximum flow algorithm will be slow for all sources and sinks. Especially the algorithm will run pretty fast for random graphs.

Special algorithm for edge connectivity

The task of finding the edge connectivity is equal to the task of finding the global minimum cut.

Special algorithms have been developed for this task. One of them is the Stoer-Wagner algorithm, which works in O(V3)O(V^3) or O(VE+V2log⁡V)O(V E + V^2 \log V) time.

Vertex connectivity

Again we iterate over all pairs of vertices ss and tt, and for each pair we find the minimum number of vertices that separates ss and tt.

By doing this, we can apply the same maximum flow approach as described in the previous sections.

We split each vertex xx with x≠sx \neq s and x≠tx \neq t into two vertices x1x_1 and x2x_2. We connect these to vertices with a directed edge (x1,x2)(x_1, x_2) with the capacity 11, and replace all edges (u,v)(u, v) by the two directed edges (u2,v1)(u_2, v_1) and (v2,u1)(v_2, u_1), both with the capacity of 1. The by the construction the value of the maximum flow will be equal to the minimum number of vertices that are needed to separate ss and tt.

This approach has the same complexity as the flow approach for finding the edge connectivity.