Chapter

Graphs II

The module develops graph methods: degrees, trees, forests, connectedness, cycles, bipartiteness, Euler trails, basic matchings, and planar bounds.
Log in to track solved progress and bookmarks.

Theory

Key Idea

Graphs in olympiad combinatorics are not about terminology; they are a language for vertices, edges, degrees, paths, cycles, and components.

In Book 2, students should command several lemmas: degree sum, spanning tree, tree as a connected acyclic graph, bipartiteness via odd cycles, Euler walks, and simple planar bounds.

Basic Facts

  • The sum of degrees is \(2E\), so the number of vertices of odd degree is even.
  • A connected graph on \(n\) vertices has at least \(n-1\) edges; a tree has exactly \(n-1\) edges.
  • In a tree, between any two vertices there is exactly one simple path.
  • A graph is bipartite if and only if it has no odd cycles.
  • A connected graph has an Euler circuit if and only if all degrees are even.

When to Use This Method

  • The problem contains roads, acquaintances, pairs, undirected networks, or schedules.
  • You need to prove the existence of a path, cycle, component, matching, or colouring.
  • The statement involves degrees, parity of edges, connectedness, or forbidden cycles.
  • A planar configuration gives a planar graph or a tree.

How to Recognise the Method

Ask: what are the vertices and what are the edges? Sometimes vertices are people, cells, sets, or regions, and an edge means conflict, adjacency, intersection, or possible transition.

If the graph is connected, take a spanning tree. If degrees appear, use the degree sum. If odd cycles are forbidden, try a bipartite colouring.

Typical Mistakes

  • Forgetting to ignore isolated vertices when discussing Euler trails.
  • Thinking that \(E=n-1\) alone means the graph is a tree, although connectedness or acyclicity is also needed.
  • Confusing bipartiteness with colouring edges in two colours.
  • Using Euler's formula in planar problems without checking connectedness assumptions.

Mini-Checklist

  • Define vertices and edges.
  • Check connectedness and components.
  • Count the sum of degrees.
  • For a minimum number of edges, look for a tree; if there is an extra edge, look for a cycle.
  • For walks using all edges, check the number of odd degrees.

Examples

Example 1. Sum of Degrees

The main graph formula is that every edge is counted twice.

Problem. Prove that the sum of all vertex degrees of a graph equals twice the number of edges.

Solution.

Every edge has two endpoints. In the sum of degrees, it contributes \(1\) to each endpoint, for a total contribution of \(2\). Therefore the sum of degrees is \(2E\).

Example 2. Number of Odd Degrees

Parity immediately gives a strong conclusion.

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

Solution.

The sum of all degrees is \(2E\), so it is even. The sum of even degrees is even, hence the sum of odd degrees is also even. This is possible only if the number of odd summands is even.

Example 3. Spanning Tree

Connectedness is often simplified by deleting redundant edges.

Problem. Prove that every finite connected graph has a spanning tree.

Solution.

Among all connected subgraphs containing all vertices, choose one with the minimum number of edges. If it contains a cycle, deleting one edge of that cycle does not break connectedness, contradicting minimality. Thus it has no cycles and is a tree.

Example 4. Exactly One Extra Edge

A spanning tree helps reveal cycles.

Problem. A connected graph with \(n\) vertices has \(n\) edges. Prove that it has exactly one cycle.

Solution.

Take a spanning tree; it has \(n-1\) edges. The original graph has exactly one edge outside the tree. Adding one edge to a tree creates exactly one cycle. There can be no other cycle, because every cycle would have to use this single extra edge.

Example 5. Bipartiteness

Bipartiteness is a vertex colouring, not an edge colouring.

Problem. Prove that if a graph is bipartite, then it has no odd cycle.

Solution.

In a bipartite graph, every edge joins different parts. While moving along a cycle, the parts must alternate. To return to the starting part, one must make an even number of steps. Hence every cycle has even length.

Example 6. Euler Circuit

The degree condition explains why one can traverse all edges.

Problem. If a connected graph has a closed walk using every edge exactly once, prove that all vertex degrees are even.

Solution.

Every time the walk enters a vertex, it must leave through a different unused edge. Thus the edges at the vertex are paired as entry-exit pairs. Therefore every degree is even.

