“…If , then the shortest simple path is a solution of the instance of the problem P ath N o (). If , then the next‐to‐shortest simple path is a solution of this instance.Corollary The following special cases of the problem P ath N o ( ) are polynomially solvable : - if graph is directed and planar and arc lengths are strictly positive, then P ath N o ( ) can be solved in time (Wu & Wang, ) ;
- if graph is undirected and arc lengths are strictly positive, then P ath N o ( ) can be solved in time (Kao et al, ) ;
- if graph is undirected and arc lengths are non‐negative, then P ath N o ( ) can be solved in time (Zhang & Nagamochi, ).
Let us now show that for graphs with directed cycles and non‐negative arc lengths the problem P ath N o () is difficult. Observation If graph contains directed cycles and the arc lengths are all equal to 0 but one arc length is equal to 1, then any of the problems E xact P ath (), P ath N o (), P ath ‐1‐G ap , P ath ‐2‐G aps , P ath G aps , S hort P ath G aps and L ong P ath G aps is NP‐complete in the strong sense.Proof Fortune, Hopcroft, and Wyllie () proved that the problem T wo D isjoint P aths is NP‐complete in the strong sense.…”