main
public static void main(java.lang.String[] args)
Method to test the neighbor iterator. Constructs a lattice
with sites defined to hold a color. Configures iterator,
loops over neighbor sites and defines up/down neighbors to
have colors yellow and blue, respectively. Then puts up a window
with the lattice drawn as an array of squares, with central site colored
red and with neighbor sites identified by their colors. 3-D lattice is shown
with a set of slices through the planes in the 3rd dimension.
- Parameters:
args
-