1. Chess analogy
Sports analogy in this case is more than appropriate. The case in the picture is completely similar to the game of chess in the Swiss system B = 15 participants in k / 2 = 2 rounds in two colors for N = 10 game days (one round per day) on r / 2 = 3 boards. Additional condition: each participant plays no more than one tour per day. Accordingly, we will approach this issue.
2. Pairs of networks
For each network s, we create an array of B - 1 other networks and start a decreasing counter of pairs c = k / 2 . When a pair of networks is formed, then another network should be removed from their arrays, and the pair counters should be reduced by one. When resetting the counter, reset the corresponding array.
All possible sets of pairs for the first network are combinations of B - 1 elements of its k / 2 array. For subsequent networks, the question is determined by their arrays and pairs counters.
3. Linking pairs of networks to nodes
For each pair of consecutive nodes we create an array of B networks and a decreasing counter c1 = r / 2 . After binding a pair of networks to a pair of nodes, we cross out each node from the array and reduce the counter. When resetting the counter, reset the corresponding array.
Parallel with the binding we are filling the table. At the end of the binding, the table will be filled as required.