A simple graph has 6 vertices with degrees 3, 3, 2, 2, 1, 1. How many edges |E| does it have?
Graph theory worksheet with answers
1.Easy
deg: 3, 3, 2, 2, 1, 1
|E| =
2.Easy
The adjacency matrix of a simple undirected graph is shown. Find the degree deg(D) of vertex D.
deg(D) =
3.Medium
A connected graph has 13 vertices and 20 edges. How many edges k must be removed to leave a spanning tree?
|V| = 13|E| = 20
k =
4.Medium
A tree has 3 vertices of degree 3, 2 vertices of degree 2, and all its other vertices are leaves (degree 1). How many leaves L does it have?
3 × deg 32 × deg 2
L =
5.Hard
Dijkstra’s algorithm runs from A. Click the vertex that is settled (made permanent) in round 5; A itself is round 1.
start: Around 5
- 1A
- 2B
- 3C
- 4D
- 5E
- 6F
6.Hard
Prim’s algorithm builds a minimum spanning tree starting from vertex B. Click the edge it adds as edge number 4.
start: Bk = 4
- 1edge AB
- 2edge AC
- 3edge BC
- 4edge BD
- 5edge CE
- 6edge DE
- 7edge BE
Answer key
- 1. |E| = 6
- 2. deg(D) = 3
- 3. k = 8
- 4. L = 5
- 5. F
- 6. edge AC
Full step-by-step solutions: practise this topic on examproblems.com.