The adjacency matrix of a simple undirected graph is shown. Find the degree deg(B) of vertex B.
Graph theory worksheet with answers
1.Easy
deg(B) =
2.Easy
A simple graph has 7 vertices with degrees 4, 3, 3, 3, 2, 2, 1. How many edges |E| does it have?
deg: 4, 3, 3, 3, 2, 2, 1
|E| =
3.Medium
Does the connected graph have an Euler circuit, an Euler path that is not a circuit, or neither? Click your answer.
|V| = 6|E| = 6
- 1Euler circuit
- 2Euler path, no circuit
- 3neither
4.Medium
A connected graph has 13 vertices and 16 edges. How many edges k must be removed to leave a spanning tree?
|V| = 13|E| = 16
k =
5.Hard
Kruskal’s algorithm builds a minimum spanning tree. Click the edge it adds as edge number 4; skipped edges do not count.
k = 4
- 1edge AB
- 2edge AC
- 3edge BD
- 4edge DE
- 5edge DF
- 6edge EF
- 7edge GB
- 8edge GC
- 9edge GD
- 10edge GE
6.Hard
Use Dijkstra’s algorithm to find the length d(D) of the shortest path from A to D in the weighted graph.
start: Aend: D
d(D) =
Answer key
- 1. deg(B) = 2
- 2. |E| = 9
- 3. neither
- 4. k = 4
- 5. edge GE
- 6. d(D) = 14
Full step-by-step solutions: practise this topic on examproblems.com.