Skip to content

Commit

Permalink
Merge pull request #72 from stdgraph/dfs_fix
Browse files Browse the repository at this point in the history
Dfs fix
  • Loading branch information
kdeweese committed Oct 11, 2023
2 parents fedd598 + b457a20 commit f0661c2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion include/graph/views/depth_first_search.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ class dfs_base : public ranges::view_base {
// we've reached the end of a branch in the DFS tree; start unwinding the stack to find other unvisited branches
else {
colors_[v_id] = black; // finished with v
S_.pop();
while (!S_.empty()) {
auto [x_id, xyi] = S_.top();
S_.pop();
Expand Down

0 comments on commit f0661c2

Please sign in to comment.