networks
counttrees
counts spanning trees of an undirected graph
Calling Sequence
Parameters
Description
Examples
counttrees(G)
G
-
graph or network
Important: The networks package has been deprecated. Use the superseding package GraphTheory instead.
This procedure uses the Kirchhoff Matrix-Tree theorem to count spanning trees of G.
This routine is normally loaded via the command with(networks) but may also be referenced using the full name networks[counttrees](...).
with⁡networks:
G≔petersen⁡:
counttrees⁡G
2000
K34≔complete⁡3,4:
counttrees⁡K34
432
See Also
GraphTheory
GraphTheory[LaplacianMatrix]
networks(deprecated)
networks(deprecated)[spantree]
Download Help Document