COIN-OR::LEMON - Graph Library

Ignore:
Timestamp:
09/14/04 12:09:24 (17 years ago)
Author:
marci
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1148
Message:
 
File:
1 edited

Legend:

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

    r777 r849  
    1313#include <hugo/time_measure.h>
    1414//#include <graph_wrapper.h>
    15 #include <hugo/max_flow.h>
     15#include <hugo/preflow.h>
    1616#include <augmenting_flow.h>
    1717//#include <preflow_res.h>
     
    3939  Timer ts;
    4040  Graph::EdgeMap<int> flow(g); //0 flow
    41   MaxFlow<Graph, int, Graph::EdgeMap<int>, Graph::EdgeMap<int> >
     41  Preflow<Graph, int, Graph::EdgeMap<int>, Graph::EdgeMap<int> >
    4242    max_flow_test(g, s, t, cap, flow);
    4343  AugmentingFlow<Graph, int, Graph::EdgeMap<int>, Graph::EdgeMap<int> >
     
    5252    std::cout << "elapsed time: " << ts << std::endl;
    5353    std::cout << "flow value: "<< max_flow_test.flowValue() << std::endl;
    54     max_flow_test.actMinCut(cut);
     54    max_flow_test.minCut(cut);
    5555
    5656    FOR_EACH_LOC(Graph::EdgeIt, e, g) {
     
    6666    FOR_EACH_LOC(Graph::EdgeIt, e, g) flow.set(e, 0);
    6767    ts.reset();
    68     max_flow_test.preflow(MaxFlow<Graph, int, Graph::EdgeMap<int>, Graph::EdgeMap<int> >::GEN_FLOW);
     68    max_flow_test.preflow(Preflow<Graph, int, Graph::EdgeMap<int>, Graph::EdgeMap<int> >::GEN_FLOW);
    6969    std::cout << "elapsed time: " << ts << std::endl;
    7070    std::cout << "flow value: "<< max_flow_test.flowValue() << std::endl;
Note: See TracChangeset for help on using the changeset viewer.