Changeset 737:2d867176d10e in lemon-0.x for src/work/johanna/kruskal_test.cc
- Timestamp:
- 07/23/04 19:13:23 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@994
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/johanna/kruskal_test.cc
r352 r737 5 5 6 6 #include <kruskal.h> 7 #include < list_graph.h>7 #include <hugo/list_graph.h> 8 8 9 9 … … 72 72 73 73 cout << "Uniform 2-es koltseggel: " 74 << Kruskal_EdgeCostMapIn_BoolMapOut(G, edge_cost_map, tree_map)74 << kruskalEdgeMap(G, edge_cost_map, tree_map) 75 75 << endl; 76 76 … … 90 90 91 91 cout << "Nemkonst koltseggel (-31): " 92 << Kruskal_EdgeCostMapIn_IteratorOut(G, edge_cost_map,93 92 << kruskalEdgeMap_IteratorOut(G, edge_cost_map, 93 back_inserter(tree_edge_vec)) 94 94 << endl; 95 95 … … 97 97 for(vector<Edge>::iterator e = tree_edge_vec.begin(); 98 98 e != tree_edge_vec.end(); ++e, ++i) { 99 cout << i << ". el: " << *e<< endl;99 cout << i << ". el: " << G.id(*e) << endl; 100 100 } 101 101 … … 108 108 // vec_filler) 109 109 // << endl; 110 cout << "Nemkonst koltseggel tarhatekonyabban: "111 << Kruskal(G,112 KruskalMapVec<ECostMap>(G, edge_cost_map),113 makeSequenceOutput(back_inserter(tree_edge_vec))114 )115 << endl;116 110 117 i = 1; 118 for(vector<Edge>::iterator e = tree_edge_vec.begin(); 119 e != tree_edge_vec.end(); ++e, ++i) { 120 cout << i << ". el: " << *e << endl; 121 } 111 // cout << "Nemkonst koltseggel tarhatekonyabban: " 112 // << kruskal(G, 113 // KruskalMapVec<ECostMap>(G, edge_cost_map), 114 // makeSequenceOutput(back_inserter(tree_edge_vec)) 115 // ) 116 // << endl; 122 117 118 // i = 1; 119 // for(vector<Edge>::iterator e = tree_edge_vec.begin(); 120 // e != tree_edge_vec.end(); ++e, ++i) { 121 // cout << i << ". el: " << *e << endl; 122 // } 123 124 // ********************************************************************** 123 125 124 126 // typedef MinCostTreeKruskal<ListGraph, ECostMap, EBoolMap> MCTK;
Note: See TracChangeset
for help on using the changeset viewer.