._site

(Arne Babenhauserheide)
2012-07-25: the starter can fold, too

the starter can fold, too

diff --git a/sim.py b/sim.py
--- a/sim.py
+++ b/sim.py
@@ -208,7 +208,7 @@ def fold(net, num=100):
         routelen = len(route)
         routelengths.append(routelen)
         # fold all on the route except for the start and the endpoint
-        for prev in route[1:-1]:
+        for prev in route[:-1]:
             pnet = net[prev]
             checkfold(target, prev, net)
     return routelengths