1,159
Views
0
CrossRef citations to date
0
Altmetric
Research Articles

Number of spanning trees of some families of graphs generated by a triangle

ORCID Icon
Pages 731-739 | Received 10 Sep 2018, Accepted 28 May 2019, Published online: 14 Jun 2019

ABSTRACT

In mathematics, one always tries to get new structures from given ones. This also applies to the realm of graphs, where one can generate many new graphs from a given set of graphs. In this paper, we derive simple formulas of spanning trees of some families of graphs generated by triangle using linear algebra and the knowledge of difference equations. Finally, we compare the entropy of our graphs with other studied graphs with the average degree being 4 and 6.

MATHEMATICS SUBJECT CLASSIFICATIONS:

1. Introduction

The problem of calculating the number of spanning trees on the graph G is an important, well-studied problem in graph theory. Deriving formulas for different types of graphs can be proved to be helpful in identifying those graphs that contain the maximum number of spanning trees. Such an investigation has practical consequences related to the network. Thus for both theoretical and practical purpose, we interested to deriving formulas for the number of spanning trees of a graph based on its time complexity in order to calculate the formula. Many cases have been examined depending on the choice of G. It has been studied when G is labelled molecular graph [Citation1], when G is a circulant graph [Citation2], when G is a complete multipartite graph [Citation3], when G is a cubic cycle and quadruple cycle graph [Citation4], when G is a threshold graph [Citation5] and so on. A spanning tree of G is a minimal connected subgraph of G that has the same vertex set as G. The number of spanning trees in G, also called, the complexity of the graph, denoted by τ(G). A classical result of Kirchhoff [Citation6] can be used to determine the number of spanning trees for G=(V,E). Let V={v1,v2,..,vn}, then the Kirchhoff matrix H defined as n×n characteristic matrix H=DA, where D is the diagonal matrix of the degrees of G and A is the adjacency matrix of G, H=[aij] defined as follows: (i) aij=1, vi and vj are adjacent and ij, (ii) aij equals the degree of vertex vi if i=j, and (iii) aij=0 otherwise. All of cofactors of H are equal to τ(G).

There are other methods for calculating τ(G). Let μ1μ1.μp denote the eignvalues of H matrix of a p point graph. Then, it is easily shown that μp=0. Furthermore, Kelmans and Chelnokov [Citation7] shown that τ(G)=1pk=1p1μk. The formula for the number of spanning trees in a d-regular graph G can be expressed as τ(G)=1pk=1p1(dλk), where λ0=d,λ1,λ2,.,λp1 are the eigenvalues of the corresponding adjacency matrix of the graph. However, for a few special families of graphs, there exist simple formulas that make it much easier to calculate and determine the number of corresponding spanning trees, especially when these numbers are very large.

One of the first such results is due to Cayley [Citation8] showed that complete graph on n vertices, Kn, has nn2,n2 spanning trees. Another result, the complete bipartite graph Kp,q with bipartite sets containing p and q vertices has pq1qp1,p,q1 spanning trees [Citation9,Citation10]. Another result is due to Sedlacek [Citation11] derived a formula for the wheel with n+1 vertices, Wn+1, has (3+52)n+(352)n2,n2 spanning trees. Sedlacek [Citation12] also later derived a formula for the number of spanning trees in a Mobius ladder with n vertices,Mn, has n2[(2+3)n+(23)n+2],n2 spanning trees.

Another class of graphs for which an explicit formula has been derived is based on a prism [Citation13,Citation14].

Many works have conceived techniques to derive the number of spanning tree of a graph, which can be found at [Citation15–23].

Now we introduce following Lemma which describes a way to calculate the number of spanning trees by an extension of Kirchhoff formula.

Lemma 1.1

[Citation24]

Let G be a graph with n vertices. Then τ(G)=1n2det(nID¯+A¯)where A¯,D¯ are the adjacency and degree matrices of G¯, the complement of G, respectively, and I is the n×n unit matrix.

The advantage of this formula in Lemma1.1 is to express τ(G) directly as a determinant rather than in terms of cofactors as in Kirchhoff theorem or eigenvalues as in Kelmans and Chelnokov formula.

2. Main results

In mathematics, one always tries to get new structures from given ones. This also applies to the realm of graphs, where one can generate many new graphs from a given set of graphs. In this section, we derive simple formulas of the complexity, number of spanning trees, of four families of graphs generated by a triangle say Gn,Hn,Xn and Yn.

Consider the family of graphs Gn generated by triangle and constructed as shown in Figure .

Figure 1. The graph Gn.

Figure 1. The graph Gn.

According to the construction, the number of total vertices |V(Gn)| and edges |E(Gn)| are |V(Gn)|=3n+1 and |E(Gn)|=6n,n=1,2,.

It is clear that the average degree of Gn is in the large n limit is 4.

