in Algorithms retagged by
1,337 views
4 votes
4 votes
Consider the following adjacency matrix representation of connected graph then find the number of spanning trees are possible for the given graph
$\begin{bmatrix} 0&1&1&1&0 \\  1&0&1&1&0 \\1&1&0&0&1 \\ 1&1&0&0&1 \\0&0&1&1&0 \end{bmatrix}$
in Algorithms retagged by
1.3k views

1 comment

24 ?
1
1

1 Answer

8 votes
8 votes
Best answer

Here one more loop containing number of edges = 4 which is 1 - 3 - 2 - 4 - 1 ..So this has to be subtracted as well

Hence number of spanning trees should be equal to 24

edited by

4 Comments

Ya I agree that depends on perspective as well..As Kirchoff's method also involves matrix operations so it will also take time possibly for larger graphs..:)
1
1
Yes, but always give preference to a method which is less error prone even if a bit more time consuming.
5
5
Ok sir..Agreed..:)
0
0