Dijkstra algorithm real time simulation.