Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fix-wall-ordering' into fix-wall…
Browse files Browse the repository at this point in the history
…-ordering
  • Loading branch information
casperlamboo committed Jan 5, 2024
2 parents fc0602d + 178b72b commit e7f0ac0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/PathOrderOptimizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ class PathOrderOptimizer
{
roots.erase(v);
leaves.erase(u);
num_incoming_edges.find(v)->second ++;
num_incoming_edges.find(v)->second++;
}

// We used a shared visited set between runs of dfs. This is for the case when we reverse the ordering tree.
Expand All @@ -395,7 +395,7 @@ class PathOrderOptimizer
// from an arbitrary leaf we might encounter a junction. All paths from the other leaf-side(s) of the junction
// should be printed before continuing the junctions. Only once every branch of the junction has been ordered
// we can continue with the junction itself.
num_incoming_edges.find(neighbour)->second --;
num_incoming_edges.find(neighbour)->second--;
if (num_incoming_edges.at(neighbour) == 0)
{
candidates.insert(neighbour);
Expand Down

0 comments on commit e7f0ac0

Please sign in to comment.