paraphraser online
ef calc_time(speed, distance):
return distance / speed
def extra_search(node, start, destination, trav_paths, travelled):
paths = trav_paths[node] #Get possible starts from new starting city
route = travelled.copy() #Get a copy of the previous travelled path from the source
travel = []
for i in range(len(paths)):
if paths[i][1] == start:
continue
elif paths[i][1] == destination:
route.append(paths[i][1])
else:
if paths[i][1] not in route:
route.append(paths[i][1])
route = extra_search(paths[i][1], start, destination, trav_paths, route)
else:
continue
Blue Beetle