, this is equivalent to finding the path with fewest edges. , {\displaystyle 1\leq i