diff -r e63a1dda5c68 -r d9c06ac0b3a3 src/work/athos/mincostflows_test.cc --- a/src/work/athos/mincostflows_test.cc Tue May 04 16:17:17 2004 +0000 +++ b/src/work/athos/mincostflows_test.cc Tue May 04 16:52:15 2004 +0000 @@ -61,16 +61,21 @@ length.set(v4_t, 8); length.set(v5_t, 8); - ConstMap const1map(1); - std::cout << "Minlengthpaths algorithm test..." << std::endl; + ConstMap const1map(1); + std::cout << "Mincostflows algorithm test..." << std::endl; int k=3; - MinCostFlows< ListGraph, ListGraph::EdgeMap > + MinCostFlows< ListGraph, ListGraph::EdgeMap, ConstMap > surb_test(graph, length, const1map); check( surb_test.run(s,t,k) == 2 && surb_test.totalLength() == 46,"Two paths, total length should be 46"); + k=1; + check( surb_test.run(s,t,k) == 1 && surb_test.totalLength() == 19,"One path, total length should be 19"); + + //cout << surb_test.run(s,t,k) << surb_test.totalLength()< DPath; DPath P(graph); @@ -85,7 +90,7 @@ surb_test.getPath(P,0); check(P.length() == 4, "First path should contain 4 edges."); - + */ cout << (passed ? "All tests passed." : "Some of the tests failed!!!") << endl;