Hi!
i am trying to solve this problem KPMAZE-Maze on spoj .. which i could summarize to count the number of spanning trees in a small graph (at most 25 nodes)...i tried Kirchhoff Theorem but i couldn't calculate the cofactor of Laplacian matrix..any ideas or code.
Auto comment: topic has been updated by Mohamed.Sobhy (previous revision, new revision, compare).
Kirchhoff's theorem
Like..it doesn't work with me..maybe I should try backtracking
Maybe this presents the theorem in a more friendly/easier way.