# 8 K ring with 8 nodes, K=3, 1-port
# number of processors and maximal number of links per processor 
16 4

# proc_num and its direct neighbors 
 0 B  8
 1 R  9
 2 R 10
 3 R 11
 4 R 12
 5 R 13
 6 R 14
 7 R 15
 8 N 15  9 11  0 
 9 N  8 10 12  1
10 N  9 11 13  2
11 N 10 12 14  3
12 N 11 13 15  4
13 N 12 14  8  5
14 N 13 15  9  6
15 N 15 16 10  7