Example 7. A Maximal Matching

Even before Hall's theorem, a basic matching lemma is useful.

Problem. A matching maximal by inclusion is chosen in a graph. Prove that every edge of the graph has at least one endpoint covered by this matching.

Solution.

If there were an edge whose two endpoints are both uncovered, it could be added to the matching. This contradicts maximality by inclusion.

Example 8. A Planar Bound

Planarity turns geometry into counting edges and faces.

Problem. Prove that a simple connected planar graph with \(n\ge3\) vertices and \(m\) edges satisfies \(m\le3n-6\).

Solution.

By Euler's formula, \(n-m+f=2\). Every face is bounded by at least three edges, and every edge is counted twice along face boundaries, so \(3f\le2m\). Hence \(f\le\frac{2m}{3}\), and Euler's formula gives \(2=n-m+f\le n-m+\frac{2m}{3}=n-\frac{m}{3}\). Therefore \(m\le3n-6\).

Problems

Problems

#7.1
#7.1

Sum of Degrees

Graph Theory Grade 8 Grade 9 ★★☆☆☆

A graph has \(m\) edges. Prove that the sum of all vertex degrees is \(2m\).

Details
Problem: COM-B2-M07-P001
Difficulty: Level 2 of 5
Tag: Graph Theory
Grade: Grade 8, Grade 9
#7.2
#7.2

Odd Degrees

Parity Grade 8 Grade 9 ★★☆☆☆

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

Details
Problem: COM-B2-M07-P002
Difficulty: Level 2 of 5
Tag: Parity
Grade: Grade 8, Grade 9
#7.3
#7.3

A Leaf in a Tree

Graph Theory Grade 8 Grade 9 ★★☆☆☆

Prove that every tree with at least two vertices has at least two leaves.

Details
Problem: COM-B2-M07-P003
Difficulty: Level 2 of 5
Tag: Graph Theory
Grade: Grade 8, Grade 9
#7.4
#7.4

Minimum Edges for Connectedness

Tree Grade 8 Grade 9 ★★☆☆☆

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

Details
Problem: COM-B2-M07-P004
Difficulty: Level 2 of 5
Tag: Tree
Grade: Grade 8, Grade 9
#7.5
#7.5

An Added Edge

Cycles Grade 8 Grade 9 ★★☆☆☆

One edge is added to a tree between two existing vertices. Prove that exactly one cycle appears.

Details
Problem: COM-B2-M07-P005
Difficulty: Level 2 of 5
Tag: Cycles
Grade: Grade 8, Grade 9
#7.6
#7.6

Edges in a Forest

Graph Theory Grade 9 Grade 10 ★★★☆☆

A forest has \(n\) vertices and \(c\) connected components. Prove that it has \(n-c\) edges.

Details
Problem: COM-B2-M07-P006
Difficulty: Level 3 of 5
Tag: Graph Theory
Grade: Grade 9, Grade 10
#7.7
#7.7

Removing an Edge of a Cycle

Cycles Grade 9 Grade 10 ★★★☆☆

Prove that if one removes an edge lying on a cycle from a connected graph, the graph remains connected.

Details
Problem: COM-B2-M07-P007
Difficulty: Level 3 of 5
Tag: Cycles
Grade: Grade 9, Grade 10
#7.8
#7.8

Connected Graph with \(n-1\) Edges

Cycles Grade 9 Grade 10 ★★★☆☆

A connected graph has \(n\) vertices and \(n-1\) edges. Prove that it is a tree.

Details
Problem: COM-B2-M07-P008
Difficulty: Level 3 of 5
Tag: Cycles
Grade: Grade 9, Grade 10
#7.9
#7.9

Exactly One Cycle

Cycles Grade 9 Grade 10 ★★★☆☆

A connected graph on \(n\) vertices has \(n\) edges. Prove that it contains exactly one cycle.

Details
Problem: COM-B2-M07-P009
Difficulty: Level 3 of 5
Tag: Cycles
Grade: Grade 9, Grade 10
#7.10
#7.10

Bipartite Graphs Have No Odd Cycles

Coloring Grade 9 Grade 10 ★★★☆☆

