25
правок
Изменения
м
pushed = dfs(<tex>u</tex>, min(flow, c(<tex>vu</tex>) - f(<tex>vu</tex>))) f(<tex>vu</tex>) += pushed f(<tex>uv</tex>) -= pushed '''return''' pushed
ptr[i] = 0
Нет описания правки
ptr[<tex>v</tex>]++
'''if''' (<tex>vu \in E</tex>)
'''return''' 0
flow = 0
'''for''' ('''int''' i = 1 '''to''' n)
'''do'''
pushed = dfs(<tex>s</tex>, <tex>\infty</tex>)