Problem: I have a weighted graph. I want to get distance from definite point to all other points in the graph. I used modified dijkstra algorithm