An open API service indexing awesome lists of open source software.

https://github.com/ddsuhaimi/spanning_grid_counter

A script to count spanning trees in an m by n grid graph
https://github.com/ddsuhaimi/spanning_grid_counter

graph spanning-trees

Last synced: over 1 year ago
JSON representation

A script to count spanning trees in an m by n grid graph

Awesome Lists containing this project

README

          

# Calculate number of spanning tree of a grid graph
The code uses matrix tree theorem. Basically, we compute adjacency matrix and then form Laplacian matrix. We then compute any cofactor of said Laplacian matrix. The result is the number of spanning trees.