Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ __lt__
Method
__lt__
graphs/bidirectional_a_star.py:74–75 ·
view source on GitHub ↗
(self, other: Node)
Source
from the content-addressed store, hash-verified
72
return
sqrt(dy**2 + dx**2)
73
74
def
__lt__(self, other: Node) -> bool:
75
return
self.f_cost < other.f_cost
76
77
78
class
AStar:
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected