Paste Search Dynamic
Recent pastes
lowest cost node
  1. def ind_lowest_cost_node(costs):
  2.         lowest_cost = loat("inf")
  3.         lowest_cost_node = none
  4.         for node in costs:
  5.                 cost = costs[node]
  6.                 if cost < lowest_cost and node not in processed:
  7.                         lowest_cost = cost
  8.                         lowest_cost_node = node
  9.                 return lowest_cost_node
Parsed in 0.002 seconds