Skip to content

Commit

Permalink
fixed advancement of the edge iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
danielyxyang committed Oct 9, 2024
1 parent 6f2e223 commit 0b63c68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/boost/graph/undirected_dfs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ namespace detail
{
vis.tree_edge(*ei, g);
stack.push_back(std::make_pair(u,
std::make_pair(src_e, std::make_pair(ei+1, ei_end))));
std::make_pair(src_e, std::make_pair(std::next(ei), ei_end))));
u = v;
src_e = *ei;
put(vertex_color, u, Color::gray());
Expand Down

0 comments on commit 0b63c68

Please sign in to comment.