結果 : successive shortest path algorithm python