Explorar el Código

that was not enough

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

+ 2 - 2
a3/router.py

@@ -153,10 +153,8 @@ class graph:
         unvisited = [1] * 5
         
         while(sum(unvisited)):
-            print("Big iteration")
             # iterate on routers adjacent to curnode
             for i in range(0, 5):
-                print("little iteration")
                 # don't check curnode
                 if (i == curnode):
                     continue
@@ -190,6 +188,8 @@ class graph:
             # no change, we are disconnected. breka
             if (mindexsofar == curnode):
                 break
+            
+            curnode = mindexsofar