Content deleted Content added
Line 33:
cur := q.pull()
'''for''' Edge e '''in''' graph[cur] '''do'''
pred[e.t] := e
q.push(e.t)
'''if''' '''not''' (pred[t] = null) '''then'''
''(We found an augmenting path.''
Line 48:
e.rev.flow := e.rev.flow - df
flow := flow + df
'''until''' pred[t] = null ''(i.e., until no augmenting path was found)''
'''return''' flow
|