COIN-OR::LEMON - Graph Library

Changeset 1027:4ec35d1cd897 in lemon-0.x


Ignore:
Timestamp:
12/02/04 18:36:07 (15 years ago)
Author:
marci
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1417
Message:

bug fix. previously, it did not work with graphs having non-reference node-maps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/min_cost_flow.h

    r987 r1027  
    148148        //We have to change the potential
    149149        for(typename ResGW::NodeIt n(res_graph); n!=INVALID; ++n)
    150           potential[n] += dijkstra.distMap()[n];
     150          potential.set(n, potential[n]+dijkstra.distMap()[n]);
    151151       
    152152        //Augmenting on the sortest path
Note: See TracChangeset for help on using the changeset viewer.