Can anyone write a program on python which calculates the number of spanning trees of a graph, having as input the adjacency matrix of the graph?

spanningtrees.pdf