8.2.15.1.53. _see_node

Solution._see_node(node_id, fringe, dist, w_wait_in=0)[source]

See a node, updating seen and fringe.

Parameters:
  • node_id (str) – Node id to see.

  • fringe (list[(float | int, bool, (str, Dispatcher)]) – Heapq of closest available nodes.

  • dist (float, int) – Distance from the starting node.

  • w_wait_in (int, float) – Additional weight for sorting correctly the nodes in the fringe.

Returns:

True if the node is visible, otherwise False.

Return type:

bool