Update graph/mcmf.cc
Signed-off-by: subcrip <contact@subc.rip>
This commit is contained in:
parent
aa03bfe96c
commit
bb5838b2e6
|
@ -28,7 +28,7 @@ struct mcmf {
|
||||||
while (f) {
|
while (f) {
|
||||||
f = 0;
|
f = 0;
|
||||||
for (int i = 0; i < n; ++i) {
|
for (int i = 0; i < n; ++i) {
|
||||||
for (auto&& [to, cap, flow, cost, rev] : edges[i]) {
|
for (auto&& [to, cap, flow, cost, rev, mark] : edges[i]) {
|
||||||
if (cap > flow and dis[to] > dis[i] + cost) {
|
if (cap > flow and dis[to] > dis[i] + cost) {
|
||||||
dis[to] = dis[i] + cost;
|
dis[to] = dis[i] + cost;
|
||||||
f = 1;
|
f = 1;
|
||||||
|
|
Loading…
Reference in New Issue