Graphs and graph search

Vertices, edges and degrees, Euler and Hamilton paths, trees and colouring, then breadth-first and depth-first search, components and shortest paths.

About 6 hours of study

Learning objectives

Lessons

  1. 1

    Graphs Intermediate

    Vertices and edges, degrees and the handshake lemma, special graphs, trees, Euler paths and circuits (the bridges of Königsberg), Hamilton cycles, colouring and planar graphs.

  2. 2

    Searching a graph: BFS and DFS Intermediate

    Adjacency lists, breadth-first search with a queue, depth-first search with a stack or recursion, connected components, and shortest paths in graphs without weights.

Module practice

Module quiz

1. A graph has 5 edges. What is the sum of all the degrees?
2. How many edges does a tree with 10 vertices have?
3. When does a connected graph have an Euler circuit?
4. Which structure drives breadth-first search?
5. BFS finds shortest paths measured in...
6. How do you count the connected components of a graph?

‹ Number theory and RSAFinal assessment ›