📜  福特富尔克森的伪代码 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:29.094000             🧑  作者: Mango

代码示例1
initialize flow to 0
path = findAugmentingPath(G, s, t)
while path exists:
    augment flow along path                 #This is purposefully ambiguous for now
    G_f = createResidualGraph()
    path = findAugmentingPath(G_f, s, t)
return flow