PPolySim OS

Maximum Flow

How much can you push through a network of pipes, roads, or wires? The max-flow problem finds the answer — and reveals the bottleneck that limits it.

Maximum FlowLive

Controls

Presets

The max-flow problem asks how much can be pushed from a source to a sink through a network of capacity-limited edges. Edmonds-Karp repeatedly finds an augmenting path and saturates it until none remain. By the max-flow min-cut theorem, the answer equals the capacity of the cheapest set of edges that, if cut, disconnects source from sink — the bottleneck.

▶ Run in Python

Data Inspector

Maximum flow18
Nodes6
Bottleneckmin cut

Governing equation

Reading this result: Both feed edges are generous, so the bottleneck has moved to the fixed interior capacities — adding more feed capacity no longer raises the max flow (min-cut theorem).

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →
★ Sign in to save this setup
Save your tuned setup, or drop this simulation into your own site, docs, or course page.

How it works

Given a network of edges with capacities, the maximum-flow problem finds the greatest total flow from source to sink. The Edmonds-Karp algorithm repeatedly finds a shortest augmenting path and saturates it. By the celebrated max-flow min-cut theorem, the maximum flow equals the capacity of the smallest set of edges whose removal disconnects source from sink — the true bottleneck.

✦

Ask the AI about this model

The math, the assumptions, real-world uses, or a code translation — explained for this exact simulation.

More Optimization simulations

Frequently asked questions

Is this maximum flow min cut tool really free?▾
Yes. Maximum Flow runs entirely in your browser using your device's own compute, so local use is free forever. You only pay Compute Tokens if you scale a job to the cloud.
Do I need to install anything?▾
No. Everything runs client-side in a modern browser — no downloads, no license, no account required to start.
Can I save or share my simulation?▾
Create a free account to save projects, and use a shareable embed or minted DOI to publish a live, interactive version anywhere.
How accurate are the results?▾
The solver uses established numerical methods, but results are for research and educational purposes and should be validated against experiment or professional review before you rely on them.