MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __lt__

Method __lt__

graphs/greedy_best_first.py:83–84  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

81 return dx + dy
82
83 def __lt__(self, other) -> bool:
84 return self.f_cost < other.f_cost
85
86 def __eq__(self, other) -> bool:
87 return self.pos == other.pos

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected