Made a minor change to Dijkstra
Revert "Made a minor change to Dijkstra"

This reverts commit bf245286fcb240e434e5714dc177c49eb6ec7dbc.