networks(deprecated)/counttrees - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : networks(deprecated)/counttrees

networks

  

counttrees

  

counts spanning trees of an undirected graph

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

counttrees(G)

Parameters

G

-

graph or network

Description

• 

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](...).

Examples

Important: The networks package has been deprecated.  Use the superseding package GraphTheory instead.

> 

with⁡networks:

> 

G≔petersen⁡:

> 

counttrees⁡G

2000

(1)
> 

K34≔complete⁡3,4:

> 

counttrees⁡K34

432

(2)

See Also

GraphTheory

GraphTheory[LaplacianMatrix]

networks(deprecated)

networks(deprecated)[spantree]