瀏覽代碼

that was not enough

tarfeef101 6 年之前
父節點
當前提交
c54fff6376
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      a3/router.py

+ 1 - 1
a3/router.py

@@ -164,7 +164,7 @@ class graph:
                 # visited already
                 if (unvisited[i] == 0):
                     continue
-                result = min((this.sssp[curnode] + this.alist[curnode][i]), this.sssp[i])
+                result = min((this.sssp[curnode][0] + this.alist[curnode][i]), this.sssp[i][0])
                 if (result != this.sssp[i][0]):
                     this.sssp[i] = (result, curnode)
                 else: