diff -r 216c6bd5c18c -r 6520edb2c3f3 lemon/capacity_scaling.h --- a/lemon/capacity_scaling.h Tue Oct 30 20:44:53 2007 +0000 +++ b/lemon/capacity_scaling.h Wed Nov 07 21:52:57 2007 +0000 @@ -364,7 +364,7 @@ s += _lower[e]; for (OutEdgeIt e(graph, n); e != INVALID; ++e) s -= _lower[e]; - supply[n] = imbalance[n] = s; + supply[n] = s; sum += s; } valid_supply = sum == 0; @@ -445,7 +445,7 @@ s += _lower[e]; for (OutEdgeIt e(graph, n); e != INVALID; ++e) s -= _lower[e]; - supply[n] = imbalance[n] = s; + supply[n] = s; } valid_supply = true; } @@ -533,6 +533,7 @@ /// \brief Initializes the algorithm. bool init() { if (!valid_supply) return false; + imbalance = supply; // Initalizing Dijkstra class updater.potentialMap(potential);