COIN-OR::LEMON - Graph Library

Ignore:
Timestamp:
09/15/04 12:34:12 (17 years ago)
Author:
marci
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1153
Message:

correction of SubGraphWrapper? bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/marci/augmenting_flow.h

    r777 r854  
    12621262          typename MG::Edge f=F.addEdge(res_graph_to_F[res_graph.tail(e)],
    12631263                                        res_graph_to_F[res_graph.head(e)]);
    1264           original_edge.update();
     1264          //original_edge.update();
    12651265          original_edge.set(f, e);
    1266           residual_capacity.update();
     1266          //residual_capacity.update();
    12671267          residual_capacity.set(f, res_graph.resCap(e));
    12681268        } else {
     
    12701270            typename MG::Edge f=F.addEdge(res_graph_to_F[res_graph.tail(e)],
    12711271                                          res_graph_to_F[res_graph.head(e)]);
    1272             original_edge.update();
     1272            //original_edge.update();
    12731273            original_edge.set(f, e);
    1274             residual_capacity.update();
     1274            //residual_capacity.update();
    12751275            residual_capacity.set(f, res_graph.resCap(e));
    12761276          }
     
    12951295      while (!dfs.finished()) {
    12961296        ++dfs;
    1297         if (F.valid(/*typename MG::OutEdgeIt*/(dfs))) {
     1297        if (typename MG::Edge(dfs)!=INVALID) {
    12981298          if (dfs.isBNodeNewlyReached()) {
    12991299            typename MG::Node v=F.tail(dfs);
     
    13121312
    13131313          } else {
    1314             F.erase(/*typename MG::OutEdgeIt*/(dfs));
     1314            F.erase(typename MG::Edge(dfs));
    13151315          }
    13161316        }
Note: See TracChangeset for help on using the changeset viewer.