
Count spanning trees
count_spanning_trees.RdCounts the number of spanning trees of a connected undirected graph using Kirchhoff's matrix tree theorem: the count equals the determinant of any (n-1) x (n-1) cofactor of the graph Laplacian.
Value
A numeric scalar. (Integer-valued but returned as numeric since
counts can exceed .Machine$integer.max for dense graphs.)
See also
enumerate_spanning_trees() to list all spanning trees.