Graph Theory37 sections · 1633 units
Open in Course

Download Speed - Walkthrough

(Example with 4 nodes)

Example: 44 nodes, 55 edges. Edges: (11,22,33), (11,33,55), (22,33,22), (22,44,44), (33,44,66). First BFS finds path 1241 \to 2 \to 4 with bottleneck 33. Flow becomes 33. Next BFS finds path 1341 \to 3 \to 4 with bottleneck 55. Flow becomes 88. No more paths exist from 11 to 44 in the residual graph.

Maximum flow is 88. The algorithm systematically finds all paths and uses them efficiently. Each augmentation increases the total flow until no improvement is possible.