dijkstra with routes