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

Method __init__

graphs/bidirectional_a_star.py:184–187  ·  view source on GitHub ↗
(self, start: TPosition, goal: TPosition)

Source from the content-addressed store, hash-verified

182 """
183
184 def __init__(self, start: TPosition, goal: TPosition) -> None:
185 self.fwd_astar = AStar(start, goal)
186 self.bwd_astar = AStar(goal, start)
187 self.reached = False
188
189 def search(self) -> list[TPosition]:
190 while self.fwd_astar.open_nodes or self.bwd_astar.open_nodes:

Callers

nothing calls this directly

Calls 1

AStarClass · 0.85

Tested by

no test coverage detected