Changeset 360:91fba31268d6 in lemon-0.x for src/work/marci/iterator_bfs_demo.cc
- Timestamp:
- 04/21/04 17:14:45 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@487
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/marci/iterator_bfs_demo.cc
r317 r360 104 104 105 105 cout << "bfs from s ..." << endl; 106 BfsIterator 5< Graph, Graph::NodeMap<bool> > bfs(G);106 BfsIterator< Graph, Graph::NodeMap<bool> > bfs(G); 107 107 bfs.pushAndSetReached(s); 108 108 while (!bfs.finished()) { … … 137 137 138 138 cout << "dfs from s ..." << endl; 139 DfsIterator 5< Graph, Graph::NodeMap<bool> > dfs(G);139 DfsIterator< Graph, Graph::NodeMap<bool> > dfs(G); 140 140 dfs.pushAndSetReached(s); 141 141 while (!dfs.finished()) { … … 180 180 181 181 cout << "bfs from t ..." << endl; 182 BfsIterator 5< GW, GW::NodeMap<bool> > bfs(gw);182 BfsIterator< GW, GW::NodeMap<bool> > bfs(gw); 183 183 bfs.pushAndSetReached(t); 184 184 while (!bfs.finished()) { … … 213 213 214 214 cout << "dfs from t ..." << endl; 215 DfsIterator 5< GW, GW::NodeMap<bool> > dfs(gw);215 DfsIterator< GW, GW::NodeMap<bool> > dfs(gw); 216 216 dfs.pushAndSetReached(t); 217 217 while (!dfs.finished()) { … … 259 259 260 260 cout << "bfs from t ..." << endl; 261 BfsIterator 5< GW, GW::NodeMap<bool> > bfs(gw);261 BfsIterator< GW, GW::NodeMap<bool> > bfs(gw); 262 262 bfs.pushAndSetReached(t); 263 263 while (!bfs.finished()) { … … 292 292 293 293 cout << "dfs from t ..." << endl; 294 DfsIterator 5< GW, GW::NodeMap<bool> > dfs(gw);294 DfsIterator< GW, GW::NodeMap<bool> > dfs(gw); 295 295 dfs.pushAndSetReached(t); 296 296 while (!dfs.finished()) {
Note: See TracChangeset
for help on using the changeset viewer.