Theorem 2.1:

For n1, the number of spanning trees of the graph Gn is given by 7+21145+212n+721145212n2.Proof: The Kirchhoff matrix associated to the graph Gn is

H=31001014100100100041000130110041000100000100110010000000010010001000001001010004101300104100100041010013

Thus, we get: τ(Gn)=41001010004100130100410010000100100100000010010000010010100004101300104100100041010013

Then we have τ(Gn)=detABBBABBBA=[det(AB)]2[det(A+2B)] =(det51001500510014)2×det21001200210011Straightforward induction using properties of determinants, we have det(A+2B)=1, and by expanding the first five determinants of the matrix AB, yields

det(AB) has the values 4,19,91,436,2089, for n=1,2,3,4,5,

These values can be written in the form: 4=5×11,19=5×41,91=5×194,436=5×9119,2089=5×43691,.Thus we have the following recurrence relation (1) an+2=5an+1an.(1) Its characteristic Equation is r25r+1=0 with two roots being 5+212 and 5212.

The general solution of the recurrence relation (1) is det(AB)=α5+212n+β5212nUsing the initial condition det(AB)=4 and det(AB)=19 at n=1and2, respectively. We have 4=α5+212+β5212, 19=α5+2122+β52122Solving these equations, we get α=7+2114 and β=72114, therefore det(AB)=7+21145+212n+721145212n.Thus τ(Gn)=7+21145+212n+721145212n2.Consider the family of graphs Hn generated by a triangle and constructed as shown in Figure .

Figure 2. The graph Hn.

Figure 2. The graph Hn.

According to the construction, the number of total vertices |V(Hn)| and edges |E(Hn)| are |V(Hn)|=3n and |E(Hn)|=6n3,n=1,2,.

It is clear that the average degree of Hn is in the large n limit is 4.

Theorem 2.2:

For n1, the number of spanning trees of the graph Hn is given by 321+521425+212n1+21521425212n12.Proof: Applying Lemma 1.1, we have: τ(Hn)=1(3n)2det(3nID¯+A¯)

=1(3n)2det40110105111501104101140110511110110110111111011011111011010111150104110140110511150101104

Thus, we get: τ(Hn)=1(3n)2detABBBABBBA=1(3n)2[det(AB)]2[det(A+2B)] =1(3n)2det410015005100142×det42332533523324Straightforward induction using properties of determinants, we have det(A+2B)=3n2, and by expanding the first six determinants, yields

det(AB) has the values 15,72,345,1653,7920,12649 for n=2,3,4,5,6,7,

These values can be written in the form: 15=5×3,72=5×153,345=5×7215,1653=5×34572,7920=5×1653345,.Thus we have the following recurrence relation (2) an+2=5an+1an.(2) Its characteristic Equation is r25r+1=0 with two roots being 5+22 and 5+22.

The general solution of the recurrence relation (2) is det(AB)=α5+212n1+β5212n1Using the initial condition det(AB)=15 and det(AB)=75 at n=2and3, respectively. We have 5=α5+212+β5212, 24=α(5+212)2+β(5212)2Solving these equations, we get α=21+52142 and β=2152142, therefore

det(AB)=321+521425+212n1+21521425212n1.Thus τ(Hn)=321+521425+212n1+21521425212n12.Consider the family of graphs Xn generated by the triangle and constructed as shown in Figure .

Figure 3. The graph Xn.

Figure 3. The graph Xn.

According to the construction, the number of total vertices |V(Xn)| and edges |E(Xn)| are |V(Xn)|=3n and |E(Xn)|=6n3,n=1,2,.

It is clear that the average degree of Xn is in the large n limit is 4.

Theorem 2.3: For n1, the number of spanning trees of the graph Xn is given by 2n112332+3n+3+323n2.Proof: Applying Lemma 1.1, we have: τ(Xn)=1(3n)2det(3nID¯+A¯) =1(3n)2det ×311101110111500111151001131101110110113111011015011110510110111311011011101131100151111005111011101113Thus, we get: τ(Xn)=1(3n)2detABBBABBBA=1(3n)2[det(AB)]2[det(A+2B)] =1(3n)2det210014004100152×det51331733713315Straightforward induction using properties of determinants, we have det(A+2B)=3n2×2n1, and by expanding the first five determinants, yields

det(AB) has the values 9,33,123,459,1713, for n=2,3,4,5,6,

These values can be written in the form: 9=3(4×11),33=3(4×31),123=3(4×113),459=3(4×4111),1713=3(4×15341),Thus we have the following recurrence relation (3) an+2=4an+1an.(3) Its characteristic Equation is r24r+1=0 with two roots being 2+3 and 23.

The general solution of the recurrence relation (3) is det(AB)=3[α(2+3)n+β(23)n]Using the initial condition det(AB)=9 and det(AB)=33 at n=2and3, respectively. We have 3=α(2+3)+β(23), 11=α(2+3)2+β(23)2Solving these equations, we get α=336 and β=3+36, therefore