Prove that a bipartite graph contains no cycle of odd length.

Details
Problem: COM-B2-M07-P010
Difficulty: Level 3 of 5
Tag: Coloring
Grade: Grade 9, Grade 10
#7.11
#7.11

Colouring by Distance

Coloring Grade 9 Grade 10 ★★★☆☆

Let a connected graph contain no odd cycles. Choose a vertex \(v\). Prove that colouring vertices by the parity of their distance from \(v\) gives a bipartition.

Details
Problem: COM-B2-M07-P011
Difficulty: Level 3 of 5
Tag: Coloring
Grade: Grade 9, Grade 10
#7.12
#7.12

Necessary Condition for an Euler Trail

Degree Counting Grade 9 Grade 10 ★★★☆☆

A connected graph has a trail using every edge exactly once. Prove that the number of vertices of odd degree is \(0\) or \(2\).

Details
Problem: COM-B2-M07-P012
Difficulty: Level 3 of 5
Tag: Degree Counting
Grade: Grade 9, Grade 10
#7.13
#7.13

Tree with a Perfect Matching

Tree Grade 9 Grade 10 ★★★★☆

A tree has a perfect matching. Prove that the neighbour of every leaf is matched to that leaf in this matching.

Details
Problem: COM-B2-M07-P013
Difficulty: Level 4 of 5
Tag: Tree
Grade: Grade 9, Grade 10
#7.14
#7.14

Maximal Matching and Edge Covering

Graph Theory Grade 9 Grade 10 ★★★★☆

A matching maximal by inclusion is chosen in a graph. Prove that the set of all endpoints of chosen edges intersects every edge of the graph.

Details
Problem: COM-B2-M07-P014
Difficulty: Level 4 of 5
Tag: Graph Theory
Grade: Grade 9, Grade 10
#7.15
#7.15

Regular Bipartite Graph

Bipartite graphs Grade 10 ★★★★☆

In a bipartite graph with parts \(A\) and \(B\), every vertex has degree \(d>0\). Prove that \(|A|=|B|\).

Details
Problem: COM-B2-M07-P015
Difficulty: Level 4 of 5
Tag: Bipartite graphs
Grade: Grade 10
#7.16
#7.16

Euler Circuit: Sufficiency

Graph Theory Grade 10 ★★★★☆

Prove that if a finite connected graph has only even degrees, then it has a closed walk using every edge exactly once.

Details
Problem: COM-B2-M07-P016
Difficulty: Level 4 of 5
Tag: Graph Theory
Grade: Grade 10
#7.17
#7.17

Planar Bound

Planar Graph Grade 10 ★★★★☆

A simple connected planar graph has \(n\ge3\) vertices and \(m\) edges. Prove that \(m\le3n-6\).

Details
Problem: COM-B2-M07-P017
Difficulty: Level 4 of 5
Tag: Planar Graph
Grade: Grade 10
#7.18
#7.18

Criterion for an Euler Trail

Graph Theory Grade 10 Grade 11 ★★★★★

Prove that a connected graph has a trail using every edge exactly once if and only if the number of vertices of odd degree is \(0\) or \(2\).

Details
Problem: COM-B2-M07-P018
Difficulty: Level 5 of 5
Tag: Graph Theory
Grade: Grade 10, Grade 11
#7.19
#7.19

Planar Bipartite Graph

Bipartite graphs Grade 10 Grade 11 ★★★★★

A simple connected planar bipartite graph has \(n\ge3\) vertices and \(m\) edges. Prove that \(m\le2n-4\).

Details
Problem: COM-B2-M07-P019
Difficulty: Level 5 of 5
Tag: Bipartite graphs
Grade: Grade 10, Grade 11
#7.20
#7.20

Large Independent Set in a Tree

Bipartite graphs Grade 10 Grade 11 ★★★★★

Prove that every tree on \(n\) vertices has an independent set of size at least \(\lceil n/2\rceil\).

Details
Problem: COM-B2-M07-P020
Difficulty: Level 5 of 5
Tag: Bipartite graphs
Grade: Grade 10, Grade 11

Ladders

No published ladders were found.
Previous Chapter
Next Chapter