# HG changeset patch # User marci # Date 1083161874 0 # Node ID 68e6873f421aace632fcba4c3208be129ebbf4b7 # Parent 2df1fee6c866a58f7d7f6c2a12c3d98200a9cfd7 dijstra const ref, misc diff -r 2df1fee6c866 -r 68e6873f421a src/include/dijkstra.h --- a/src/include/dijkstra.h Wed Apr 28 12:58:58 2004 +0000 +++ b/src/include/dijkstra.h Wed Apr 28 14:17:54 2004 +0000 @@ -68,7 +68,7 @@ public : - Dijkstra(Graph& _G, LengthMap& _length) : + Dijkstra(const Graph& _G, const LengthMap& _length) : G(_G), length(_length), predecessor(_G), pred_node(_G), distance(_G) { } void run(Node s); diff -r 2df1fee6c866 -r 68e6873f421a src/work/marci/leda/bipartite_matching_leda.cc --- a/src/work/marci/leda/bipartite_matching_leda.cc Wed Apr 28 12:58:58 2004 +0000 +++ b/src/work/marci/leda/bipartite_matching_leda.cc Wed Apr 28 14:17:54 2004 +0000 @@ -121,7 +121,7 @@ ts.reset(); stGW::EdgeMap pre_flow(stgw); Preflow, stGW::EdgeMap > - pre_flow_test(stgw, stgw.S_NODE, stgw.T_NODE, const1map, pre_flow, true); + pre_flow_test(stgw, stgw.S_NODE, stgw.T_NODE, const1map, pre_flow/*, true*/); pre_flow_test.run(); std::cout << "pre flow value: " << max_flow_test.flowValue() << std::endl; std::cout << "elapsed time: " << ts << std::endl; diff -r 2df1fee6c866 -r 68e6873f421a src/work/marci/leda/bipartite_matching_leda_gen.cc --- a/src/work/marci/leda/bipartite_matching_leda_gen.cc Wed Apr 28 12:58:58 2004 +0000 +++ b/src/work/marci/leda/bipartite_matching_leda_gen.cc Wed Apr 28 14:17:54 2004 +0000 @@ -116,7 +116,7 @@ ts.reset(); // stGW::EdgeMap pre_flow(stgw); Preflow, stGW::EdgeMap > - pre_flow_test(stgw, stgw.S_NODE, stgw.T_NODE, const1map, flow, true); + pre_flow_test(stgw, stgw.S_NODE, stgw.T_NODE, const1map, flow/*, true*/); pre_flow_test.run(); std::cout << "HUGO pre flow value: " << pre_flow_test.flowValue() << std::endl; std::cout << "elapsed time: " << ts << std::endl;