Push–relabel maximum flow algorithm: Difference between revisions

Content deleted Content added
Drrilll (talk | contribs)
Drrilll (talk | contribs)
Line 125:
In the ''relabel-to-front'' algorithm we fully discharge each vertex before moving to the next one. The ordering tends to reduce the number of non-saturating pushes we do:
 
FunctionAlgorithm Relabel-to-Front(G(V,E),s,t):
for each edge (s,v):
push(s,v); //note that this will saturate the edge