src/benchmark/bfs-bench.cc
changeset 986 e997802b855c
parent 921 818510fa3d99
     1.1 --- a/src/benchmark/bfs-bench.cc	Sat Nov 13 12:24:01 2004 +0000
     1.2 +++ b/src/benchmark/bfs-bench.cc	Sat Nov 13 12:53:28 2004 +0000
     1.3 @@ -46,7 +46,7 @@
     1.4      Node m;
     1.5      Q.pop();
     1.6      for(OutEdgeIt e(G,n);e!=INVALID;++e)
     1.7 -      if(!visited[m=G.head(e)]) {
     1.8 +      if(!visited[m=G.target(e)]) {
     1.9  	Q.push(m);
    1.10  	visited.set(m,true);
    1.11        }
    1.12 @@ -74,7 +74,7 @@
    1.13      Node m;
    1.14      Node n=Q[Qt++];
    1.15      for(OutEdgeIt e(G,n);e!=INVALID;++e)
    1.16 -      if(!visited[m=G.head(e)]) {
    1.17 +      if(!visited[m=G.target(e)]) {
    1.18  	Q[Qh++]=m;
    1.19  	visited.set(m,true);
    1.20        }