diff -r 2784b804abb3 -r 72143568cadc src/work/marci/bipartite_matching_try_2.cc --- a/src/work/marci/bipartite_matching_try_2.cc Mon May 03 09:44:00 2004 +0000 +++ b/src/work/marci/bipartite_matching_try_2.cc Mon May 03 10:04:27 2004 +0000 @@ -72,34 +72,34 @@ g.addEdge(s_nodes[random(a)], t_nodes[random(b)]); } - std::cout << "Edges of the bipartite graph:" << std::endl; - FOR_EACH_LOC(EdgeIt, e, g) std::cout << e << " "; - std::cout << std::endl; +// std::cout << "Edges of the bipartite graph:" << std::endl; +// FOR_EACH_LOC(EdgeIt, e, g) std::cout << e << " "; +// std::cout << std::endl; - std::cout << "Nodes:" << std::endl; - FOR_EACH_LOC(Graph::NodeIt, v, g) std::cout << v << " "; - std::cout << std::endl; - std::cout << "Nodes in T:" << std::endl; - FOR_EACH_INC_LOC(Graph::ClassNodeIt, v, g, Graph::T_CLASS) std::cout << v << " "; - std::cout << std::endl; - std::cout << "Nodes in S:" << std::endl; - FOR_EACH_INC_LOC(Graph::ClassNodeIt, v, g, Graph::S_CLASS) std::cout << v << " "; - std::cout << std::endl; +// std::cout << "Nodes:" << std::endl; +// FOR_EACH_LOC(Graph::NodeIt, v, g) std::cout << v << " "; +// std::cout << std::endl; +// std::cout << "Nodes in T:" << std::endl; +// FOR_EACH_INC_LOC(Graph::ClassNodeIt, v, g, Graph::T_CLASS) std::cout << v << " "; +// std::cout << std::endl; +// std::cout << "Nodes in S:" << std::endl; +// FOR_EACH_INC_LOC(Graph::ClassNodeIt, v, g, Graph::S_CLASS) std::cout << v << " "; +// std::cout << std::endl; - std::cout << "Erasing the first node..." << std::endl; - NodeIt n; - g.first(n); - g.erase(n); - std::cout << "Nodes of the bipartite graph:" << std::endl; - FOR_EACH_GLOB(n, g) std::cout << n << " "; - std::cout << std::endl; +// std::cout << "Erasing the first node..." << std::endl; +// NodeIt n; +// g.first(n); +// g.erase(n); +// std::cout << "Nodes of the bipartite graph:" << std::endl; +// FOR_EACH_GLOB(n, g) std::cout << n << " "; +// std::cout << std::endl; - std::cout << "Nodes in T:" << std::endl; - FOR_EACH_INC_LOC(Graph::ClassNodeIt, v, g, Graph::T_CLASS) std::cout << v << " "; - std::cout << std::endl; - std::cout << "Nodes in S:" << std::endl; - FOR_EACH_INC_LOC(Graph::ClassNodeIt, v, g, Graph::S_CLASS) std::cout << v << " "; - std::cout << std::endl; +// std::cout << "Nodes in T:" << std::endl; +// FOR_EACH_INC_LOC(Graph::ClassNodeIt, v, g, Graph::T_CLASS) std::cout << v << " "; +// std::cout << std::endl; +// std::cout << "Nodes in S:" << std::endl; +// FOR_EACH_INC_LOC(Graph::ClassNodeIt, v, g, Graph::S_CLASS) std::cout << v << " "; +// std::cout << std::endl; typedef stGraphWrapper stGW; stGW stgw(g); @@ -119,10 +119,10 @@ // } std::cout << "max flow value: " << max_flow_test.flowValue() << std::endl; std::cout << "elapsed time: " << ts << std::endl; - FOR_EACH_LOC(stGW::EdgeIt, e, stgw) { - if (flow[e]) std::cout << e << std::endl; - } - std::cout << std::endl; +// FOR_EACH_LOC(stGW::EdgeIt, e, stgw) { +// if (flow[e]) std::cout << e << std::endl; +// } +// std::cout << std::endl; return 0; }