Graph theory worksheet with answers

Free printable Graph theory worksheet: 6 problems from easy to exam level, with an answer key. Print it or save it as a PDF.

For teachers: free to print, copy and use in class. Every new worksheet has new values and its own answer key. A link to ExamProblems on your course page is appreciated.

Name: ____________________   Date: ____________

1.Easy
AABBCCDD0011001011011010

The adjacency matrix of a simple undirected graph is shown. How many edges |E| does the graph have?

|E| =
2.Easy

How many edges |E| does the complete bipartite graph K4,10 have?

K4,10
|E| =
3.Medium

How many different Hamilton circuits H does the complete graph K5 have? Circuits that differ only in the starting vertex or the direction count as the same.

K5
H =
4.Medium

How many different Hamilton circuits H does the complete graph K8 have? Circuits that differ only in the starting vertex or the direction count as the same.

K8
H =
5.Hard
21516910146ABCDE

Prim’s algorithm builds a minimum spanning tree starting from vertex A. Click the edge it adds as edge number 4.

start: Ak = 4
  1. 1edge AB
  2. 2edge AC
  3. 3edge BC
  4. 4edge BD
  5. 5edge CE
  6. 6edge DE
  7. 7edge BE
6.Hard
171911141031320ABCDEF

Prim’s algorithm builds a minimum spanning tree starting from vertex B. Click the edge it adds as edge number 5.

start: Bk = 5
  1. 1edge AB
  2. 2edge AC
  3. 3edge BC
  4. 4edge BD
  5. 5edge CE
  6. 6edge DE
  7. 7edge EF
  8. 8edge BE

Answer key

  1. 1. |E| = 4
  2. 2. |E| = 40
  3. 3. H = 12
  4. 4. H = 2520
  5. 5. edge CE
  6. 6. edge AB

Full step-by-step solutions: practise this topic on examproblems.com.