BidirGraphWrapper<Graph>, the map values are different for the opposite edges.
4 #include <list_graph.h>
6 #include <minlengthpaths.h>
7 //#include <time_measure.h>
11 // Use a DIMACS max flow file as stdin.
12 // read_dimacs_demo < dimacs_max_flow_file
13 int main(int argc, char ** argv) {
14 typedef ListGraph Graph;
16 typedef Graph::Node Node;
17 //typedef Graph::EachEdgeIt EachEdgeIt;
21 Graph::EdgeMap<int> cap(G);
22 readDimacsMaxFlow(std::cin, G, s, t, cap);
24 std::cout << "preflow demo (ATHOS)..." << std::endl;
25 //Graph::EdgeMap<int> flow(G); //0 flow
27 // double pre_time=currTime();
32 MinLengthPaths<Graph, Graph::EdgeMap<int> >
34 std::cout << surb_test.run(s,t,k) << std::endl;
35 std::cout << surb_test.totalLength() << std::endl;
36 //preflow_push<Graph, int> max_flow_test(G, s, t, cap);
37 //int flow_value=max_flow_test.run();
39 //double post_time=currTime();
41 //std::cout << "elapsed time: " << post_time-pre_time << " sec"<< std::endl;
42 //std::cout << "flow value: "<< flow_value << std::endl;