det(AB)=33362+3n+3+3623n.Thus τ(Xn)=1(3n)2×3n2×2n1×336(2+3)n+3+36(23)n2=2n112[(33)(2+3)n+(3+3)(23)n]2.Consider the family of graphs Yn generated by triangle and constructed as shown in Figure .

Figure 4. The graph Yn.

Figure 4. The graph Yn.

According to the construction, the number of total vertices |V(Yn)| and edges |E(Yn)| are |V(Yn)|=3n and |E(Yn)|=9n6,n=1,2,.

It is clear that the average degree of Yn is in the large n limit is 6.

Theorem 2.4:

For n1, the number of spanning trees of the graph Yn is given by 3×2n15+35107+352n1+535107352n12.

Proof: Applying Lemma 1.1, we have: τ(Yn)=1(3n)2det(3nID¯+A¯) =1(3n)2det 511001100111700111171001151100110000115110011017011110710110011511000011001151100171111007111001100115Thus, we get: τ(Yn)=1(3n)2detABBBABBBA=1(3n)2[det(AB)]2[det(A+2B)] =1(3n)2det510017007100152×det51331733713315Straightforward induction using properties of determinants, we have det(A+2B)=3n2×2n1, and by expanding the first six determinants, yields

det(AB) has the values 24,165,1131,7752,53133,364179, for n=2,3,4,5,6,7,

These values can be written in the form: 24=3×8,165=3×55=3(7×81),1131=3×377=3(7×558),7752=3×2584=3(7×37755),53133=3×17711=3(7×2584377),364179=3×121393=3(7×177112584),Thus we have the following recurrence relation (4) an+2=7an+1an.(4) Its characteristic Equation is r27r+1=0 with two roots being 7+352 and 7352.

The general solution of the recurrence relation (4) is det(AB)=3α7+352n1+β7352n1Using the initial condition det(AB)=24 and det(AB)=165 at n=2and3respectively. We have 8=α7+352+β7352, 55=α7+3522+β73522Solving these equations, we get α=5+3510 and β=53510, therefore

det(AB)=35+35107+352n1+535107352n1.Thus τ(Yn)=1(3n)2×3n2×2n1×9×5+35107+352n1+535107352n12=3×2n15+35107+352n1+535107352n12.

3. Numerical results

The following table illustrates some of the values of the number of spanning trees in the graphs Gn,Hn,Xn and Yn (Table ).

Table 1. Some values of τ(Gn),τ(Hn),τ(Xn) and τ(Yn).

It is clear from the table that the number of the graph Yn of average degree 6 is larger than the other three graphs Gn,Hn,Xn of average degree 4 at different values of n2.

In addition, the number of spanning trees of the graph Gn is larger than the number of spanning trees of the graphs Hn and Xn of the same average degree 4 at different values of n2.

4. Spanning tree entropy

The spanning tree entropy is a quantitative measure of the robustness of a network based on its complexity.

After having explicit Formulas for the number of spanning trees of the sequence of the four graphs Gn,Hn,Xn and Yn, we can calculate its spanning tree entropy Z which is a finite number and a very interesting quantity characterizing the network structure, defined as in [Citation4,Citation12] as: For a graph G, (5) Z(G)=limnlnτ(G)|V(G)|.(5) Z(Gn)=23ln25+21=1.044532825. Z(Hn)=23ln25+21=1.044532825. Z(Xn)=13ln[2]+2ln2+3=1.109020991. Z(Yn)=13ln[2]+2ln7+35=1.514280594.

Now we compare the value of entropy in our graphs with other graphs. It is clear that the entropy of the graph Yn of average degree 6 is larger than the entropy of the other three graphs Gn,Hn,Xn of average degree 4. In addition, the entropy of the graph Xn is larger than the entropy of the two graphs Gn and Hn of the same average degree 4. Also the entropy of the graph Yn is larger than the entropy of the Apollonian graph [Citation25] which has the entropy 1.3540 of the same average degree 6. Finally, the entropy of our first three graphs Gn,Hn,Xn is larger than the entropy of fractal scale-free lattice [Citation26] which has the entropy 1.040.

5. Conclusions

The number of spanning trees in graphs (networks) is an important invariant. The evaluation of this number is not only interesting from a mathematical (computational) perspective, but also, it is an important measure of reliability of a network and designing electrical circuits. Some computationally hard problems such as the travelling salesman problem can be solved approximately by using spanning trees. In this work, we compute the number of spanning trees of some families of graphs generated by triangle using linear algebra and knowledge of difference equations.

Acknowledgments

The author is grateful to the anonymous reviewers for their helpful comments and suggestions toward improving the original version of the paper.

Disclosure statement

