setup_map neighbors 1 2,3,4 2 3 4 5
Yeah, it's tricky to decipher. I wish they had used a better syntax.
First split by space, then look at each pair:
1: 2,3,4
2: 3
4: 5
This means that 1 is connected to 2, 3, and 4. 2 is connected to 3. 4 is connected to 5.
All connections are implicitly two-way, so you also have to read it in reverse. The first line says that 2,3, and 4 are connected to 1. Second line: 3 is connected to 2. Third line: 5 is connected to 4.
You can go back and fill in the gaps to get this:
1: 2,3,4
2: 1,3
3: 1,2
4: 1,5
5: 4
Edited 3/20/2014 16:59:21