結果 : shortest path program in python