shortest path module of graph modified.

new function single_source_shortest_path_dist added.