Pairing Combinations of an 8-player/team round-robin

I potentially want to write code for a 8-player/team round-robin tool that allows you to use any combination of schedule (e.g. select from various drop downs). The problem is I don't understand one complicated part.

I'll use an example to explain what I want to find:

Match Day 1

A vs B
C vs D
E vs F
G vs H


Simpler parts

• The match days themselves can be in any order. A vs B, C vs D, E vs F, G vs H labels the starting pairings as a reference for the later match days.
• The pairings within a match day can be any order: e.g. E vs F, A vs B, C vs D, G vs H.
• The players/teams in the pairing can be written the other way around, e.g. A vs B could be B vs A.

Complicated part

If I however swapped 2 pairings between say match day 1 and another match day, what are the ways that can be done?

If you have A vs B, C vs D, E vs F, G vs H as the first match day in 1 combination, you can swap out E vs F, G vs H for E vs G, F vs H or for E vs H, F vs G (2 additional combinations). Since this is a round robin of 8, there's 7 match days, so you could swap (2 ways) between 2, 4 or 6 match days, or swap (3 ways) between 3 or 6 match days. What is the best way to list all these combinations down?

• That's not complicated – it's incomprehensible. What do you mean? – Gerry Myerson Mar 23 '20 at 12:18
• If you have A vs B, C vs D, E vs F, G vs H as the first match day in 1 combination, you can swap out E vs F, G vs H for E vs G, F vs H or for E vs H, F vs G (2 additional combinations). Since this is a round robin of 8, there's 7 match days, so you could swap (2 ways) between 2, 4 or 6 match days, or swap (3 ways) between 3 or 6 match days. What is the best way to list all these combinations down? I'll add this to the OP. – Jack Ralls Mar 23 '20 at 13:40
• Are you just trying to list all the ways you can play the tournament, so list the four matches on each day of seven? You talk of listing the possibilities if you swap certain things. Is it important that certain ways of playing are related by a small number of swaps? – Ross Millikan Mar 23 '20 at 14:04
• The swapping is just to illustrate that there are lots of combinations that are incompatible with each other. If I used one website to output the 7 day schedule, it could be different to another. If I tried to match the ordering that I mentioned under simpler parts, there'd still be a difference. I want to list all these ways, but I don't know how to organize this well and know that I am counting actual differences. – Jack Ralls Mar 23 '20 at 14:41
• @GerryMyerson thanks again, I didn't realize that. It was like I was only considering between making them all reverse or not. But indeed you can toggle all 28 pairings without any depending on each other. I will read more about 1-factorization now. – Jack Ralls Mar 27 '20 at 10:01