Last active
August 29, 2015 14:10
-
-
Save kjunichi/9e77493c41fdfe0d8f20 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
# In[1]: | |
get_ipython().magic('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) | |
# In[ ]: | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment