In [1]:
%matplotlib inline
In [2]:
from graphillion import GraphSet
In [3]:
import graphillion.tutorial as tl
In [4]:
universe = tl.grid(8, 8)
In [5]:
GraphSet.set_universe(universe)
In [6]:
tl.draw(universe)
In [7]:
start = 1
In [8]:
goal = 81
In [9]:
paths = GraphSet.paths(start, goal)
In [10]:
len(paths)
Out[10]:
3266598486981642
In [ ]: