in Algorithms edited by
3,027 views
1 vote
1 vote

Find the number of spanning trees in the following graph;

in Algorithms edited by
3.0k views

4 Comments

Bro they have followed same approach..see the BEST ans.
0
0
Yes, it is same but could not understand the part of selecting cycles of length 3,4 and 5?

Would you please elaborate that ?
1
1
Plz tag me @ that question . Else people will misinterprete this question.
0
0

1 Answer

7 votes
7 votes
Best answer

Spanning Trees of above graph means

  1. Subgraph of given graph
  2. It should be edge cover
  3. It should be a tree

Here tree Contains n-1 Edges =5 Edges

Total edges in the graph=7

Here No of Spanning tree = All possible Subgraphs which contains 5 edges out of 7 edges  -  5edged Subgraph but not Spanning tree due to presence of  Cycle 

 So No. Of spanning tree= 7C5 - (3+3)= 21-6=15 is Ans

The following 6 subgraphs are 5-edged but not spanning tree bcz they contain cycle

So Ans is 15

selected by

2 Comments

Can you please tell me why you subtracted 6?
0
0
Spanning tree should never contain cycles but above drawn 6 subgraphs violates this property. So they are excluded.

Take any subgraph having 5edges except this 6 drawn graphs..It is a spanning tree.
0
0

Related questions