Discrete Mathematics and Combinatorics

Tournaments and Directed Graphs

Learn what round-robin results look like as graphs, why a ranking line always exists, and why a clear champion may not.

Key takeaways

  • A directed graph has arrows instead of plain edges, and a tournament has exactly one arrow between every pair of vertices.
  • Every tournament contains a path that visits all vertices following the arrows.
  • A player with the most wins can reach every other player in at most two steps of "beat".
  • A tournament with no cycles has only one consistent ranking, while cycles such as A beats B beats C beats A make rankings disputable.
  • The win totals alone determine how many three-player cycles a tournament contains.

A tournament, in graph theory, is what you get when every pair of players meets exactly once and every match has a winner. Draw a point for each player and an arrow from each winner to each loser. The resulting picture has some surprising guarantees: you can always line everyone up so that each player beat the next one in line, yet there may be no sensible way to say who is best.

Tournaments are a special family of directed graphs, which are networks whose links have a direction. They are a good place to learn how direction changes the questions you can ask.

Directed graphs first

In a directed graph, or digraph, each link is an ordered pair: it goes from one vertex to another. Examples include one-way streets, web links, task dependencies and food webs.

Each vertex has two degrees. Its out-degree is the number of arrows leaving it, and its in-degree is the number arriving. Adding all out-degrees gives the number of arrows, and so does adding all in-degrees.

A directed path follows arrows one after another without repeating a vertex. A directed cycle returns to where it began. A digraph with no directed cycles is called acyclic, and it can always be listed in an order where every arrow points forward. This is called a topological order, and it is how software decides which parts of a project to build first. It is closely tied to partial orders.

A digraph is strongly connected if you can travel from any vertex to any other by following arrows.

What makes a tournament

With n players, a round robin has n(n − 1)/2 matches. Each match has two possible outcomes, so there are 2 raised to that number of possible results. For 5 players that is 10 matches and 1,024 outcomes.

The score of a player is the number of wins, the out-degree. The scores always add to n(n − 1)/2.

A ranking line always exists

László Rédei proved in 1934 that every tournament has a directed path through all the vertices. In sports terms, you can always arrange the players in a row so that each beat the one immediately after.

The proof builds the line one player at a time. Suppose you already have a valid line and a new player, Nia, arrives.

  1. If Nia beat the first player in line, put her at the front.
  2. Otherwise, if the last player in line beat Nia, put her at the end.
  3. Otherwise the first player beat Nia and Nia beat the last. Walking down the line, the results must switch somewhere from "beats Nia" to "beaten by Nia". Insert her at that switch.
Inserting a new player into a winning line
1 Beat the first? If yes, the newcomer goes in front. 2 Lost to the last? If yes, the newcomer goes at the end. 3 Find the switch Locate a player who beat them followed by one they beat. 4 Slot in The line stays unbroken with one more player. Beat the first? If yes, the newcomer goes in front. 1 Lost to the last? If yes, the newcomer goes at the end. 2 Find the switch Locate a player who beat them followed by one they beat. 3 Slot in The line stays unbroken with one more player. 4

For a concrete case, take the line Ava, Bo, Cy, Dee. Nia lost to Ava and Bo but beat Cy and Dee. She did not beat the first player, and the last player did not beat her. The results switch between Bo and Cy, so the new line is Ava, Bo, Nia, Cy, Dee. Each neighbor pair is a real result.

How many winning lines are there

Rédei showed more than existence: the number of complete lines is always odd. Here is a four-player example. Players 1, 2, 3 and 4 have these results: 1 beat 2 and 3, 2 beat 3 and 4, 3 beat 4, and 4 beat 1.

The complete lines are:

1 → 2 → 3 → 4
2 → 3 → 4 → 1
2 → 4 → 1 → 3
3 → 4 → 1 → 2
4 → 1 → 2 → 3

There are five, and every one of the four players heads at least one of them. Players 1 and 2 have two wins each and players 3 and 4 have one, yet a line can be arranged to put any of them "on top".

Random results produce many lines. Each particular ordering of n players works if all n − 1 neighboring matches went the right way, so with coin-flip results you expect n!/2^(n−1) complete lines. For 5 players that is 7.5, and the figure grows very quickly with n. This is a warning against treating any single line as the official ranking.

Kings

