Algorithm. Greedy Flow [00S4]

Initialize f(e) \gets 0 for all e \in E
\mathsf {while} there is any unsaturated path P from s to t:
\alpha \gets minimum remaining capacity c(e) - f(e) among all edges e \in P
\mathsf {for} each edge e \in P:
f(e) \gets f(e) + \alpha