wiz-icon
MyQuestionIcon
MyQuestionIcon
2
You visited us 2 times! Enjoying our articles? Unlock Full Access!
Question

How many edges must be removed from a connected graph with n vertices and m edges to produce a spanning tree?


Open in App
Solution

Determine to find how many edges must be removed from a connected graph:

A spanning tree of a simple graph G is a subgraph of G that is a tree and that contains all vertices of G.

Given that connected graph G with n vertices and m edges.
The spanning tree contains n vertices because the spanning tree of G must have the same vertices as G.
A tree with n vertices has n-1 edges.
The number of edges that need to be removed is then the difference between the number of edges in G and the number of edges in the spanning tree is,
m-(n-1)=m-n+1edges.

Hence, m-(n-1)=m-n+1edges must be removed from a connected graph with n vertices and m edges to produce a spanning tree.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Solids and Their Classification
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon