Dijkstra in Python for COMP251 @mcgill