# One Disk Per Diagonal

One Disk Per Diagonal

Each diagonal parallel to the main diagonal (which is blank) is colored with one color. The objective is to have exactly one disk on each diagonal, which is equivalent to finding the adjacency matrix of a graceful graph.

Clicking the button in the row and column first swaps the shapes (but not the colors) in rows and , and then swaps the shapes (but not the colors) in columns .

i

th

j

th

i

j

i,j