Push–relabel maximum flow algorithm: Difference between revisions

Content deleted Content added
Joshxyz (talk | contribs)
Make use of ∞ consistent
Line 389:
 
height[source] = n # longest path from source to sink is less than n long
excess[source] = Inf # send as much flow as possible to neighbours of source
for v in xrange(n):
push(source, v)