Abstract
Topological invariants are the significant invariants that are used to study the physicochemical and thermodynamic characteristics of chemical compounds. Recently, a new bond additive invariant named the Mostar invariant has been introduced. For any connected graph , the edge Mostar invariant is described as , where is the number of edges of lying closer to vertex g (or x) than to vertex x (or g). A graph having at most one common vertex between any two cycles is called a cactus graph. In this study, we compute the greatest edge Mostar invariant for cacti graphs with a fixed number of cycles and n vertices. Moreover, we calculate the sharp upper bound of the edge Mostar invariant for cacti graphs in , where s is the number of cycles.
Keywords: topological invariants, Mostar invariant, edge Mostar invariant, cacti graphs, graph theory
1 Introduction
Let be a simple, undirected, and connected graph with the vertex set and the edge set . The degree of , represented as , is described as the number of edges directly linked with g. The neighbors of a vertex g in is the set of all of its adjacent vertices in . For , the number of edges in the shortest path between two vertices g and x is called the distance between them and is expressed as . A pendent vertex p in is a vertex with degree one, and an edge having one pendent vertex as one of its end vertices is called a pendent edge. The set of all pendent vertices of is represented as , and the set of all pendent vertices adjacent to a fix vertex g is represented as . An edge in is presented as a cut edge if, by deleting that edge, the graph is converted into exactly two components. Let , , and be used for the representation of the path, the cycle, and the star with order n.
In the fields of chemical sciences, mathematical chemistry, chemical graph theory, and pharmaceutical science, topological invariants are of significant importance because of their definitional use. The physicochemical properties of chemical structures can be forecasted by using topological invariants. A numerical value related to biological activity, chemical reactivity, and physical properties of chemical structures is known as a topological invariant. Topological invariants are mainly separated into different manners like degree, distance, eccentricity, and spectrum. A distance-based invariant is a topological invariant based on the distance between the vertices or edges of a given graph. The Wiener invariant (Wiener, 1947) is the most significant oldest topological invariant that belongs to distance-based invariants, and the Harary invariant (Mihalić and Trinajstić, 1992) and the Balaban invariant (Zhou and Trinajstić, 2008) also belong to distance-based invariants. Degree-based invariants are another well-studied group of invariants. The first degree-based invariant was introduced as the Randić invariant (Randic, 1975). A rich theory of distance- and degree-based invariants is mentioned in (Li and Shi, 2008; Gutman, 2013; Knor et al., 2014; Knor et al., 2015). The recently introduced Mostar invariant (Došlić et al., 2018) belongs to bound additive invariants as they capture the relevant properties of a graph by summing up the contributions of individual edges (Vukičević and Gašperov, 2010; Vukičević, 2011). Peripherality is one such property that could be of interest. An edge is a peripheral edge if there are many more vertices closer to one of its end vertices than to the other one. In short, for an edge in , the greatest value of absolute difference of the cardinality of vertices closer to g than to x, presented by , and the cardinality of vertices closer to x than to g, denoted by , indicates a peripheral position of in . The Mostar invariant of a graph is defined as follows:
| (1) |
and this represents a global measure of peripherality of a graph . Došlić et al. (2018) determined the Mostar invariant of the benzenoid system. Tratnik proved that the Mostar invariant of the weighted graph can be deduced in the form of the Mostar invariant of quotient graphs (Tratnik, 2019). Arockiaraj et al. (2019) introduced the edge Mostar invariant as follows:
| (2) |
where is the cardinality of edges closer to g (or x) than to x (or g).Akhter et al. (2021) computed the Mostar indices for the molecular graphs of SiO2 layer structures and the melem chain with the help of the cut method. Liu et al. (2020) found the extremal values of the edge Mostar invariant of cacti graphs. Imran et al. (2020) found the edge Mostar invariant of chemical structures and nanostructures using graph operations. Arockiaraj et al. (2020) calculated the weighted Mostar indices of molecular peripheral shapes with applications in graphene, graphyne, and graphdiyne nanoribbons. Liu et al. (2020) determined the maximum edge Mostar index of cacti graphs with the following given conditions.
Theorem 1.1. Let be a connected graph:
• if and , then with equality if and only if ,
• if and , then with equality if and only if ,
• if , then with equality if and only if , and
• if , then with equality if and only if .
Liu et al. (2020) determined the second maximum edge Mostar index of cacti graphs with the following given conditions.
Theorem 1.2. Let with and :
• for with equality if and only if ,
• for with equality if and only if , and
• with equality if and only if .
For more results related to Mostar and edge Mostar invariants, see (Hayat and Zhou, 2019a; Akhter, 2019; Tepeh, 2019; Akhter et al., 2020; Dehgardi and Azari, 2020; Deng and Li, 2020; Ghorbani et al., 2020; Huang et al., 2020; Deng and Li, 2021a; Deng and Li, 2021b).
A connected graph is a cactus if all its blocks are either edges or cycles, that is, any two of its cycles have at most one common vertex. Until now, many results in chemistry and graph theory related to the cacti have been acquired. The first three smallest Gutman invariants among the cacti have been determined by Chen (2016). Using the Zagreb invariants, Li et al. (2012) found the upper and lower bounds of the cacti. The bounds of the Harary invariant related to cacti have been found by Wang and Kang (2013). The extremal cacti having the greatest hyper-Wiener invariant have been characterized by Wang and Tan (2015). The extremal graphs with the greatest and smallest vertex PI invariants among all cacti with a fixed number of vertices have been determined by Wang et al. (2016). The sharp upper bound of the Mostar invariant for cacti of order n with s cycles has been given by Hayat and Zhou (2019b), and they also found the greatest Mostar invariant for all n-vertex cacti. For more results related to cacti graphs, see (Liu et al., 2016; Wang and Wei, 2016; Wang, 2017).
Motivated by the results of chemical invariants and their applications, it may be interesting to characterize the cacti with the greatest and smallest edge Mostar invariants for some fixed parameters. In this study, we consider the cacti with a fixed number of cycles and find the greatest edge Mostar invariant for all the n-vertex cacti. In the end, we give a sharp upper bound of the edge Mostar invariant for these cacti.
2 Main Results
Let be the set of all cacti graphs of order and be the set of all cacti graphs of order with the number of cycles s. Let be the n-vertex cactus, for , and for , , consisting of s number of and pendent edges such that every and pendent edge has exactly one vertex in common (see Figure 1).
FIGURE 1.

