Browse Source

embrace the stupidity

tarfeef101 6 years ago
parent
commit
43a9867334
1 changed files with 1 additions and 1 deletions
  1. 1 1
      a3/router.py

+ 1 - 1
a3/router.py

@@ -150,7 +150,7 @@ class graph:
         curnode = rid - 1
         unvisited = [1] * 5
         
-        while(unvisited):
+        while(sum(unvisited)):
             # iterate on routers adjacent to curnode
             for i in range(0, 5):
                 # don't check curnode