Chapter

Graphs I

The module introduces vertices, edges, degrees, the handshaking formula, connectedness, trees, cycles, bipartite graphs, and first extremal arguments.
Log in to track solved progress and bookmarks.

Theory

Key Idea

A graph replaces relations between objects by vertices and edges. People and acquaintances, cities and roads, teams and games, cells and legal moves often become the same kind of structure.

The first main graph tool is the degree-sum formula: every edge has two ends, so \(\sum \deg(v)=2E\). From this simple formula come the parity of odd degrees, average arguments, and many impossibility proofs.

Basic Facts

  • The degree of a vertex is the number of edges incident to it.
  • In every finite undirected graph, \(\sum \deg(v)=2E\).
  • The number of vertices of odd degree is always even.
  • The complete graph on \(n\) vertices has \(\binom{n}{2}\) edges.
  • A connected graph on \(n\) vertices has at least \(n-1\) edges; a tree has exactly \(n-1\) edges.
  • A bipartite graph has no odd cycle.

When to Use This Method

  • The problem contains pairs of objects: acquaintances, roads, games played, or possible transitions.
  • You need to prove that a system of relations is impossible.
  • Degrees or numbers of connections are given, and you need to find edges or a contradiction.
  • You need to prove the existence of a vertex with large or small degree.
  • There is a restriction on triangles, cycles, or connections inside two groups.

How to Recognise the Method

Ask: what are the vertices, and what are the edges? If the relation is mutual, use an undirected graph. If the relation is directed, it may be a tournament or directed graph, but often it is enough to count in-degrees and out-degrees.

If the statement contains words like “each”, “exactly”, “at least”, “is acquainted with”, or “is connected to”, it is almost always useful to write down degrees and use the degree-sum formula.

Typical Mistakes

  • Counting each edge once in the degree sum, although it contributes \(2\).
  • Confusing the number of edges of a complete graph with \(n^2\) instead of \(\binom{n}{2}\).
  • Proving connectedness without excluding several components.
  • Using tree properties for graphs that may contain cycles.
  • In acquaintance problems, forgetting that acquaintance is usually mutual.

Mini-Checklist

  • What are the vertices?
  • What are the edges?
  • Which degrees are known or bounded?
  • What does \(\sum \deg(v)=2E\) give?
  • Do we need connectedness, a tree, a cycle, or bipartiteness?
  • Can we use an average argument: some vertex has degree at least or at most the average?

Examples

Example 1. Degree Sum

The first action in a graph is to count degrees.

Problem. A graph has vertex degrees \(2,3,3,4,4\). How many edges does it have?

Solution.

The sum of degrees is \(2+3+3+4+4=16\). Each edge contributes \(2\) to the degree sum, so the number of edges is \(16/2=8\).

Comment. If the degree sum is odd, such a graph does not exist.

Example 2. Odd Degrees

Parity often gives a quick contradiction.

Problem. Can a graph have exactly \(5\) vertices of odd degree?

Solution.

No. The sum of all degrees is \(2E\), hence even. The sum of even degrees is even, so the sum of odd degrees must also be even. But the sum of \(5\) odd numbers is odd. Contradiction.

Comment. Therefore, the number of vertices of odd degree is always even.

Example 3. Complete Graph

A complete graph appears when every pair of objects is connected.

Problem. How many edges are there in the complete graph on \(9\) vertices?

Solution.

Each edge is determined by a pair of vertices. Therefore the number of edges is \(\binom{9}{2}=36\).

Comment. Do not count ordered pairs: edge \(AB\) and \(BA\) are the same edge.

Example 4. Acquaintances

The graph model removes unnecessary wording.

Problem. In a group of \(8\) people, each person knows exactly \(3\) others. How many acquaintance pairs are there?

Solution.

Build a graph: vertices are people, edges are acquaintance pairs. The degree sum is \(8\cdot3=24\). Each acquaintance pair is counted twice, so there are \(24/2=12\) pairs.

Comment. Mutual acquaintance matters: this is an undirected graph.

Example 5. Connected Graph

Connectedness requires at least \(n-1\) edges.

Problem. Prove that a connected graph on \(n\) vertices has at least \(n-1\) edges.

Solution.

Start with one vertex and add the remaining vertices one by one along paths from the already added part. For a new vertex to be connected to the previous part, at least one new edge is needed. Adding \(n-1\) vertices requires at least \(n-1\) edges.

Comment. Equality is achieved by trees.

Example 6. A Tree Has Leaves

A tree always has vertices of degree \(1\).

Problem. Prove that a tree with at least two vertices has at least two leaves.

Solution.

Take a longest simple path in the tree. If one endpoint had degree greater than \(1\), an edge would go from it to a vertex outside the path; otherwise there would be a cycle or the path could be extended. This contradicts maximality. Hence both endpoints have degree \(1\).

Comment. The longest-path argument appears very often.

Example 7. Bipartiteness

