Dijkstra algorithm completed