Problem Solving

Spanning Tree

Pupils highlight a branching set of routes on a town map.

Spanning Tree definition

A spanning tree is a subgraph that contains all the original graph’s vertices and is a tree.

In Spanish
árbol de expansión
Topic
Graph theory

Spanning Tree in a picture

Spanning Tree diagramThe three solid edges form one spanning tree. The dashed edge is left out.ABCD
The three solid edges form one spanning tree. The dashed edge is left out.

How it works

Start with a connected graph. Delete an edge from a cycle while keeping all the vertices. The other edges in that cycle still connect its endpoints. Repeat until no cycles remain. The result contains n − 1 edges when the original graph has n vertices.

Worked examples

Give a spanning tree of a triangle.

Keep all three vertices and any two edges.

Can a disconnected graph have a spanning tree?

No. Removing edges cannot join its separate components.

How many edges are in a spanning tree on nine vertices?

Eight.

Common mistake

Keep all the vertices, including any leaf vertices. A spanning tree may omit edges only.

Quick check

Can there be more than one spanning tree?

Show answer

Yes.

Does a spanning tree contain a cycle?

Show answer

No.

If the original graph is already a tree, what is its spanning tree?

Show answer

The original tree itself.

Sources

Flashcard

Spanning Tree

Reveal the definition

A spanning tree is a subgraph that contains all the original graph’s vertices and is a tree.

Effortless Math. “Spanning Tree.” Math Dictionary.