DONE COMMIT. dijkstra. incorrect function name has been changed