Spanning Tree of a Graph

Taylor Emma
1 Min Read
Disclosure: This website may contain affiliate links, which means I may earn a commission if you click on the link and make a purchase. I only recommend products or services that I personally use and believe will add value to my readers. Your support is appreciated!

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

Share This Article
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.
Leave a review