結果 : shortest path in weighted graph