Say player K is a king if, for every other player P, either K beat P or K beat someone who beat P. Every tournament has a king.

Take any player with the highest score and call her Mara. Suppose some player Uri could not be reached in two steps. Then Uri beat Mara, and Uri also beat everyone Mara beat. That would give Uri at least one more win than Mara, which contradicts her having the highest score. So Mara is a king.

The idea is associated with H. G. Landau, who studied dominance among animals, such as pecking orders in flocks of chickens, in the early 1950s. A tournament can have several kings, and a king does not need to have the top score.

Cycles and transitivity

A tournament is transitive if whenever A beats B and B beats C, A also beats C. Then there are no cycles, there is exactly one complete winning line, and the scores are 0, 1, 2, up to n − 1, all different.

Most tournaments are not like that. The smallest cycle has three players, each beating one and losing to one.

You can count these three-cycles from the scores alone. Any trio that is not a cycle has exactly one player who beat the other two. A player with s wins plays that role in s(s − 1)/2 trios. So

number of 3-cycles = (all trios) − sum over players of s(s − 1)/2
Scores of 5 players All trios Subtract 3-cycles
4, 3, 2, 1, 0 10 6 + 3 + 1 + 0 + 0 = 10 0
3, 3, 2, 1, 1 10 3 + 3 + 1 + 0 + 0 = 7 3
2, 2, 2, 2, 2 10 5 × 1 = 5 5

The more evenly the wins are spread, the more cycles there are.

Which score lists are possible

Not every list of numbers can be the final win totals. Any group of k players has k(k − 1)/2 matches among themselves, so together they must have at least that many wins.

Landau's theorem says this condition is also enough. Sort the scores from smallest to largest. The list is possible exactly when every sum of the first k scores is at least k(k − 1)/2, and the sum of all n scores equals n(n − 1)/2.

For example, 0, 0, 3, 3 adds to 6, the right total for four players. But the two weakest would have 0 wins between them even though they played each other. The list is impossible.

Strong tournaments

A strongly connected tournament has no group that beat everyone outside it. Paul Camion showed in 1959 that such a tournament, with at least three players, has a directed cycle through all of them. J. W. Moon later showed that it contains cycles of every length from 3 up to n.

If a tournament is not strong, it breaks into ranked blocks: everyone in a higher block beat everyone in a lower one.

A tournament where nobody is safe

Can every pair of players be beaten by some third player? Yes, with seven players. Number them 0 to 6 and let player i beat players i + 1, i + 2 and i + 4, wrapping around after 6. For the pair 0 and 1, player 6 beats both, since 0 and 1 are 1 and 2 steps ahead of 6. By the rotational symmetry and a check of the other gaps, every pair is covered.

Paul Erdős showed with a random argument that for any k there are tournaments in which every group of k players is beaten by a single outsider. It is an early showcase for the probabilistic method.

Where tournaments appear

  • Voting. Pit candidates against each other in pairs by majority. With an odd number of voters the results form a tournament, and it can contain cycles even when every voter ranks consistently.
  • Preference studies. People asked to compare items two at a time sometimes produce cycles.
  • Games. Certain sets of dice are nontransitive: A usually beats B, B usually beats C, and C usually beats A.
  • Ranking methods. Because cycles exist, any ranking rule must choose what to ignore. Counting wins, weighting wins by opponent strength and random walk scoring can disagree.

A knockout bracket is a different object, since most pairs never meet. See knockout brackets and upset champions for that setting.

Reading a tournament as a table

You can record a tournament as a square table with a 1 in row i, column j when i beat j. Exactly one of the two mirror entries (i, j) and (j, i) is 1. Row sums are the scores.

Squaring this adjacency matrix counts two-step chains: how many players j were beaten by i and in turn beat k. Adding the table to its square gives each player a count of direct wins plus indirect ones. A player is a king exactly when their row in this sum has no zero outside the diagonal. Some ranking schemes use this total to separate players who finished with equal scores, although it can still leave ties.

Common questions

Can draws be included?

Not in the strict definition. A competition with draws needs a more general digraph, or a rule such as awarding half a point.

Is a king the champion?

No. Being a king is a weak property. In the three-player cycle all three are kings.

Written for 4Mathematics with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 45 articles in Discrete Mathematics and Combinatorics →

Latest news on this topic