Explanation : In adjacency matrix if diagonal elements are 0’s
and non-diagonal are 1’s then it is complete graph
and in complete graph of n vertices total nn–2
Spanning trees are possible and cost of each tree.
is (n – 1) because for n vertex graph, (n – 1) edges
required in a tree.