Update analyzer.py

This commit is contained in:
Richard Bronkhorst 2023-06-13 22:34:28 +02:00
parent f0c7568d38
commit 939215ef5e

View File

@ -36,6 +36,7 @@ class Analyzer:
if best_hop is None:
print('nobest')
return None
print(best_hop, best_distance)
tail = self.find_path(best_hop, to)
if tail is None: return None
return [best_hop] + tail