Skip to content

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

Notifications You must be signed in to change notification settings

ddsuhaimi/spanning_grid_counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages