浏览代码

that was not enough

tarfeef101 6 年之前
父节点
当前提交
442c46e93b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      a3/router.py

+ 1 - 1
a3/router.py

@@ -134,7 +134,7 @@ class graph:
     def show(this):
         print("RIB: ")
         for i in range(0, 5):
-            print("R" + str(rid) + " -> R"+ str(i) + " = " + str(this.sssp[i][0]) + " using node " + str(this.sssp[i][1]))
+            print("R" + str(rid) + " -> R"+ str(i + 1) + " = " + str(this.sssp[i][0]) + " using node " + str(this.sssp[i][1] + 1))
         
     def insert(this, connection):
         src = connection.src