Changeset 2205:c20b0eb92a33 in lemon-0.x for lemon/kruskal.h
- Timestamp:
- 09/06/06 13:17:12 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2930
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/kruskal.h
r2111 r2205 25 25 #include <lemon/bits/utility.h> 26 26 #include <lemon/bits/traits.h> 27 #include <lemon/time_measure.h> 28 #include <iostream> 27 29 28 30 ///\ingroup spantree … … 118 120 typedef typename GR::Node Node; 119 121 120 NodeIntMap comp(g, -1); 121 UnionFind<Node,NodeIntMap> uf(comp); 122 Timer timer; 123 NodeIntMap comp(g); 124 UnionFind<Node,NodeIntMap> uf(comp); 125 for (typename GR::NodeIt it(g); it != INVALID; ++it) { 126 uf.insert(it); 127 } 122 128 123 129 EdgeCost tot_cost = 0; … … 133 139 } 134 140 } 141 std::cout << timer << std::endl; 135 142 return tot_cost; 136 143 }
Note: See TracChangeset
for help on using the changeset viewer.