Maximum Flow in a Pipe Network: Flow Trace and Augmentation Counts (2D)
A top-down view of the same pipe network with pipe width for capacity, a water core for flow, Dinic level numbers on the tanks, the flow trace and a bar chart of augmentations for the three algorithms. Same algorithms and numerical checks as the 3D scene.
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.
A top-down view of the same pipe network with pipe width for capacity, a water core for flow, Dinic level numbers on the tanks, the flow trace and a bar chart of augmentations for the three algorithms. Same algorithms and numerical checks as the 3D scene.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install