... | ... |
@@ -99,3 +99,3 @@ |
99 | 99 |
|
100 |
for(ArcIt e(G); e |
|
100 |
for(ArcIt e(G); e!=INVALID; ++e) { |
|
101 | 101 |
Node u=G.source(e); |
... | ... |
@@ -103,3 +103,3 @@ |
103 | 103 |
check( !bfs_test.reached(u) || |
104 |
(bfs_test.dist(v) |
|
104 |
(bfs_test.dist(v) <= bfs_test.dist(u)+1), |
|
105 | 105 |
"Wrong output."); |
... | ... |
@@ -107,3 +107,3 @@ |
107 | 107 |
|
108 |
for(NodeIt v(G); v |
|
108 |
for(NodeIt v(G); v!=INVALID; ++v) { |
|
109 | 109 |
check(bfs_test.reached(v),"Each node should be reached."); |
0 comments (0 inline)