This sounds like the map colouring problem to me. I don't know if there are modules already written to handle this challenge.
PS In planar geometry this can be solved with four colours, but if you're dealing with a torus, you need to go up to seven colours. Math is cool. :)
In reply to Re: Graph labeling problem
by talexb
in thread Graph labeling problem
by baxy77bax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |