Compiling an adjacency matrix of an arbitrary structure - Kirby, Edward Cameron (Array, 1997)