114 Timer ts; |
114 Timer ts; |
115 FOR_EACH_LOC(stGW::EdgeIt, e, stgw) flow.set(e, 0); |
115 FOR_EACH_LOC(stGW::EdgeIt, e, stgw) flow.set(e, 0); |
116 ts.reset(); |
116 ts.reset(); |
117 // stGW::EdgeMap<int> pre_flow(stgw); |
117 // stGW::EdgeMap<int> pre_flow(stgw); |
118 Preflow<stGW, int, ConstMap<stGW::Edge, int>, stGW::EdgeMap<int> > |
118 Preflow<stGW, int, ConstMap<stGW::Edge, int>, stGW::EdgeMap<int> > |
119 pre_flow_test(stgw, stgw.S_NODE, stgw.T_NODE, const1map, flow, true); |
119 pre_flow_test(stgw, stgw.S_NODE, stgw.T_NODE, const1map, flow/*, true*/); |
120 pre_flow_test.run(); |
120 pre_flow_test.run(); |
121 std::cout << "HUGO pre flow value: " << pre_flow_test.flowValue() << std::endl; |
121 std::cout << "HUGO pre flow value: " << pre_flow_test.flowValue() << std::endl; |
122 std::cout << "elapsed time: " << ts << std::endl; |
122 std::cout << "elapsed time: " << ts << std::endl; |
123 // FOR_EACH_LOC(stGW::EdgeIt, e, stgw) { |
123 // FOR_EACH_LOC(stGW::EdgeIt, e, stgw) { |
124 // std::cout << e << ": " << pre_flow[e] << "\n"; |
124 // std::cout << e << ": " << pre_flow[e] << "\n"; |