@@ -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