Most direct proofs consider a more general statement to allow proving it by induction. It is also convenient to use definitions that include some degenerate cases. The following proof for undirected graphs works without change for directed graphs or multi-graphs, provided we take path to mean directed path. For sets of vertices A,B ⊂ G, an AB-path is a path in G with a starting vertex in A, a final vertex in B, and no internal vertices in A or B. We allow a path with a single vertex in A ∩ B and zero edges. An AB-separator of size k is a set S of k vertices such that G−S contains no AB-path. An AB-connector of size k is a union of k vertex-disjoint AB-paths. In other words, if no k−1 vertices disconnect A from B, then there existk disjoint paths from A to B. This variant implies the above vertex-connectivity statement: for x,y ∈ G in the previous section, apply the current theorem to G− with A = N, B = N, the neighboring vertices of x,y. Then a set of vertices disconnecting x and y is the same thing as an AB-separator, and removing the end vertices in a set of independent xy-paths gives an AB-connector. Proof of the Theorem: Induction on the number of edges in G. For G with no edges, the minimum AB-separator is A ∩ B, which is itself an AB-connector consisting of single-vertex paths. For G having an edge e, we may assume by induction that the Theorem holds for G−e. If G−e has a minimal AB-separator of size k, then there is an AB-connector of size k in G−e, and hence in G. Otherwise, let S be a AB-separator of G−e of size less than k, so that every AB-path in G contains a vertex of S or the edge e. The size of S must be k-1, since if it was less, S together with either endpoint of e would be a better AB-separator of G. In G−S there is an AB-path through e, since S alone is too small to be an AB-separator of G. Let v1 be the earlier and v2 be the later vertex of e on such a path. Then v1 is reachable from A but not from B in G−S−e, while v2 is reachable from B but not from A. Now, let S1 = S ∪ , and consider a minimum AS1-separator T in G−e. Since v2 is not reachable from A in G−S1, T is also an AS1-separator in G. Then T is also an AB-separator in G. Hence it has size at least k. By induction, G−e contains an AS1-connector C1 of size k. Because of its size, the endpoints of the paths in it must be exactly S1. Similarly, letting S2 = S ∪ , a minimum S2B-separator has size k, and there is an S2B-connector C2 of size k, with paths whose starting points are exactly S2. Furthermore, since S1 disconnects G, every path in C1 is internally disjoint from every path in C2, and we can define an AB-connector of size k in G by concatenating paths. Q.E.D.
Other proofs
The directed edge version of the theorem easily implies the other versions. To infer the directed graph vertex version, it suffices to split each vertex v into two vertices v1, v2, with all ingoing edges going tov1, all outgoing edges going from v2, and an additional edge from v1 to v2. The directed versions of the theorem immediately imply undirected versions: it suffices to replace each edge of an undirected graph with a pair of directed edges. The directed edge version in turn follows from its weighted variant, the max-flow min-cut theorem. Its proofs are often correctness proofs for max flow algorithms. It is also a special case of the still more general duality theorem for linear programs. A formulation that for finite digraphs is equivalent to the above formulation is: In this version the theorem follows in fairly easily from König's theorem: in a bipartite graph, the minimal size of a cover is equal to the maximal size of a matching. This is done as follows: replace every vertex v in the original digraph D by two vertices v' , v, and every edge uv by the edge u'v. This results in a bipartite graph, whose one side consists of the vertices v' , and the other of the vertices v. Applying König's theorem we obtain a matching M and a cover C of the same size. In particular, exactly one endpoint of each edge of M is in C. Add to C all vertices a, for a in A, and all vertices b' , for b in B. Let P be the set of all AB-paths composed of edges uv in D such that u'vbelongs to M. Let Q in the original graph consist of all vertices v such that both v' and v belong to C. It is straightforward to check that Q is an AB-separating set, that every path in the family P contains precisely one vertex from Q, and every vertex in Q lies on a path from P, as desired.
Infinite graphs
Menger's theorem holds for infinite graphs, and in that context it applies to the minimum cut between any two elements that are either vertices or ends of the graph. The following result of Ron Aharoni and Eli Berger was originally a conjecture proposed by Paul Erdős, and before being proved was known as the Erdős–Menger conjecture. It is equivalent to Menger's theorem when the graph is finite.