COIN-OR::LEMON - Graph Library

Changeset 465:d72e56f1730d in lemon-0.x for src/work/marci


Ignore:
Timestamp:
04/29/04 11:08:14 (17 years ago)
Author:
marci
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@616
Message:

mods implied by preflow mods

Location:
src/work/marci
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/work/marci/bipartite_matching_try.cc

    r410 r465  
    182182  stGW::EdgeMap<int> pre_flow(stgw);
    183183  Preflow<stGW, int, ConstMap<stGW::Edge, int>, stGW::EdgeMap<int> >
    184     pre_flow_test(stgw, stgw.S_NODE, stgw.T_NODE, const1map, pre_flow, true);
     184    pre_flow_test(stgw, stgw.S_NODE, stgw.T_NODE, const1map, pre_flow/*, true*/);
    185185  pre_flow_test.run();
    186186  std::cout << "pre flow value: " << max_flow_test.flowValue() << std::endl;
  • src/work/marci/edmonds_karp_demo.cc

    r418 r465  
    7272  Graph::EdgeMap<int> flow(G); //0 flow
    7373  Preflow<Graph, int, Graph::EdgeMap<int>, Graph::EdgeMap<int> >
    74     pre_flow_test(G, s, t, cap, flow, true);
     74    pre_flow_test(G, s, t, cap, flow/*, true*/);
    7575  Preflow<Graph, int, Graph::EdgeMap<int>, Graph::EdgeMap<int> >
    76     pre_flow_ize(G, s, t, cap, flow, false);
    77   PreflowRes<Graph, int, Graph::EdgeMap<int>, Graph::EdgeMap<int> >
    78     pre_flow_res(G, s, t, cap, flow, true);
     76    pre_flow_ize(G, s, t, cap, flow/*, false*/);
     77//   PreflowRes<Graph, int, Graph::EdgeMap<int>, Graph::EdgeMap<int> >
     78//     pre_flow_res(G, s, t, cap, flow/*, true*/);
    7979  MaxFlow<Graph, int, Graph::EdgeMap<int>, Graph::EdgeMap<int> >
    8080    max_flow_test(G, s, t, cap, flow);
     
    9292    FOR_EACH_LOC(Graph::EdgeIt, e, G) flow.set(e, 0);
    9393    ts.reset();
    94     pre_flow_ize.run();
     94    pre_flow_ize.preflow(Preflow<Graph, int, Graph::EdgeMap<int>, Graph::EdgeMap<int> >::GEN_FLOW);
    9595    std::cout << "elapsed time: " << ts << std::endl;
    9696    std::cout << "flow value: "<< pre_flow_ize.flowValue() << std::endl;
    9797  }
    9898
    99   {
    100     std::cout << "wrapped preflow ..." << std::endl;
    101     FOR_EACH_LOC(Graph::EdgeIt, e, G) flow.set(e, 0);
    102     ts.reset();
    103     pre_flow_res.run();
    104     std::cout << "elapsed time: " << ts << std::endl;
    105     std::cout << "flow value: "<< pre_flow_test.flowValue() << std::endl;
    106   }
     99//   {
     100//     std::cout << "wrapped preflow ..." << std::endl;
     101//     FOR_EACH_LOC(Graph::EdgeIt, e, G) flow.set(e, 0);
     102//     ts.reset();
     103//     pre_flow_res.run();
     104//     std::cout << "elapsed time: " << ts << std::endl;
     105//     std::cout << "flow value: "<< pre_flow_test.flowValue() << std::endl;
     106//   }
    107107
    108108  {
  • src/work/marci/lg_vs_sg.cc

    r379 r465  
    3636    Graph::EdgeMap<int> flow(G); //0 flow
    3737    Preflow<Graph, int, Graph::EdgeMap<int>, Graph::EdgeMap<int> >
    38       pre_flow_test(G, s, t, cap, flow, true);
     38      pre_flow_test(G, s, t, cap, flow/*, true*/);
    3939    MaxFlow<Graph, int, Graph::EdgeMap<int>, Graph::EdgeMap<int> >
    4040      max_flow_test(G, s, t, cap, flow);
     
    110110    Graph::EdgeMap<int> flow(G); //0 flow
    111111    Preflow<Graph, int, Graph::EdgeMap<int>, Graph::EdgeMap<int> >
    112       pre_flow_test(G, s, t, cap, flow, true);
     112      pre_flow_test(G, s, t, cap, flow/*, true*/);
    113113    MaxFlow<Graph, int, Graph::EdgeMap<int>, Graph::EdgeMap<int> >
    114114      max_flow_test(G, s, t, cap, flow);
Note: See TracChangeset for help on using the changeset viewer.