How many edges must be removed from a connected graph with vertices and edges to produce a spanning tree?
Determine to find how many edges must be removed from a connected graph:
A spanning tree of a simple graph is a subgraph of that is a tree and that contains all vertices of .
Given that connected graph with vertices and edges.
The spanning tree contains vertices because the spanning tree of must have the same vertices as .
A tree with vertices has edges.
The number of edges that need to be removed is then the difference between the number of edges in and the number of edges in the spanning tree is,
.
Hence, must be removed from a connected graph with vertices and edges to produce a spanning tree.