https://www.geeksforgeeks.org/total-number-spanning-trees-graph/