# 10 K ring with 10 nodes, K=3, All-port
# number of processors and maximal number of links per processor 
10 4

# proc_num and its direct neighbors 

 0 B  1  9  3
 1 R  2  0  4 
 2 R  3  1  5
 3 R  4  2  6
 4 R  5  3  7
 5 R  6  4  8
 6 R  7  5  9
 7 R  8  6  0
 8 R  9  7  1
 9 R  0  8  2
