Close
Close window
NumberOfSpanningTrees - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

GraphTheory

NumberOfSpanningTrees

number of spanning trees of graph

Calling Sequence

NumberOfSpanningTrees(G)

Parameters

G

-

graph

Description

NumberOfSpanningTrees(G) returns the number of labeled spanning trees of the graph G.

The strategy is to evaluate the determinant of a certain matrix related to the graph. (See Introduction to Graph Theory, by Douglas B. West)

Examples

>

withGraphTheory:

>

K3CompleteGraph3

K3Graph 1: an undirected graph with 3 vertices and 3 edges

(1)
>

NumberOfSpanningTreesK3

3

(2)
>

K4CompleteGraph4

K4Graph 2: an undirected graph with 4 vertices and 6 edges

(3)
>

NumberOfSpanningTreesK4

16

(4)

See Also


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /