Advanced maths

Minimum vertex cut calculator with disjoint paths

Find a minimum internal vertex cut between nonadjacent terminals and certify it with an equal number of internally vertex-disjoint paths.

Your numbers

Labels are 1 through this count. Include isolated vertices.
One edge per row. Use distinct valid endpoints; no repeated unordered pairs. Leave empty for isolates.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

A terminal vertex cut removes intermediate vertices until two selected terminals can no longer reach each other. The terminals themselves cannot be removed. This calculator splits each vertex into an entry and exit node, gives every internal split edge unit capacity and connects original graph edges through larger-capacity arcs. Maximum flow in that split network produces both a minimum separating vertex set and a collection of paths that share only their terminals. Equality of the two counts is the Menger certificate, not merely a guess from a drawing.

THE FORMULAFor distinct nonadjacent terminals s,t: minimum internal vertex separator size = maximum number of internally vertex-disjoint s–t paths.

A worked example

In the graph with edges 1–2,2–5,1–3,3–5 and 2–3, choose terminals one and five. Paths 1–2–5 and 1–3–5 are internally vertex-disjoint. Any separator must block both, so one internal vertex is insufficient. Removing vertices two and three destroys every terminal route, including those using edge 2–3. The minimum cut size is therefore two. Vertex four is isolated and does not change this local terminal-pair answer.

Good to know

Simple undirected graphs with 1–15 labeled vertices and a split network of at most 200 arcs. Choose distinct nonadjacent terminals. A direct terminal edge cannot be removed by deleting internal vertices, so adjacent-terminal input is explicitly rejected instead of assigned an invented finite separator. Input pairs are unique and loop-free. Every internal vertex has unit removal cost. Weighted removal, global all-terminal connectivity and capacity edge cuts are different tasks. Disconnected terminal pairs correctly have cut size zero.

Splitting a vertex limits how many independent paths may use it

The entry-to-exit edge of an internal vertex has capacity one, so two units of flow cannot both pass through that vertex. Original undirected edges become arcs in both directions, permitting either travel direction without granting extra vertex capacity. Terminal split capacity is deliberately large because sharing the two selected endpoints is allowed. The resulting edge-flow problem encodes internal vertex use, not the cost of deleting the original edges.

After maximum flow is found, a residual cut crossing an internal split edge identifies a vertex in the separator. Positive flow is decomposed into source-to-terminal paths, and their intermediate labels are checked for overlap. The reported paths can differ across tied flow choices. Their value lies in the certificate: k internally disjoint paths need at least k internal removals, while a displayed k-vertex separator shows that k removals suffice.

Two internally disjoint terminal paths need two internal vertex removals12354Cut: {2,3}2 paths; cut size 2
Paths 1–2–5 and 1–3–5 share only their terminal vertices. Removing {2,3} separates 1 from 5. Vertex 4 is isolated and does not change this terminal-pair result.

Local terminal connectivity is not whole-network resilience

The chosen endpoints matter. A graph can contain a well-connected pair and an unrelated bridge or isolated component. This page answers only whether the selected pair remains connected after internal removals. An isolated vertex outside their component therefore does not force the pair’s answer to zero. If the endpoints already lie in different components, however, no removal is required and the empty separator is a valid optimum.

Adjacent terminals require care: their direct edge survives every deletion of other vertices. The standard nonadjacent-terminal form of Menger’s theorem matches this calculator’s finite separator definition. Rejecting that unsupported input is more honest than counting the direct path and pretending it corresponds to an internal vertex cut. The Maximum flow minimum cut calculator for a directed graph instead removes capacity edges between residual partitions; its certificate and the item being removed are different.

A few questions, answered

May the displayed paths share edges?

They may share terminal vertices, but cannot share internal vertices. In this simple nonadjacent-terminal model that also prevents a shared internal edge.

Why can different minimum separators appear for the same graph?

Several equally small vertex sets can separate the terminals. The calculator returns one verified optimum together with disjoint paths proving its size.

Find your calculator

Start typing to explore the library.