瀏覽代碼

embrace the stupidity

tarfeef101 6 年之前
父節點
當前提交
43a9867334
共有 1 個文件被更改,包括 1 次插入1 次删除
  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