Bipartite graphs are recognized by the absence of odd cycles.

Problem. Prove that a bipartite graph has no cycle of odd length.

Solution.

Let the vertices be split into two parts, with every edge going between the parts. While moving along a cycle, the parts alternate. To return to the starting part, one must make an even number of steps. Thus every cycle has even length.

Comment. This is the same alternation principle as in chessboard coloring.

Example 8. A Small Ramsey Statement

Graphs help prove statements about acquaintances and strangers.

Problem. Prove that among any \(6\) people, there are either \(3\) mutual acquaintances or \(3\) mutual strangers.

Solution.

Choose one person \(A\). Among the other \(5\), person \(A\) either knows at least \(3\) or does not know at least \(3\). Suppose, for instance, that \(A\) knows \(B,C,D\). If among \(B,C,D\) there is an acquaintance pair, then together with \(A\) we get \(3\) mutual acquaintances. If there is no acquaintance pair among them, then \(B,C,D\) are mutual strangers. The case of three strangers of \(A\) is analogous.

Comment. This is a strong example, but the proof structure is short.

Problems

Problems

#9.1
#9.1

How Many Edges

Degree Grade 7 Grade 8 ★☆☆☆☆

A graph has vertex degrees \(2,2,3,3,4\). How many edges does it have?

Details
Problem: COM-B1-M09-P001
Difficulty: Level 1 of 5
Tag: Degree
Grade: Grade 7, Grade 8
#9.2
#9.2

Three Odd Degrees

Parity Grade 7 Grade 8 ★☆☆☆☆

Can there exist a graph with three vertices of degrees \(1,1,1\)?

Details
Problem: COM-B1-M09-P002
Difficulty: Level 1 of 5
Tag: Parity
Grade: Grade 7, Grade 8
#9.3
#9.3

Complete Graph on \(8\) Vertices

Counting Grade 7 Grade 8 ★☆☆☆☆

How many edges are there in the complete graph on \(8\) vertices?

Details
Problem: COM-B1-M09-P003
Difficulty: Level 1 of 5
Tag: Counting
Grade: Grade 7, Grade 8
#9.4
#9.4

Path and Cycle

Cycles Grade 7 Grade 8 ★☆☆☆☆

Find the degree sums of a path on \(6\) vertices and a cycle on \(6\) vertices.

Details
Problem: COM-B1-M09-P004
Difficulty: Level 1 of 5
Tag: Cycles
Grade: Grade 7, Grade 8
#9.5
#9.5

Nine Participants

Degree Grade 7 Grade 8 ★☆☆☆☆

In a group of \(9\) people, each person states the number of acquaintances in the group. Prove that the sum of the stated numbers is even.

Details
Problem: COM-B1-M09-P005
Difficulty: Level 1 of 5
Tag: Degree
Grade: Grade 7, Grade 8
#9.6
#9.6

Even Number of Odd Degrees

Parity Grade 7 Grade 8 ★★☆☆☆

Prove that in every graph, the number of vertices of odd degree is even.

Details
Problem: COM-B1-M09-P006
Difficulty: Level 2 of 5
Tag: Parity
Grade: Grade 7, Grade 8
#9.7
#9.7

Twelve Vertices of Degree \(3\)

Degree Grade 7 Grade 8 ★★☆☆☆

A graph has \(12\) vertices, each of degree \(3\). How many edges does it have?

Details
Problem: COM-B1-M09-P007
Difficulty: Level 2 of 5
Tag: Degree
Grade: Grade 7, Grade 8
#9.8
#9.8

Complete Bipartite Graph

Counting Grade 7 Grade 8 ★★☆☆☆

In a complete bipartite graph, one part has \(4\) vertices and the other has \(7\). How many edges are there?

Details
Problem: COM-B1-M09-P008
Difficulty: Level 2 of 5
Tag: Counting
Grade: Grade 7, Grade 8
#9.9
#9.9

Minimum Edges for Connectedness

Tree Grade 7 Grade 8 ★★☆☆☆

What is the minimum number of edges in a connected graph on \(10\) vertices?

Details
Problem: COM-B1-M09-P009
Difficulty: Level 2 of 5
Tag: Tree
Grade: Grade 7, Grade 8
#9.10
#9.10

Edges of a Tree

Tree Grade 7 Grade 8 ★★☆☆☆

How many edges are there in a tree on \(15\) vertices?

Details
Problem: COM-B1-M09-P010
Difficulty: Level 2 of 5
Tag: Tree
Grade: Grade 7, Grade 8
#9.11
#9.11

Too Many Edges

Complete Graph Grade 7 Grade 8 ★★☆☆☆

Can a simple graph on \(8\) vertices have \(29\) edges?

Details
Problem: COM-B1-M09-P011
Difficulty: Level 2 of 5
Tag: Complete Graph
Grade: Grade 7, Grade 8
#9.12
#9.12

Degrees from \(0\) to \(5\)