Graph , for , and for , .
In this section, we derive the greatest value of cacti graphs for the edge Mostar invariant. First of all, some basic lemmas are proved so that the main result can be proved easily.
Proposition 2.1.
(Imran et al., 2020) The edge Mostar invariant of a path and a cycle with n vertices is and , respectively.
In Lemma 2.1, we establish a graph by converting a cut edge into a pendent edge in , such that the new graph has a greater edge Mostar invariant.
Lemma 2.1:
Consider two connected graphs and such that they are connected to each other by an edge , where and , and acquired the graph . Now, we construct the graph by deleting the cut edge and attaching a pendent edge at vertex u in (see Figure 2). Then .
FIGURE 2.
Graphs and of Lemma 2.1.
Proof
: Let and be the subgraphs of , as shown in Figure 2. By the construction of , the number of closer edges of the end vertices of a fixed edge of and in remains the same in , respectively. Therefore, for an edge , where , we have the following:
(3) For the cut edge in and the pendent edge in , we have the following:
(4) Using the definition of the edge Mostar invariant and substituting the values from Eqs 3, 4 , we acquire the following:
There are two cases:
1. if , then we get
2. if , then we get .
In either case, we acquire .
This completes the proof. ∎
Next, we establish a new graph from by moving all pendent edges, all cycles, and all cycles from different vertices of a fixed cycle to a unique vertex, such that the new graph has a larger edge Mostar invariant.
Lemma 2.2:
Let be a cyclic graph constructed by attaching , for , number of pendent vertices, , for , number of cycles and , for , number of cycles, at the vertices , for , of , where . Consider a graph H having a common vertex with and present it by . We construct from by removing all the pendent vertices, ’s, and ’s of and attaching them at v (see Figure 3 ). Then, we have .
FIGURE 3.
Graphs and of Lemma 2.2.
Proof:
Suppose that the vertices of are and there are number of pendent edges, number of cycles, and number of cycles rooted at , for , in . By the construction of , the number of closer edges of the end vertices of a fixed edge of H in remains the same in . Therefore, for any edge , we have the following:
(5) For the pendent edges rooted on , for and , in , we have the following:
(6) For every cycle rooted on a fixed vertex , for , the edge set is , and then, there are the following cases:
1. For , , we have and .
2. For , we have and .
3. For , we have and .
For every cycle rooted on a fixed vertex , for , the edge set is , and then, there are the following cases:
1. For , we have and .
2. For , we have and .
3. For , we have and .
Suppose is an even cycle; then there are the following cases:
1. For , we have and .
2. For , where , we have and
3. For , where , we have and .
4. For , we have and .
5. For , where , we have and .
6. For , where , we have and .
7. For , we have and .
Substituting the values from Eqs 5, 6 and the information from all the cases above in the definition of the edge Mostar invariant, we acquire the following:
The proof for an odd cycle is similar to that above; therefore, we omit it here.
This completes the proof. ∎
In Lemma 2.3, we establish a new graph from a given graph by replacing with and attaching pendent edges in such that the new graph has a greater edge Mostar invariant.
Lemma 2.3:
Consider a graph H having a common vertex with such that and , and denote it as . Let be the graph acquired from by replacing with and attaching pendent edges at (see Figure 4 ). Then, we have .
FIGURE 4.
Graphs and of Lemma 2.3.
Proof:
Let H be a subgraph of and the vertices of be , as shown in Figure 4. By the construction of , the number of closer edges of the end vertices of a fixed edge of H in remains the same in . Therefore, for any edge , we have the following:
(7) Suppose q is even; then there are three cases:
1. For , where , we have and .
2. For , where , we have and .
3. For , we have and .
Suppose q is odd; then there are three cases:
1. For , where , we have and .
2. For , where , we have and .
3. For , we have and
In , for any pendent edge , where , rooted at v, we have the following:
(8) For in , there are the following cases:
1. For , , we have and .
2. For , we have and .
3. For , we have and .
Case 1:
When q is even, using the definition of the edge Mostar invariant and substituting the values from Eqs 7, 8 and the cases above, we get the following:
Case 2:
When q is odd, using the definition of the edge Mostar invariant and substituting the values from Eqs 7, 8 and the cases above, we get the following:
This completes the proof. ∎
Lemma 2.4:
Consider a graph H having a common vertex with and at least one pendent edge , and this graph is presented as . Let be the graph obtained from by replacing and with (see Figure 5 ). Then, we have .
FIGURE 5.
Graphs . and of Lemma 2.4.
Proof:
By the construction of , the number of closer edges of the end vertices of a fixed edge of H in remains the same in . Therefore, for any edge , we have the following:
(9) There are the following cases in :
1. For pendent edge , we have and .
2. For , we have and .
3. For , we have and .
4. For , we have .
By the construction of , we have the following:
1. For , we have and .
2. For , we have and .
3. For , we have and .
4. For , we have and .
Using the definition of the edge Mostar invariant and substituting the values from cases, we get the following:
This completes the proof. ∎
Theorem 2.1:
Among all the cacti graphs in , the cactus , for , and for , , shown in Figure 1 has the largest edge Mostar invariant. Thus, for any cactus , we have .
Proof:
Let be a cactus graph where and . If and has a cut edge, then repeatedly applying Lemma 2.1, we get a sequence of new cacti graphs , where is a cactus without any cut edge, such that . Now, if and have a cyclic subgraph that is constructed by attaching , for , number of pendent vertices, , for , number of cycles and , for , number of cycles, at the vertices , for , of , where , then by applying Lemma 2.2 repeatedly, we acquire a sequence of cacti graphs satisfying , where is a cactus graph such that every vertex of cycles of has degree 2 except common vertices. If and have a cycle , for , then by applying Lemma 2.3 repeatedly, we acquire a sequence of cacti graphs satisfying , where . If has a triangle and at least one pendent edge , then by using Lemma 2.4, we construct a cactus graph with a cycle and get the greatest Mostar invariant and then .
This completes the proof. ∎
By Theorem 2.1 and simple calculation, we have the following results:
Corollary 2.1. Let be a cactus graph with and number of cycles s; then we have the following:
equality holds if .
3 Conclusion
The ongoing direction of numerical coding of the fundamental chemical structures with topological descriptors has been substantiated as completely victorious. This approach substantiates the contrast, quarry, renewal, interpretation, and swift troupe of chemical structures within enormous particularities. Eventually, topological descriptors can lead to productive measures for quantitative structure–activity relationships (QSARs) and quantitative structure–property relationships (QSPRs), which are imitations that identify chemical structures with chemical reactivity, physical properties, or biological activity. The edge Mostar index is a newly proposed quantity; it has not been used in physicochemical or biological research. Recently, a work (Imran et al., 2020) has been completed in this direction for chemical structures and nanostructures using graph operations. The authors have found the edge Mostar indices of nanostructures. Motivated by these results, we have studied the maximum edge Mostar invariant of the n-vertex cacti graphs with a fixed number of cycles in this study. For this, we have proved some lemmas in which we use the transformation of graphs and some calculations. In future, we want to find the largest and smallest edge Mostar invariants of the n-vertex cacti graphs with some fixed parameters other than the number of cycles.
Data Availability Statement
The original contributions presented in the study are included in the article/Supplementary Material; further inquiries can be directed to the corresponding author.
Author Contributions
FY: Data curation; investigation; methodology; project administration; software; validation. SA: Conceptualization; formal analysis; methodology; visualization. KA: Methodology; resources; visualization; writing-review and editing. SR: Visualization.
Conflict of Interest
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
The reviewer JL declared a past co authorship with the authors KA and SR to the handling editor.
References
- Akhter S., Imran M., Iqbal Z. (2021). Mostar Indices of Nanostructures and Melem Chain Nanostructures. Int. J. Quan. Chem. 121, e26520. 10.1002/qua.26520 [DOI] [Google Scholar]
- Akhter S., Iqbal Z., Aslam A., Gao W. (2020). Mostar index of Graph Operations, 09416. arXiv:2005. [Google Scholar]
- Akhter S. (2019). Two Degree Distance Based Topological Indices of Chemical Trees. IEEE Access 7, 95653–95658. 10.1109/access.2019.2927091 [DOI] [Google Scholar]
- Arockiaraj M., Clement J., Tratnik N. (2019). Mostar Indices of Carbon Nanostructures and Circumscribed Donut Benzenoid Systems. Int. J. Quan. Chem. 119 (24), e26043. 10.1002/qua.26043 [DOI] [Google Scholar]
- Arockiaraj M., Clement J., Tratnik N., Mushtaq S., Balasubramanian K. (2020). Weighted Mostar Indices as Measures of Molecular Peripheral Shapes with Applications to Graphene, Graphyne and Graphdiyne Nanoribbons. SAR QSAR Environ. Res. 31 (3), 187–208. 10.1080/1062936x.2019.1708459 [DOI] [PubMed] [Google Scholar]
- Chen S. (2016). Cacti with the Smallest, Second Smallest, and Third Smallest Gutman index. J. Comb. Optim. 31 (1), 327–332. 10.1007/s10878-014-9743-z [DOI] [Google Scholar]
- Dehgardi N., Azari M. (2020). More on Mostar index. Appl. Math. E-notes 20, 316–322. 10.24869/psyd.2017.39 [DOI] [Google Scholar]
- Deng K. C., Li S. (2021). Chemical Trees with Extremal Mostar index. MATCH Commun. Math. Comput. Chem. 85, 161–180. 10.2298/fil1919453h [DOI] [Google Scholar]
- Deng K., Li S. (2020). Extremal Catacondensed Benzenoids with Respect to the Mostar index. J. Math. Chem. 58, 1437–1465. 10.1007/s10910-020-01135-0 [DOI] [Google Scholar]
- Deng K., Li S. (2021). On the Extremal Values for the Mostar index of Trees with Given Degree Sequence. Appl. Math. Comput. 390, 125598. 10.1016/j.amc.2020.125598 [DOI] [Google Scholar]
- Došlić T., Martinjak I., Škrekovski R., Spužević S. T., Zubac I. (2018). Mostar index. J. Math. Chem. 56 (10), 2995–3013. 10.1007/s10910-018-0928-z [DOI] [Google Scholar]
- Ghorbani M., Rahmani S., Eslampoor M. J. (2020). Some New Results on Mostar index of Graphs. Iranian J. Math. Chem. 11 (1), 33–42. 10.21136/cpm.1987.118302 [DOI] [Google Scholar]
- Gutman I. (2013). Degree-based Topological Indices. Croat. Chem. Acta 86 (4), 351–361. 10.5562/cca2294 [DOI] [Google Scholar]
- Hayat F., Zhou B. (2019). On Cacti with Large Mostar index. Filomat 33 (15), 4865–4873. 10.2298/fil1915865h [DOI] [Google Scholar]
- Hayat F., Zhou B. (2019). On Mostar index of Trees with Parameters. Filomat 33 (19), 6453–6458. 10.2298/fil1919453h [DOI] [Google Scholar]
- Huang S., Li S., Zhang M. (2020). On the Extremal Mostar Indices of Hexagonal Chains. MATCH Commun. Math. Comput. Chem. 84, 249–271. 10.22541/au.161825077.77699117/v1 [DOI] [Google Scholar]
- Imran M., Akhter S., Iqbal Z. (2020). Edge Mostar index of Chemical Structures and Nanostructures Using Graph Operations. Int. J. Quan. Chem. 120 (15), e26259. 10.1002/qua.26259 [DOI] [Google Scholar]
- Knor M., Škrekovski R., Tepeh A. (2015). Mathematical Aspects of Wiener index. arXiv preprint arXiv:1510.00800. [Google Scholar]
- Knor M., Škrekovski R. (2014). “Wiener index of Line Graphs,” in Quantitative Graph Theory: Mathematical Foundations and Applications). Editors Dehmer M., Emmert-Streib F. (Upper Saddle River: CRC Press; ), 279–301. [Google Scholar]
- Li S., Yang H., Zhao Q. (2012). Sharp Bounds on Zagreb Indices of Cacti with K Pendant Vertices. Filomat 26 (6), 1189–1200. 10.2298/fil1206189l [DOI] [Google Scholar]
- Li X., Shi Y. (2008). A Survey on the Randić index. MATCH Commun. Math. Comput. Chem. 59 (1), 127–156. 10.1063/1.5020470 [DOI] [Google Scholar]
- Liu H., Song L., Xiao Q., Tang Z. (2020). On Edge Mostar index of Graphs, Iran. J. Math. Chem. 11 (2), 95–106. 10.1155/2021/6651220 [DOI] [Google Scholar]
- Liu J.-B., Wang W.-R., Zhang Y.-M., Pan X.-F. (2016). On Degree Resistance Distance of Cacti. Discrete Appl. Math. 203, 217–225. 10.1016/j.dam.2015.09.006 [DOI] [Google Scholar]
- Mihalić Z., Trinajstić N. (1992). A Graph-Theoretical Approach to Structure-Property Relationships. J. Chem. Educ. 69, 701–712. [Google Scholar]
- Randic M. (1975). Characterization of Molecular Branching. J. Am. Chem. Soc. 97, 6609–6615. 10.1021/ja00856a001 [DOI] [Google Scholar]
- Tepeh A. (2019). Extremal Bicyclic Graphs with Respect to Mostar index. Appl. Math. Comput. 355, 319–324. 10.1016/j.amc.2019.03.014 [DOI] [Google Scholar]
- Tratnik N. (2019). Computing the Mostar index in Networks with Applications to Molecular Graphs. arxiv.org/abs/1904.04131. [Google Scholar]
- Vukičević D. (2011). Bond Additive Modeling 4. QSPR and QSAR Studies of the Variable Adriatic Indices. Croat. Chem. Acta 84 (1), 87–91. 10.5562/cca1666 [DOI] [Google Scholar]
- Vukičević D., Gašperov M. (2010). Bond Additive Modeling 1. Adriatic Indices. Croat. Chem. Acta 83 (3), 243–260. 10.5562/cca1666 [DOI] [Google Scholar]
- Wang C., Wang S., Wei B. (2016). Cacti with Extremal PI index. Trans. Comb. 5, 1–8. 10.3390/math7010083 [DOI] [Google Scholar]
- Wang D. F., Tan S. W. (2015). The Maximum Hyper-Wiener index of Cacti. J. Appl. Math. Comput. 47 (1-2), 91–102. 10.1007/s12190-014-0763-8 [DOI] [Google Scholar]
- Wang H., Kang L. (2013). On the Harary index of Cacti. J. Appl. Math. Comput. 43 (1-2), 369–386. 10.1007/s12190-013-0668-y [DOI] [Google Scholar]
- Wang S. (2017). On Extremal Cacti with Respect to the Szeged index. Appl. Math. Comput. 309, 85–92. 10.1016/j.amc.2017.03.036 [DOI] [Google Scholar]
- Wang S., Wei B. (2016). Multiplicative Zagreb Indices of Cacti. Discrete Math. Algorithm. Appl. 08, 1650040. 10.1142/s1793830916500403 [DOI] [Google Scholar]
- Wiener H. (1947). Structural Determination of Paraffin Boiling Points. J. Am. Chem. Soc. 69 (1), 17–20. 10.1021/ja01193a005 [DOI] [PubMed] [Google Scholar]
- Zhou B., Trinajstić N. (2008). Bounds on the Balaban index. Croat. Chem. Acta 81 (2), 319–323. 10.1016/j.amc.2015.07.021 [DOI] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Data Availability Statement
The original contributions presented in the study are included in the article/Supplementary Material; further inquiries can be directed to the corresponding author.