No potential conflict of interest was reported by the author.

References

  • Brown TJ, Mallion RB, Pollack P, et al. Some methods for counting the spanning trees in labeled molecular graphs, examined in relation to certain fullerenes. Discrete Appl. Math. 1996;67:51–66. doi: 10.1016/0166-218X(96)85158-4
  • Zang Y, Yong X, Golin MJ. The number of spanning trees in circulant graphs. Discrete Math. 2000;223:337–350. doi: 10.1016/S0012-365X(99)00414-8
  • Yan WM, Myrnold W, Chung KL. A fromula for the number of spanning trees for a multi-star related graph. Inform. Process. Lett. 1998;68:295–298. doi: 10.1016/S0020-0190(98)00175-6
  • Xue-rong Yang T. Acenjian, the number of spanning trees of the cubic cycle and the quadruple cycle. Discrete Math. 1997;169:293–298. doi: 10.1016/S0012-365X(96)00092-1
  • Hammer PL, Kelmans AK. Laplacian spectra and spanning trees of threshold graphs. Discrete Appl Math. 1996;65:255–273. doi: 10.1016/0166-218X(94)00049-J
  • Kirchhoff GG. Uber die Auflosung der Gleichungen, auf welche man be ider Untersuchung der Linearen Verteilung galvanischer Storme gefuhrt wird. Ann Phys Chem. 1847;72:497–508. doi: 10.1002/andp.18471481202
  • Kelmans AK, Chelnokov VM. A certain polynomials of a graph and graphs with an extermal number of trees. J Comb Theory (B). 1974;16:197–214. doi: 10.1016/0095-8956(74)90065-3
  • Cayley GA. A theorem on trees. Quart J Math. 1889;23:276–378.
  • Clark L. On the enumeration of multipartite spanning trees of the complete graph. Bull ICA. 2003;38:50–60.
  • Qiao NS, Chen B. The number of spanning trees and chains of graphs. J Appl Math. 2007;9:10–16.
  • Sedlacek J. Lucas number in graph theory. In: Mathematics (geometry and graph theory) (Chech). Prague: Univ. Karlova; 1970. p. 111–115.
  • Sedlacek J. On the Skeleton of a graph or digraph. In: R. Guy, M. Hanani, N. Saver, et al., editors. Combinatorial structures and their applications. New York (NY): Gordon and Breach; 1970, p. 387–391.
  • Boeschand FT, Prodinger H. Spanning tree formulas and Chebyshev polynomials. J. Graphs Comb. 1986;2:191–200. doi: 10.1007/BF01788093
  • Boesch FT, Bogdanowicz ZR. The number of spanning trees in a prism. Inter J Comput Math. 1987;21:229–243. doi: 10.1080/00207168708803568
  • Daoud SN. Chebyshev polynomials and spanning tree formulas. Int J Math Comb. 2012;4:68–79.
  • Daoud SN. Complexity of some families of cycle related graphs. J Taibah Univ Sci. 2017;11:205–228. doi: 10.1016/j.jtusci.2016.04.002
  • Daoud SN. Complexity of graphs generated by wheel graph and their asymptotic limits. J Egypt Math Soc. 2017;25(4):424–433. doi: 10.1016/j.joems.2017.07.005
  • Daoud SN. Generating formulas of the number of spanning trees of some special graphs. Eur Phys J Plus. 2014;129:1–14. doi: 10.1140/epjp/i2014-14146-7
  • Daoud SN. Number of spanning trees of different products of complete and complete bipartite graphs. Math Probl Eng. 2014:23. Hindawi Publishing Corporation, Article ID 965105.
  • Daoud SN. Number of spanning trees in different product of complete and complete tripartite graphs. Ars Comb. 2018;139:85–103.
  • Daoud SN. On a class of some pyramid graphs and Chebyshev polynomials. J Math Probl Eng. 2013;2013:11. Hindawi Publishing Corporation, Article ID 820549.
  • Daoud SN. The deletion-contraction method for counting the number of spanning trees of graphs. Eur Phys J Plus. 2015;130:1–15. doi: 10.1140/epjp/i2015-15217-y
  • Daoud SN. Number of spanning trees in the sequence of some nonahedral graphs. Utilitas Mathematica, Winnipeg.
  • Liu J-B, Daoud SN. Complexity of some of pyramid graphs created from a gear graph. Symmetry (Basel). 2018;10:689, doi:10.3390/sym10120689.
  • Zhang J, Sun W, Xu G. Enumeration of spanning trees on Apollonian networks. J Stat Mech. 2013;9:P09015. doi: 10.1088/1742-5468/2013/09/P09015
  • Zhang Z, Liu H, Wu B, et al. Spanning trees in a fractal scale –free lattice. Phys Rev E. 2011;83:016116. doi: 10.1103/PhysRevE.83.016116