add a solution of single shortest path solution in the condition of directed acyclic graphs