You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "dijkstra.py", line 141, in <module>
dist, pred = dijkstra(graph, start='a')
File "dijkstra.py", line 42, in dijkstra
(v, d) = Q.popitem() # node w/ min dist d on frontier
File "/home/magnus/git/dijkstra/pqdict.py", line 451, in popitem
raise KeyError('PQDict is empty')
KeyError: 'PQDict is empty
The text was updated successfully, but these errors were encountered:
$ python dijkstra.py
and you will get:
The text was updated successfully, but these errors were encountered: