Spanning tree of a graph G is a tree hold following properties:
1. Number of vertex in graph G = Number of vertex in spanning tree.
2. If n = Number of vertex in graph G than spanning tree has (n-1) edges.
3. Spanning tree does not have any cycle.
Example: