Pipe network: flow / capacity on every pipe
Flow trace and augmentations per algorithm

Maximum Flow in a Pipe Network: Flow Trace and Augmentation Counts (2D)

A reservoir feeds a sink tower through a random network of tanks and pipes, each pipe with its own capacity. Watch Dinic's algorithm number the tanks by distance, push a blocking flow along shortest paths and repeat until no path is left, then see that the full pipes form the minimum cut with exactly the same capacity. Switch to Edmonds-Karp or plain depth-first Ford-Fulkerson to compare how many augmentations each needs. Verified against brute-force enumeration of every cut, flow conservation, agreement of the three algorithms, bipartite matching and the strictly increasing phase distance. A Blender-built reservoir, tanks, valves and water tower in 3D.

Made with 🟠 Blender