[Lemon-commits] [lemon_svn] marci: r1417 - hugo/trunk/src/lemon
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 20:45:16 CET 2006
Author: marci
Date: Thu Dec 2 18:36:07 2004
New Revision: 1417
Modified:
hugo/trunk/src/lemon/min_cost_flow.h
Log:
bug fix. previously, it did not work with graphs having non-reference node-maps
Modified: hugo/trunk/src/lemon/min_cost_flow.h
==============================================================================
--- hugo/trunk/src/lemon/min_cost_flow.h (original)
+++ hugo/trunk/src/lemon/min_cost_flow.h Thu Dec 2 18:36:07 2004
@@ -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;
More information about the Lemon-commits
mailing list