Changeset 780:e06d0d16595f in lemon-0.x for src/test/bfs_test.cc
- Timestamp:
- 09/01/04 17:08:41 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1073
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/test/bfs_test.cc
r774 r780 77 77 } 78 78 79 ///\bug This works only for integer lengths80 for(NodeIt v(G); v==INVALID; ++v)81 if ( bfs_test. reached(v)) {79 for(NodeIt v(G); v==INVALID; ++v) { 80 check(bfs_test.reached(v),"Each node should be reached."); 81 if ( bfs_test.pred(v)!=INVALID ) { 82 82 Edge e=bfs_test.pred(v); 83 83 Node u=G.tail(e); 84 check(u==bfs_test.predNode(v),"Wrong tree."); 84 85 check(bfs_test.dist(v) - bfs_test.dist(u) == 1, 85 " Bad shortest path tree edge!Difference: "86 "Wrong distance. Difference: " 86 87 << std::abs(bfs_test.dist(v) - bfs_test.dist(u) 87 88 - 1)); 88 89 } 90 } 89 91 } 92
Note: See TracChangeset
for help on using the changeset viewer.