Abstract
In mathematical chemistry, molecular descriptors serve an important role, primarily in quantitative structure–property relationship (QSPR) and quantitative structure–activity relationship (QSAR) studies. A topological index of a molecular graph is a real number that is invariant under graph isomorphism conditions and provides information about its size, symmetry, degree of branching, and cyclicity. For any graph N, the first and second Gourava indices are defined as ) and , respectively.The independence number of a graph N, being the cardinality of its maximal independent set, plays a vital role in reading the energies of chemical trees. In this research paper, it is shown that among the family of trees of order and independence number , the spur tree denoted as maximizes both 1st and 2nd Gourava indices, and with these characterizations this graph is unique.
MSC:
05C12; 05C90
1. Introduction
A topological descriptor is a numerical number assigned to a molecular graph that has applications in quantitative structure–property relationship studies. There are many topological indices available today with applications in chemistry. The structural characteristics of the graphs used to compute the topological indices can be used to characterize them. Let be a simple graph with the vertex set and edge set denoted by and , respectively. The degree of a vertex is denoted by and is defined as the number of vertices adjacent to . The neighborhood of vertex is denoted as and is the set of vertices adjacent to . Here, denotes the maximum degree of the graph. The length of the shortest path between two vertices and is known as the distance between them and is denoted as . The maximum distance between any two vertices of is called the diameter of . If , denotes the graph obtained from by removing and its incident edges. Similarly, the graph is a subgraph of obtained by removing the edge . For a given graph , a subset of is independent if and only if contains no pairs of adjacent vertices. The independence number of a graph is defined as the cardinality of the maximal independent set and is denoted by . Let and denotethe star and path graphs of order , respectively. A bipartite graph of order has at least one partite set, which is also an impartial set, with at least vertices. This indicates that we have for any tree , and this bound is achieved for the path graph. Additionally, and equality holds in case of the star graph. For basic concepts related to graph theory, we refer the readers to [].
A tree known as a“spur tree” is denoted as , where and are the order and independence number of the graph, respectively. A spur tree is composed of paths with a length of 2, each having the same single end vertex and pendent vertices attached to that common vertex. Figure 1 shows the spur tree . Another definition is that it is obtained by joining a pendent edge to pendent vertices of with . Das, Xu, and Gutman [] discovered that the spur tree is the only graph that maximizes both the first and second Zagreb indices in the class of trees with the order and independence number . In the same class of trees, Tomescu and Jamil [] shows that the spur tree is the only graph that maximizes the zeroth-order general Randić index and the general sum-connectivity index for .
An application of discrete mathematics to chemistry is achieved in ‘chemical graph theory’, which is applied to study physical and chemical properties of chemical compounds. In chemical graph theory, the molecular structure can be represented using a graph, where the vertices represent the atoms and the edges represent the bond between the atoms. Topological indices are helpful in demonstrating the relationship between the properties of molecules and the chemical structure. Many topological descriptors have been proposed by researchers and used in quantitative structure property relationship studies [,,]. The first and second Gourava indices [,,] of a graph N are defined as:
Alexander Vasilyev et al. [] characterized trees with a given order and independence number and with a maximum first Zagreb index. Joyentanuj Das [] found the maximum value of the Sombor index in the class of trees with a given order and independence number. Mariam et al. [] provided an upper bound for the first Gourava index of trees with a given order, size, diameter, and pendant vertices. Basavanagoud et al. [] determined the Gourava and hyper-Gourava indices of cactus chains. For more extremal results related to trees, see [,,,,,].
The paper is organized as follows. In Section 2, we prove that in the class of trees with a given independence number, the spur tree maximizes the index value. In Section 3, it is proven that the spur tree maximizes the index values in the class of trees with a given independence number. In Section 4, we give some examples that justify the provided results.

Figure 1.
A spur tree.
2. Maximum Value of Trees with Given Independence Numbers
Lemma 1.
If , then the following relation holds:
Proof.
First, we compute . For this, we need to find the partition of the edges of the spur tree. This partition is depicted in Table 1. Now, using the definition of , we get:
Additionally:
Here, we consider:
To prove that , we show that . Let , then:
Let , then for . Hence for . Now, let , then:
Let , then for . Hence, for . Thus, we concluded that in both cases we obtained . □

