This patch allows us to count the number of spanning trees in a simple graph, as well as the spanning out-trees from a user-defined root node in a digraph.
Method used: Kirchhoff's matrix tree theorem [1] and the Laplacian matrix for the simple graphs, and a variation of the same [2] in the directed case.
[1] http://en.wikipedia.org/wiki/Kirchhoff%27s_theorem
[2] corollary 4.4 in http://books.google.se/books?id=vbxdqhDKOSYC&printsec=frontcover&hl=en&source=gbs_navlinks_s
CC: @boothby
Component: graph theory
Author: Anders Jonsson, Nathann Cohen
Reviewer: Mike Hansen
Merged: sage-4.3.rc0
Issue created by migration from https://trac.sagemath.org/ticket/7184
This patch allows us to count the number of spanning trees in a simple graph, as well as the spanning out-trees from a user-defined root node in a digraph.
Method used: Kirchhoff's matrix tree theorem [1] and the Laplacian matrix for the simple graphs, and a variation of the same [2] in the directed case.
[1] http://en.wikipedia.org/wiki/Kirchhoff%27s_theorem
[2] corollary 4.4 in http://books.google.se/books?id=vbxdqhDKOSYC&printsec=frontcover&hl=en&source=gbs_navlinks_s
CC: @boothby
Component: graph theory
Author: Anders Jonsson, Nathann Cohen
Reviewer: Mike Hansen
Merged: sage-4.3.rc0
Issue created by migration from https://trac.sagemath.org/ticket/7184