Push–relabel maximum flow algorithm

A maximum-flow algorithm that maintains a preflow and vertex height labels, pushing excess flow along admissible residual edges and relabeling vertices until all nonterminal excess disappears.

Connect