Skip to content
Monday, November 30, 2026Ideas worth exploring. Knowledge worth sharing.
S. SenseCentralDISCOVER EVERY DAY
Graph Theory & Applications

Spanning Tree of a Graph

Spanning tree of a graph is a subgraph of it which forms a tree and contains (or spans) all the vertices of the graph.

So if the given graph GG has nn vertices, we’re looking for a subgraph of GG which

  • has nn vertices
  • has n−1n−1 edges
  • is connected

Note: The graph itself must be connected in order to obtain its spanning tree.

So if the graph is connected, we just need to delete some of its edges so that there is no cycle and it remains connected.

In these excercises, your aim is to reduce the number of edges to n−1n−1 while keeping the graph connected.

On solving the problems, you will realize that spanning tree of a graph isn’t unique

Author

  • A senior editor for The Mars that left the company to join the team of SenseCentral as a news editor and content creator. An artist by nature who enjoys video games, guitars, action figures, cooking, painting, drawing and good music.

WRITTEN BY

Taylor Emma

A senior editor for The Mars that left the company to join the team of SenseCentral as a news editor and content creator. An artist by nature who enjoys video games, guitars, action figures, cooking, painting, drawing and good music.

More from this author ↗

Leave a Reply

Your email address will not be published. Required fields are marked *