in Algorithms retagged by
421 views
1 vote
1 vote

Determine the number of the spanning treess in the following graph ???

in Algorithms retagged by
421 views

1 Answer

1 vote
1 vote
Number of Spanning Trees: 2911

This can be solved by Kirchoff's Matrix Tree Theorem :

  1. Make a matrix. (Rows = Columns = Total Vertices)
     
  2. For i != j , if i & j are adjacent vertices,
    then M[i][j] = -1,

    if not M[i][j] = 0

    For i == j, M[i][j] = degree of vertex

     
  3. Last, Calculate the co-factor for any element. The cofactor that you get is the total number of spanning trees for that graph.

 

 

1 comment

Thanks for the explanation.
0
0

Related questions