An implementation of Dijkstra's algorithm using heaps in Python.