diff --git a/include/boost/graph/breadth_first_search.hpp b/include/boost/graph/breadth_first_search.hpp index 8bc04c62..e0ee3e66 100644 --- a/include/boost/graph/breadth_first_search.hpp +++ b/include/boost/graph/breadth_first_search.hpp @@ -112,7 +112,7 @@ namespace boost { Vertex v = target(e, g); if (get(color, v) == white(c)) { put(color, v, gray(c)); - vis.discover_vertex(u, g); + vis.discover_vertex(v, g); vis.tree_edge(e, g); Q.push(v); } else {