Skip to content

Commit

Permalink
Remove TODOs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ClemensBuechner committed Aug 30, 2023
1 parent 91acfcd commit 1d2dc4e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/search/landmarks/landmark_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,9 @@ void LandmarkFactory::edge_add(LandmarkNode &from, LandmarkNode &to,
EdgeType type) {
/* Adds an edge in the landmarks graph. If an edge between the same
landmarks is already present, the stronger edge type wins. */
// TODO: Do we have a strong argument why self-loops should be prevented?
assert(&from != &to);

// If edge already exists, remove if weaker
/* TODO: Isn't it more efficient to just replace the type if the present
ordering type is weaker? */
if (from.children.find(&to) != from.children.end() && from.children.find(
&to)->second < type) {
from.children.erase(&to);
Expand Down

0 comments on commit 1d2dc4e

Please sign in to comment.