The term tree number is used in more than one sense in graph theory.
In this entry, the tree number of a graph refers to the number of its spanning
trees (Kook 2011, p. 417). The same quantity is also called the graph complexity
or simply the complexity of
(Harary and Palmer 1973, p. 268), and is commonly denoted
or
. This graph property is implemented as GraphData[graph,
"SpanningTreeCount"].
In another usage, the tree number of a graph is the minimum number of tree subgraphs whose edge sets partition
the edge set of
(Vanetik 2009, p. 1). This edge-partition convention
is related to arboricity, but differs from it because
arboricity partitions the edge
set into forests rather than into individual trees.
An edgeless graph has tree number 0 in this convention.
The edge-partition convention is implemented as GraphData[graph,
"TreeNumber"].
The following table summarizes the tree numbers (i.e., spanning tree counts) of various named classes of graphs. The
index of each value list in the table starts at 1. An X indicates that the family
in that row is not defined for the corresponding parameter value. The king, knight,
queen, rook, and fiveleaper rows use boards, and the fan row uses
.
| class | OEIS | tree numbers |
| Andrásfai graph | A193126 | 1, 5, 392, 130691, 116268789, 217138318913, ... |
| antiprism graph | A193127 | X, X, 384, 3528, 30250, 248832, 1989806, ... |
| Apollonian network | A193128 | 16, 1445, 487350000, 6820689973308563232421875, ... |
| barbell graph | A193129 | X, X, 9, 256, 15625, 1679616, 282475249, ... |
| book
graph | A006234 | 4, 15, 54, 189, 648, 2187, 7290, 24057, ... |
| cocktail party graph | A193130 | 0, 4, 384, 82944, 32768000, 20736000000, ... |
| complete graph | A000272 | 1, 1, 3, 16, 125, 1296, 16807, 262144, ... |
| complete bipartite graph | A068087 | 1, 4, 81, 4096, 390625, 60466176, 13841287201, ... |
| complete tripartite graph | A193131 | 3, 384, 419904, 1610612736, 15000000000000, ... |
| crossed prism graph | A193132 | X, X, X, 384, X, 9216, X, 196608, X, 3932160, ... |
| crown graph | A193133 | X, X, 6, 384, 40500, 6635520, 1575656250, ... |
| cube-connected cycle graph | X, X, 32400000, 5068660643117137920000, ... | |
| cycle graph | A000027 | X, X, 3, 4, 5, 6, 7, 8, 9, 10, ... |
| fan graph | 1, 8, 216, 13056, 1409375, ... | |
| fiveleaper graph | 1, 0, 0, 0, 0, 0, 0, 331898989520947048842445518274560, ... | |
| folded cube graph | A193134 | X, 1, 16, 4096, 2147483648, 14167099448608935641088, ... |
| gear graph | A129743 | X, X, 50, 192, 722, 2700, 10082, 37632, 140450, 524172 |
| grid
graph | A007341 | 1, 4, 192, 100352, 557568000, 32565539635200, ... |
| grid graph | A071763 | 1, 384, 8193540096000, ... |
| halved cube graph | A193135 | 1, 1, 16, 82944, 126806761930752, ... |
| Hanoi graph | A193136 | 3, 135, 20503125, 119709242282867431640625, ... |
| helm graph | A004146 | X, X, 16, 45, 121, 320, 841, 2205, 5776, 15125, ... |
| hypercube graph | A006237 | 1, 4, 384, 42467328, 20776019874734407680, ... |
| king graph | 1, 16, 17745, 1064918960, 3271331573452800, ... | |
| knight graph | 1, 0, 0, 144000, 136323072000, 5398085382092881920, ... | |
| ladder graph | A001353 | 1, 4, 15, 56, 209, 780, 2911, 10864, 40545, 151316, ... |
| Möbius ladder | A020871 | X, X, 81, 392, 1815, 8112, 35301, 150544, 632043, ... |
| Mycielski graph | A193148 | 1, 1, 5, 38642, 3568248132106250, ... |
| odd graph | A193149 | 1, 3, 2000, 336140000000000000, ... |
| pan graph | A000027 | X, X, 3, 4, 5, 6, 7, 8, 9, 10, ... |
| path graph | A000012 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ... |
| permutation star graph | A193150 | 1, 1, 6, 162000000, ... |
| prism graph | A006235 | X, X, 75, 384, 1805, 8100, 35287, 150528, ... |
| queen graph | 1, 16, 541205, 54711160897536, ... | |
| rook graph | A193137 | 1, 4, 11664, 34359738368, 156250000000000000000, ... |
| star graph | A000012 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ... |
| sun graph | A193152 | X, X, 54, 600, 9610, 202800, 5329646, 167968080, ... |
| sunlet graph | A000027 | X, X, 3, 4, 5, 6, 7, 8, 9, 10 |
| tetrahedral Johnson graph | X, X, X, X, X, 96745881600000000, ... | |
| triangular graph | A193154 | X, 1, 3, 384, 2048000, 518400000000, ... |
| web graph | A006235 | X, X, 75, 384, 1805, 8100, 35287, 150528, ... |
| wheel graph | A004146 | X, X, X, 16, 45, 121, 320, 841, 2205, ... |
Closed forms for tree numbers of various named classes of graphs are given in the table below, where is the golden ratio,
is a Lucas
number,
is a Chebyshev polynomial of the
second kind, and
is a Gegenbauer polynomial.
was considered by Koshy (2001) and Alikhani and Ghanbari
(2024, pp. 3-4). In the latter source, the wheel
graph parameter counts rim vertices, so its
is this work's
on
vertices. The formulas apply
where their named graphs are defined:
for antiprisms, cycles, helms, Möbius ladders,
pans, prisms, and sunlets;
for wheels; and even
for crossed prisms. The other formulas use positive
integer
,
with the empty product equal to 1 at singleton graph
instances of the grid graph.