Table 1.
The edge partition of .
Table 1.
The edge partition of .
Type of Edges | Cardinality of Edges |
---|---|
Lemma 2.
Let be a tree and , which is attached to end vertices . Then, for , are in any largest independent subset of .
Theorem 1.
If , and Nisa tree with an order and with , then is the maximum if and only if .
Proof.
We prove the result by applying the principle of mathematical induction on the order of the graph. When the order is we get and . When the order is , we get and . When the order is we get , so we get , and if we get . These trees are distinct for the particular values of and , so the trees have the maximum value.Suppose and assume that the result holds for all trees with an order .
From Lemma 1, we deduce that cannot be the greatest. Since , we get . Assuming the , this implies that the order of tree is equal to 5 or 6. When , we get only two trees with given by and . When the order is then we get only trees and , and the result is verified because and do not have the greatest values of (by Lemma 1). As a result, we only consider the situation when and . Suppose N to be a tree with an order , with and an independence number . Let be the path in with the greatest length, where denotes the diameter of (see Figure 2).We can assume that d ≥ 3 or else , , and the result is true. Both and are end vertices.
Now, consider the case when If is attached to , , then is not greater than 1. Otherwise, the path in does not have the greatest length. Therefore, and in lemma 2 both and are in the greatest independent set. This implies that is a contradiction. Thus, and . Keeping in mind the hypothesis of induction, we obtain:
The equality holds for with . Hence, there is equality if and only if , and , which implies that .
Now, we assume the case . Since the path (see Figure 3 and Figure 4) in is of the maximum length with in , the only vertex has a degree . By assuming and using the induction hypothesis, we obtain:
where is attached to end vertices. Further, in , we get . Therefore, or . Since at least end vertices exist in , we get:
, , and the result is true. Hence, we conclude that if then we get . The only condition for equality is , , , and , such that . It follows that there is equality for and the theorem is complete. □

Figure 2.
The path of the maximum length in N with degree of .

Figure 3.
The path of the maximum length in N with degree of at least 3.

Figure 4.
The path of the maximum length with .
3. Maximum of Trees with Given Independence Number
Lemma 3.
If , then the following relation holds:
Proof.
At first, we compute . For this, we need to find the edge partition of the spur tree, which is depicted in Table 1. Now, using the values in the definition of we get:
Additionally:
Here, we consider:
To prove that , we show that . For , we consider:
Let , then for . This implies that for . Now, let , then consider:
Let , then for . This implies that for . Thus, we concluded that in both cases . □
Theorem 2.
If , and is a tree with an order with , then is the greatest if and only if .
Proof.
We prove the required result by applying the principle of mathematical induction to the order of the graph. When the order is 2, we get and . When the order is , we get and . When the order is , we get , so if and we get . These trees are distinct for these particular values of and , so the trees have the greatest index value.
Suppose that and assume that the result holds for all trees with an order . From lemma 3, we deduce that cannot be the greatest. Since , we get . We assume that implies that the order is or . When , we get only two trees with given by and . When the order is , we get only two trees, namely and , and the result is verified because and do not have the greatest value for (from lemma 3). Therefore, we only consider the situation when and . Suppose N is a tree with an order , with and an independence number . Now, we consider , a path in of the greatest length, where denotes the diameter of (see Figure 1). We can assume that or else , , and the result is true. Both and are end vertices.
Now, consider the case where . If is attached to , then is not greater than . Otherwise, the path in does not have the greatest length; therefore, and from lemma 2 both and are in the greatest independent set, which implies that is a contradiction. Thus, and . From the induction hypothesis, we get:
There is equality for , whichimplies that . Hence, for equality, the only conditions are , , and , which imply that .
Now, we assume the case of . Since the path (see Figure 3 and Figure 4) in is of the maximum length with in , the only vertex has a degree . Assuming and using the induction hypothesis, we get:
where is attached to end vertices and further in we get . Therefore, or . Since at least end vertices exist in , we get:
, , and the result is true. Hence, we conclude that if we get . The only conditions for equality are , , , and , such that .
It follows that there is equality for and the theorem is complete. □
4. Example
For and we verify that for any tree with fixed values of and , the theorem is true. First, we compute the 1st and 2nd Gourava indices for :
Now, we compute the 1st and 2nd Gourava indices for trees , , and , as shown in Figure 5.

Figure 5.
Acyclic structures .
From Table 2, it is verified that and are the greatest for Υ12,8, which further verifies the results in Theorems 1 and 2.

Table 2.
Summary of calculations in example 1 with and .
5. Conclusions
In our present discussion, we prove that in the family of trees with an order and independence number , the spur tree denoted as maximizes both the 1st and 2nd Gourava indices, and with these characterizations the graph is unique. In the future, we intend to find maximal graphs of some other classes of graphs, such as bicyclic and tricyclic graphs for different chemical graph invariants.
Author Contributions
Conceptualization, Y.W., A.A., S.K. and N.I. (Nazeran Idrees); methodology, S.K., A.A., N.I. (Nazeran Idrees), N.I. (Nabeela Iram), A.R.; validation, S.K., A.A., N.I. (Nazeran Idrees), N.I. (Nabeela Iram), and A.R.; investigation, S.K., A.A., N.I. (Nazeran Idrees); writing—original draft preparation, S.K., A.A., N.I. (Nazeran Idrees); writing—review and editing, Y.W., N.I. (Nazeran Idrees), A.R.; funding acquisition, Y.W. and A.R. All authors have read and agreed to the published version of the manuscript.
Funding
This work was supported by the National Natural Science Foundation of China (no. 62172116, 61972109) and the Guangzhou Academician and Expert Workstation (no. 20200115-9). This work was supported by the Deanship of Scientific Research, Vice Presidency for Graduate Studies and Scientific Research, King Faisal University, Saudi Arabia [Grant No. 2674].
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
No Data is required to support the study.
Conflicts of Interest
The authors declare no conflict of interest.
References
- West, D.B. Introduction to Graph Theory; Prentice Hall: Upper Saddle River, NJ, USA, 1996. [Google Scholar]
- Tomescu, I.; Jamil, M.K. Maximum general sum-connectivity index for trees with given independence number. MATCH Commun. Math. Comput. Chem. 2014, 72, 715–722. [Google Scholar]
- Das, K.C.; Xu, K.; Gutman, I. On Zagreb and harary indices. MATCH Commun. Math. Comput. Chem. 2013, 70, 301–314. [Google Scholar]
- García-Domenech, R.; Gálvez, J.; de Julián-Ortiz, J.V.; Pogliani, L. Some new trends in chemical graph theory. Chem. Rev. 2008, 108, 1127–1169. [Google Scholar] [CrossRef] [PubMed]
- Todeschini, R.; Consonni, V. Handbook of Molecular Descriptors; John Wiley & Sons: Hoboken, NJ, USA, 2008. [Google Scholar]
- Randić, M. Novel molecular descriptor for structure—Property studies. Chem. Phys. Lett. 1993, 211, 478–483. [Google Scholar] [CrossRef]
- Kulli, V.R. The Gourava indices and coindices of graphs. Ann. Pure Appl. Math. 2017, 14, 33–38. [Google Scholar] [CrossRef]
- Kulli, V.R. The product connectivity Gourava index. J. Comput. Math. Sci. 2017, 8, 235–242. [Google Scholar]
- Kulli, V.R. On Hyper Gourava indices and coindices. Int. J. Math. Arch. 2017, 8, 116–120. [Google Scholar]
- Vasilyev, A.; Darda, R.; Stevanovic, D. Trees of Given Order and Independence Number with Minimal First Zagreb Index. MATCH Commun. Math. Comput. Chem. 2014, 72, 775–782. [Google Scholar]
- Das, J. On extremal Sombor index of trees with a given independence number α. arXiv 2022, arXiv:2212.10045. [Google Scholar]
- Imtiaz, M.; Naseem, M.; Arshad, M.; Kanwal, S.; Liaqat, M. On Acyclic Structures with Greatest First Gourava Invariant. J. Chem. 2022, 2022, 6602899. [Google Scholar] [CrossRef]
- Basavanagoud, B.; Policepatil, S. Gourava and Hyper-Gourava indices of some Cactus Chains. J. Indones. Math. Soc. 2021, 27, 297–307. [Google Scholar]
- Wang, Y.; Kanwal, S.; Liaqat, M.; Aslam, A.; Bashir, U. On Second Gourava Invariant for q-Apex Trees. J. Chem. 2022, 2022, 7513770. [Google Scholar] [CrossRef]
- Wang, W.; Aslam, A.; Binyamin, M.A.; Kanwal, S.; Irshad, I. On Trees with Greatest Invariant Using Edge Swapping Operation. Comput. Intell. Neurosci. 2022, 2022, 8291974. [Google Scholar] [CrossRef] [PubMed]
- Dimitrov, D. On the structural properties of trees with minimal atom-bond connectivity index III: Bounds on B1- and B2-branches. Discret. Appl. Math. 2016, 204, 90–116. [Google Scholar] [CrossRef]
- Gao, Y.; Shao, Y. The smallest ABC index of trees with n pendant vertices. MATCH Commun. Math. Comput. Chem. 2016, 76, 141–158. [Google Scholar]
- Husin, N.M.; Hasni, R.; Du, Z.; Ali, A. More results on extremum Randić indices of (molecular) trees. Filomat 2018, 32, 3581–3590. [Google Scholar] [CrossRef]
- Li, J.; Balachandran, S.; Ayyaswamy, S.K.; Venkatakrishnan, Y.B. The Randić indices of trees, unicyclic graphs and bicyclic graphs. Ars Combin. 2016, 127, 409–419. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).