Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/devonfulcher/kirchhoffs-theorem

An algorithm that returns the number of distinct spanning trees in a graph where nodes are distinguishable in O(n^3)
https://github.com/devonfulcher/kirchhoffs-theorem

algorithm graph graphs spanning-trees

Last synced: about 1 month ago
JSON representation

An algorithm that returns the number of distinct spanning trees in a graph where nodes are distinguishable in O(n^3)

Awesome Lists containing this project

README

        

# Kirchhoffs-Theorem

This code finds the number of distinct spanning trees of a graph where vertices are distinct given its adjacency matrix. There are no safeguards in this code. Invalid inputs will output nonsense. Finding the number of spanning trees of a graph takes O(n^3) time. There are more details in the files themselves.