Skip to content

Commit

Permalink
Reset all arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
Dtenwolde committed Dec 16, 2024
1 parent d755f73 commit 107aaf8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/operator/bfs_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ void BFSState::Clear() {
// empty visit vectors
for (auto i = 0; i < v_size; i++) {
visit1[i] = 0;
visit2[i] = 0;
seen[i] = 0; // reset
if (mode == "shortestpath") {
for (auto j = 0; j < LANE_LIMIT; j++) {
parents_ve[i][j] = {-1, -1};
Expand Down

0 comments on commit 107aaf8

Please sign in to comment.