Skip to content
OneKitly

Twenty Units Leave the Source and Only Nineteen Arrive

Published 11/23/2026 · 3 min read · Developer tools

Daniel Okonkwo

Daniel Okonkwo — Front-end developer and tech writer at OneKitly

Web performance · File formats

Checked against 2 sources

View profile →
In short

In the calculator's default network, ten units can leave the source down each of two edges and ten can enter the sink down each of two more, so both ends offer twenty. The maximum flow is nineteen. The reason is a cut: remove the edge S→A, capacity ten, and the edge C→D, capacity nine, and nothing can get from source to sink at all. Nineteen is what that cut can pass, and the max-flow min-cut theorem says throughput always equals the smallest such cut. Widening any edge that is not on it — four separate edges here — leaves the answer at nineteen.

Advertisement

A network's throughput is not the capacity leaving the source. It equals the smallest cut anywhere in the middle — and widening any other pipe changes nothing at all.

Fixing the bottleneck moves it, it does not remove it

Adding five units to S→A, which is on the cut, lifts throughput from nineteen to twenty — not to twenty-four. The old cut is no longer the tightest, so a different one becomes binding, and here it is the sink's own two inbound edges at ten apiece. Every capacity upgrade buys exactly as much as the next constraint allows, which is why a plan that lists five improvements and adds up their individual gains is almost always wrong. Recompute the flow after each change instead.

Where this shows up outside graph theory

The same theorem sizes a road network, a delivery fleet, a data centre's internal links and any assignment problem that can be phrased as sending units through a graph. It also answers questions that do not look like flow: matching applicants to jobs, scheduling shifts, or deciding which single link an adversary would cut to do the most damage. The residual graph the calculator leaves behind is what identifies that link, and it is often not the one with the smallest capacity.

Adding five units of capacity to one edge
Edge widenedOn the minimum cut?New maximum flow
S → Ayes20
C → Dyes20
A → Dno19 — no change
D → Tno19 — no change
Network flow (max flow) calculatorCompute the maximum flow through a capacitated network. Enter directed arcs with capacities ("S -> A : 10"), a source and a sink, and the Edmonds-Karp algorithm returns the maximum flow value plus the flow on every arc, highlighting the saturated arcs that form the minimum cut (max-flow equals min-cut).Try the tool →
Advertisement

Frequently asked questions

Is the minimum cut always unique?
No. A network can have several cuts of the same minimum capacity, and then no single upgrade helps: you have to widen at least one edge in every one of them before the flow moves. The calculator reports the cut reachable from the source in the residual graph, which is the smallest one on that side; a symmetric search from the sink can find a different cut of equal size. When an improvement plan mysteriously fails to deliver, a second minimum cut is the usual explanation.
Does the algorithm find the only correct set of flows?
The total is unique; the arrangement usually is not. Several different assignments of flow to edges can add up to the same maximum, and which one Edmonds-Karp reports depends on the order in which it finds augmenting paths. That matters in practice: if two routings both carry nineteen units, you are free to pick the one with the shortest paths, the lowest cost or the most spare headroom, and the flow value will not change. Only the cut is forced.

Articles you may find interesting

All guides →

Related tools

Sources

Spotted a mistake in this article?