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

Method __init__

graphs/bidirectional_breadth_first_search.py:25–33  ·  view source on GitHub ↗
(
        self, pos_x: int, pos_y: int, goal_x: int, goal_y: int, parent: Node | None
    )

Source from the content-addressed store, hash-verified

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

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected