Abstract
For a graph G, we denote by N(G) the number of non-empty subtrees of G. As a topological index based on counting, N(G) has some correlations to other well studied topological indices, including the Wiener index W(G). In this paper we characterize the extremal graphs with the maximum number of subtrees among all cacti of order n with k cycles. Similarly, the extremal graphs with the maximum number of subtrees among all block graphs of order n with k blocks are also determined and shown to have the minimum Wiener index within the same collection of graphs. Analogous results are also obtained for the number of connected subgraphs C(G). Finally, a general question is posed concerning the relation between the number of subtrees and the Wiener index of graphs.
Similar content being viewed by others
References
Andriantiana, E.O.D., Wagner, S., Wang, H.: Greedy trees, subtrees and antichains. Electron. J. Comb. 20, P28 (2013)
Andriantiana, E.O.D., Wagner, S., Wang, H.: Extremal problems for trees with given segment sequence. Discrete Appl. Math. 220, 20–34 (2017)
Andriantiana, E.O.D., Wang, H.: Subtrees and independent subsets in unicyclic graphs and unicyclic graphs with fixed segment sequence. MATCH Commun. Math. Comput. Chem. 84, 537–566 (2020)
Bessy, S., Dross, F., Knor, M., Škrekovski, R.: Graphs with the second and third maximum Wiener indices over the 2-vertex connected graphs. Discrete Appl. Math. 284, 195–200 (2020)
Bondy, J.A., Murty, U.S.R.: Graph Theory with Applications. Macmillan Press, New York (1976)
Cavaleri, M., Donno, A., Scozzari, A.: Total distance, Wiener index and opportunity index in wreath products of star graphs. Electron. J. Comb. 26, P1-21 (2019)
Cambie, S., Wagner, S., Wang, H.: On the maximum mean subtree order of trees. Eur. J. Comb. 97, 103388 (2021)
Davenport, H., Pólya, G.: On the product of two power series. Can. J. Math. 1, 1–5 (1949)
Dobryinin, A.A.: On the Wiener index of the forest induced by contraction of edges in a tree. MATCH Commun. Math. Comput. Chem. 86, 321–326 (2021)
Harary, F., Palmer, E.M.: Graphical Enumeration. Academic Press, New York-London (1973)
Kirk, R., Wang, H.: Largest number of subtrees of trees with a given maximum degree. SIAM J. Discrete Math. 22, 985–995 (2008)
Li, S., Wang, S.: Further analysis on the total number of subtrees of trees. Electron. J. Comb. 19(4), P48 (2012)
Liu, H., Lu, M.: A unified approach to cacti for different indices. MATCH Commun. Math. Comput. Chem. 58, 193–204 (2007)
Liu, L., Wang, Y.: On the log-convexity of combinatorial sequences. Adv. Appl. Math. 39(4), 453–476 (2007)
Liu, M., Yao, Y., Das, K.C.: Extremal results for cacti. Bull. Malays. Math. Sci. Soc. 43, 2783–2798 (2020)
Roberts, A.W., Varberg, D.E.: Convex Functions. Academic Press, New York-London (1973)
Schmuck, N., Wagner, S., Wang, H.: Greedy trees, caterpillars, and Wiener-type graph invariants. MATCH Commun. Math. Comput. Chem. 68, 273–292 (2012)
Székely, L.A., Wang, H.: On subtrees of trees. Adv. Appl. Math. 34, 138–155 (2005)
Székely, L.A., Wang, H.: Binary trees with the largest number of subtrees. Discrete Appl. Math. 155, 374–385 (2007)
Tian, J., Xu, K.: The general position number of Cartesian products involving a factor with small diameter. Appl. Math. Comput. 403, 126206 (2021)
Wiener, H.: Structrual determination of paraffin boiling points. J. Am. Chem. Soc. 69, 17–20 (1947)
Xu, K., Das, K.C., Klavžar, S., Li, H.: Comparison of Wiener index and Zagreb eccentricity indices. MATCH Commun. Math. Comput. Chem. 84, 595–610 (2020)
Xu, K., Liu, M., Das, K.C., Gutman, I., Furtula, B.: A survey on graphs extremal with respect to distance-based topological indices. MATCH Commun. Math. Comput. Chem. 71, 461–508 (2014)
Xu, K., Li, J., Wang, H.: The number of subtrees in graphs with given number of cut edges. Discrete Appl. Math. 304, 283–296 (2021)
Xu, K., Wang, M., Tian, J.: Relations between Merrifield-Simmons and Wiener indices. MATCH Commun. Math. Comput. Chem. 85, 147–160 (2021)
Yan, W., Yeh, Y.N.: Enumeration of subtrees of trees. Theor. Comput. Sci. 369, 256–268 (2006)
Zhang, X.-M., Zhang, X.-D., Gray, D., Wang, H.: The number of subtrees of trees with given degree sequence. J. Graph Theory 73, 280–295 (2013)
Acknowledgements
S. Wagner was supported by the Knut and Alice Wallenberg Foundation. The authors are very grateful to PhD student Zuwen Luo for the helpful discussion with him.
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
About this article
Cite this article
Li, J., Xu, K., Zhang, T. et al. Maximum number of subtrees in cacti and block graphs. Aequat. Math. 96, 1027–1040 (2022). https://doi.org/10.1007/s00010-022-00879-1
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00010-022-00879-1