All-Pairs Grid Neighbors
code
python
graph theory
numpy
permutations
From a list of labels, construct a grid where each two labels are neighbors at least once, and no label is a neighbor of itself.
No matching items
From a list of labels, construct a grid where each two labels are neighbors at least once, and no label is a neighbor of itself.