Skip to main content
Logo image

Exercises 16.8 Exercises

1.

Prove that if a graph contains a closed trail then it also contains a proper cycle.

Spanning trees.

For each of the graphs in Exercises 2–3, draw a spanning tree by inspection.

2.

An example graph for a spanning tree exercise.

3.

An example graph for a spanning tree exercise.

Reducing to a spanning tree.

For each of the graphs in Exercises 4–5, use the following algorithm to obtain a spanning tree.
  • If the graph contains a proper cycle, remove one edge of that cycle.
  • If the resulting subgraph contains a proper cycle, remove one edge of that cycle.
  • If the resulting subgraph contains a proper cycle, remove one edge of that cycle.
  • etc..
  • Continue until there are no proper cycles left.

4.

An example graph for a spanning tree exercise.

5.

An example graph for a spanning tree exercise.

Depth-first and breadth-first spanning trees.

For each of the graphs in Exercises 6–8, determine both a depth-first and breadth-first spanning tree. Use any vertex you like as the starting node.

6.

An example graph for a spanning tree exercise.

7.

An example graph for a spanning tree exercise.

8.

An example graph for a spanning tree exercise.