equal
deleted
inserted
replaced
49 std::cout << ts << std::endl; |
49 std::cout << ts << std::endl; |
50 } |
50 } |
51 |
51 |
52 { |
52 { |
53 ts.reset(); |
53 ts.reset(); |
54 BfsIterator5< Graph, Graph::NodeMap<bool> > bfs(G); |
54 BfsIterator< Graph, Graph::NodeMap<bool> > bfs(G); |
55 bfs.pushAndSetReached(s); |
55 bfs.pushAndSetReached(s); |
56 pred.set(s, INVALID); |
56 pred.set(s, INVALID); |
57 while (!bfs.finished()) { |
57 while (!bfs.finished()) { |
58 ++bfs; |
58 ++bfs; |
59 if (G.valid(bfs) && bfs.isBNodeNewlyReached()) |
59 if (G.valid(bfs) && bfs.isBNodeNewlyReached()) |