Ford-Fulkerson(G, s, t) ; G = (V, E) 1 foreach edge (u,v) in E 2 f(u,v) = f(v,u) = 0 3 while exists path p from s to t in residual network Gf 4 5 foreach edge (u,v) on p 6 f(u,v) = f(u,v) + cf(p) 7 f(v,u) = -f(u,v)