Dijkstra's Algorithm in Directed Networks