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

Class Node

graphs/bidirectional_breadth_first_search.py:24–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23
24class Node:
25 def __init__(
26 self, pos_x: int, pos_y: int, goal_x: int, goal_y: int, parent: Node | None
27 ):
28 self.pos_x = pos_x
29 self.pos_y = pos_y
30 self.pos = (pos_y, pos_x)
31 self.goal_x = goal_x
32 self.goal_y = goal_y
33 self.parent = parent
34
35
36class BreadthFirstSearch:

Callers 2

__init__Method · 0.70
get_successorsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected