Explorar el Código

i hate everything. giving up is life

tarfeef101 hace 6 años
padre
commit
17839eb55f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      a3/router.py

+ 1 - 1
a3/router.py

@@ -143,7 +143,7 @@ class graph:
     def rebuild(this):
         # set the adjacent node for each node
         for i in range(0, 5):
-            this.sssp[i] = (this.sssp[i][0], i)
+            this.sssp[i] = (inf, i)
         this.sssp[rid - 1] = (0, rid - 1)
         
         curnode = rid - 1