Summing over trees (Matrix Tree Theorem)

SumTree(W)

Arguments

W

Squared weight matrix

Value

The number of total possible spanning trees

Examples

uniformeW=matrix(1,3,3) SumTree(uniformeW)
#> [1] 3