Changeset 774:4297098d9677 in lemon-0.x for src/benchmark
- Timestamp:
- 08/30/04 14:01:47 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1066
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/benchmark/bfs-bench.cc
r751 r774 49 49 Node m; 50 50 Q.pop(); 51 for(OutEdgeIt e(G,n); G.valid(e);G.next(e))51 for(OutEdgeIt e(G,n);e!=INVALID;++e) 52 52 if(!visited[m=G.head(e)]) { 53 53 Q.push(m); … … 77 77 Node m; 78 78 Node n=Q[Qt++]; 79 for(OutEdgeIt e(G,n); G.valid(e);G.next(e))79 for(OutEdgeIt e(G,n);e!=INVALID;++e) 80 80 if(!visited[m=G.head(e)]) { 81 81 Q[Qh++]=m; … … 92 92 int i=0; 93 93 94 for(NodeIt n(G); G.valid(n);G.next(n))95 for(OutEdgeIt e(G,n); G.valid(e);G.next(e))94 for(NodeIt n(G);n!=INVALID;++n) 95 for(OutEdgeIt e(G,n);e!=INVALID;++e) 96 96 i++; 97 97 }
Note: See TracChangeset
for help on using the changeset viewer.