# HG changeset patch # User marci # Date 1102008967 0 # Node ID 4ec35d1cd8976fd98b380dfe8661b1cd840b0319 # Parent bd7ea1a718e2d3d3e646ca6b525603e881f92d9e bug fix. previously, it did not work with graphs having non-reference node-maps diff -r bd7ea1a718e2 -r 4ec35d1cd897 src/lemon/min_cost_flow.h --- a/src/lemon/min_cost_flow.h Wed Dec 01 14:08:37 2004 +0000 +++ b/src/lemon/min_cost_flow.h Thu Dec 02 17:36:07 2004 +0000 @@ -147,7 +147,7 @@ //We have to change the potential for(typename ResGW::NodeIt n(res_graph); n!=INVALID; ++n) - potential[n] += dijkstra.distMap()[n]; + potential.set(n, potential[n]+dijkstra.distMap()[n]); //Augmenting on the sortest path Node n=t;