directedShortestPathWithFixedEnds