回答編集履歴

1

実行結果も追加

2022/11/30 11:30

投稿

退会済みユーザー
test CHANGED
@@ -107,6 +107,30 @@
107
107
  else:
108
108
  print('not same')
109
109
  ```
110
+ ## 実行結果
111
+ ```
112
+ path1(0-1) to path2(1): 10.071189382978861
113
+ path1(0-1) to path2(2): 22.005681084665387
114
+ path2(1-2) to path1(1): 9.391952027485976
115
+ path2(1-2) to path1(2): 103.92906234542868
116
+ path1(1-2) to path2(2): 6.855201648737006
117
+ path1(1-2) to path2(3): 13.600062035934494
118
+ path1(1-2) to path2(4): 20.22992832414391
119
+ path2(3-4) to path1(2): 8.990618659910627
120
+ path2(3-4) to path1(3): 119.21094748386156
121
+ path1(2-3) to path2(4): 12.394747436271063
122
+ path1(2-3) to path2(5): 9.154387740744644
123
+ path1(2-3) to path2(6): 124.67658160215976
124
+ path2(5-6) to path1(3): 9.394147114027968
125
+ path2(5-6) to path1(4): 17.414074767267998
126
+ path1(3-4) to path2(6): 14.900792007655637
127
+ path1(3-4) to path2(7): 59.20304046246274
128
+ path2(6-7) to path1(4): 5.444186169462745
129
+ path2(6-7) to path1(5): 60.18513105410671
130
+ path1(4-5) to path2(7): 9.41091006968288
131
+ path1(4-5) to path2(8): 8.878657156773821
132
+ same!!!
133
+ ```
110
134
  ## 使用データ
111
135
  質問の絵を元になんとなく作りました。他で使えるように貼っておきます。
112
136
  ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-11-30/7281a45e-00e7-45fc-ab73-e909439bd3d6.png)