add lattice.py. disconnect non-random nodes