Pigeonhole principle Grade 8 Grade 9 ★★☆☆☆

In a group of \(6\) people, can the numbers of acquaintances be \(0,1,2,3,4,5\)?

Details
Problem: COM-B1-M09-P012
Difficulty: Level 2 of 5
Tag: Pigeonhole principle
Grade: Grade 8, Grade 9
#9.13
#9.13

Two People with the Same Number of Acquaintances

Pigeonhole principle Grade 8 Grade 9 ★★★☆☆

Prove that in any group of \(2n\) people, two people have the same number of acquaintances within the group.

Details
Problem: COM-B1-M09-P013
Difficulty: Level 3 of 5
Tag: Pigeonhole principle
Grade: Grade 8, Grade 9
#9.14
#9.14

At Least as Many Edges as Vertices

Cycles Grade 8 Grade 9 ★★★☆☆

Prove that if a graph on \(n\) vertices has at least \(n\) edges, then it contains a cycle.

Details
Problem: COM-B1-M09-P014
Difficulty: Level 3 of 5
Tag: Cycles
Grade: Grade 8, Grade 9
#9.15
#9.15

Connected Graph with \(n-1\) Edges

Cycles Grade 8 Grade 9 ★★★☆☆

Prove that a connected graph on \(n\) vertices with \(n-1\) edges has no cycles.

Details
Problem: COM-B1-M09-P015
Difficulty: Level 3 of 5
Tag: Cycles
Grade: Grade 8, Grade 9
#9.16
#9.16

Two Leaves

Degree Grade 8 Grade 9 ★★★☆☆

Prove that every tree with at least two vertices has at least two vertices of degree \(1\).

Details
Problem: COM-B1-M09-P016
Difficulty: Level 3 of 5
Tag: Degree
Grade: Grade 8, Grade 9
#9.17
#9.17

Minimum Degree \(3\)

Degree Grade 8 Grade 9 ★★★☆☆

Prove that a graph on \(6\) vertices in which every vertex has degree at least \(3\) is necessarily connected.

Details
Problem: COM-B1-M09-P017
Difficulty: Level 3 of 5
Tag: Degree
Grade: Grade 8, Grade 9
#9.18
#9.18

The Part with Five Vertices

Average Grade 8 Grade 9 ★★★☆☆

In a bipartite graph, the parts have sizes \(5\) and \(7\), and there are \(20\) edges. Prove that in the part of size \(5\), some vertex has degree at least \(4\).

Details
Problem: COM-B1-M09-P018
Difficulty: Level 3 of 5
Tag: Average
Grade: Grade 8, Grade 9
#9.19
#9.19

Tournament of \(7\) Players

Average Grade 8 Grade 9 ★★★☆☆

In a tournament of \(7\) players, everyone played everyone exactly once, with no draws. Prove that some player won at least \(3\) games and some player lost at least \(3\) games.

Details
Problem: COM-B1-M09-P019
Difficulty: Level 3 of 5
Tag: Average
Grade: Grade 8, Grade 9
#9.20
#9.20

Eleven Vertices

Degree Grade 8 Grade 9 ★★★☆☆

Prove that a graph on \(11\) vertices in which every vertex has degree at least \(6\) is connected.

Details
Problem: COM-B1-M09-P020
Difficulty: Level 3 of 5
Tag: Degree
Grade: Grade 8, Grade 9
#9.21
#9.21

Minimum Degree \(5\)

Degree Grade 8 Grade 9 ★★★★☆

Prove that a graph on \(9\) vertices in which every vertex has degree at least \(5\) must contain a triangle.

Details
Problem: COM-B1-M09-P021
Difficulty: Level 4 of 5
Tag: Degree
Grade: Grade 8, Grade 9
#9.22
#9.22

Tree with Degrees \(1\) and \(3\)

Degree Grade 8 Grade 9 ★★★★☆

A tree has \(12\) vertices, and every vertex has degree either \(1\) or \(3\). How many leaves does it have?

Details
Problem: COM-B1-M09-P022
Difficulty: Level 4 of 5
Tag: Degree
Grade: Grade 8, Grade 9
#9.23
#9.23

Remove an Edge Without Losing Connectedness

Cycles Grade 8 Grade 9 ★★★★☆

A connected graph has \(9\) vertices and \(9\) edges. Prove that one can remove an edge so that the graph remains connected.

Details
Problem: COM-B1-M09-P023
Difficulty: Level 4 of 5
Tag: Cycles
Grade: Grade 8, Grade 9
#9.24
#9.24

Six People

Challenge Grade 8 Grade 9 ★★★★★

Prove that among any \(6\) people, there are either \(3\) mutual acquaintances or \(3\) mutual strangers.

Details
Problem: COM-B1-M09-P024
Difficulty: Level 5 of 5
Tag: Challenge
Grade: Grade 8, Grade 9

Ladders

No published ladders were found.
Previous Chapter
Next Chapter