io
import sys
import os
sys.path.append(os.path.abspath('..'))
import libpysal
w = libpysal.weights.lat2W(5,5)
w.n
w.pct_nonzero
w.neighbors[0]
w.neighbors[5]
libpysal.examples.available()
libpysal.examples.explain('baltim')
pth = libpysal.examples.get_path('baltim.shp')
pth
shp_file = libpysal.io.open(pth)
shapes = [shp for shp in shp_file]
shapes[0]
w = libpysal.io.open(libpysal.examples.get_path('baltim_q.gal')).read()
w.n