Abstract
Let be the sum of distances from u to all the other vertices of G. The Wiener complexity, , is the number of different values of in G, and the eccentric complexity, , is the number of different eccentricities in G. In this paper, we prove that for every integer c there are infinitely many graphs G such that . Moreover, we prove this statement using graphs with the smallest possible cyclomatic number. That is, if we prove this statement using trees, and if we prove it using unicyclic graphs. Further, we prove that if G is a unicyclic graph. In our proofs we use that the function is convex on paths consisting of bridges. This property also promptly implies the already known bound for trees . Finally, we answer in positive an open question by finding infinitely many graphs G with diameter 3 such that .
1. Introduction
Let G be a graph. Denote by and its vertex and edge sets, respectively. If , then denotes the degree of u in G, and if then denotes the set S together with the vertices which have a neighbour in S. Obviously, . If then denotes a graph obtained when we remove all the edges of R from G. Similarly, if then denotes a graph obtained when we remove all the vertices of S and all edges incident with a vertex of S from G. An edge is a bridge if has more components than G.
If then is the length of a shortest path from u to v in G. The longest distance from a vertex u is its eccentricity . Hence, . Using the eccentricity we define the radius , and the diameter . The eccentric complexity of G is defined as
Observe that . The eccentric complexity has been introduced in []. Also see [] for related connective eccentric complexity.
On the other hand the Wiener complexity of G is
where is the transmission of u in G. The parameter is known as the Wiener index . Hence, . The Wiener complexity of a graph G was introduced in []. Further research on can be found in [,,]. For results on Wiener index see, e.g., [].
In [] the authors study the relation between and . They prove the following statement.
Theorem 1.
If T is a tree then .
Next, using cartesian products they prove that for every there are graphs G with and for every there are graphs G with . Here we continue in their research. We prove that for every there are infinitely many trees T such that . By Theorem 1 to construct graphs G with we must abandon the class of trees. So we concentrate on graphs with cyclomatic number 1. We prove that for every there are infinitely many unicyclic graphs G such that .
All graphs G with found in [] have diameter at least 4, and it was shown that there are no such graphs of diameter at most 2. So the authors posed in [] the following problem.
Problem 1.
Does there exist a graph G with diameter 3 and ?
We answer Problem 1 affirmatively and we find infinitely many graphs satisfying its requirements.
2. Trees
In this section we characterize pairs and such that there are (infinitely many) trees T with and . To do this, first we show that is a strictly convex function on paths consisting of bridges; observe that in a tree, every edge is a bridge. However, firstly we state the following easy lemma.
Lemma 1.
Let G be a connected graph with a bridge . Let and be the two components of , such that , , and let be the number of vertices in . Then .
Proof.
Let be the transmission of in , . Then
Hence, . □
Recall that a function defined on is strictly convex, if for every , we have , or equivalently . We have the following statement.
Lemma 2.
Let G be a graph. Further, let be a path in G such that every edge of P is a bridge. Then is a strictly convex function on .
Proof.
Let be a subpath of P. Then has three components. Denote by the component of which contains , for each . Moreover, denote . By Lemma 1, we have
Consequently, is strictly convex on . □
Observe that considering a diametric path, Lemma 2 directly implies Theorem 1. However, we use it in the following statement which characterizes all possible pairs , for trees.
Theorem 2.
It holds:
- (i)
- If then there are infinitely many trees T with and .
- (ii)
- If and then there are infinitely many trees T with and and no trees with and .
- (iii)
- If then there are only two trees T with and in this case as well.
Proof.
Consider . Here . First suppose that . Let . Take k paths of length and denote their vertices so that , where . Denote
Let be a path of length ℓ so that . Since , we have , and since , we have . Thus, . Now attach to exactly new pendant vertices, , and attach to exactly new vertices. We expect that q is a big number. Finally, identify the vertices into a single vertex, which we denote by c, and denote the resulting tree by T, see Figure 1. Observe that there is 1 pendant vertex attached to in T and exactly i pendant vertices are attached to , . Further, since ( would suffice since there is also ) we have and , so that . Obviously, if u and v are pendant vertices attached to the same vertex in T then . Also, if and , . In all other cases we show that . Hence, we show that have different transmissions.
Figure 1.
The construction for , , and .
Denote . Let P be a path in T consisting of vertices of and , . Then . Let be the nontrivial component of . Denote by the transmission of c in and denote by z the number of vertices of . Then
Since if and , we have , . And since q and consequently also z are big, the terms containing z in the above expressions are crucial. Therefore and in general , where . So we conclude that
Now let P be a path consisting of and , . Then . We remark that are just different labels for vertices of P which will be used later. Similarly as above, let be the nontrivial component of . Denote by the transmission of c in and denote by z the number of vertices of . Then
Observe that if , if and if . In any case, we have , and so . And since q is big, analogously as above we conclude that
Let . As shown above, vertices in S have pairwise different transmissions, while the vertices outside S have transmissions as some vertices in S. Since
we have .
Now suppose . Let be a path of length . We attach to both and exactly q pendant vertices and we denote by T the resulting tree, see Figure 2. Then T has vertices, and , so that . Denote . By symmetry, we have , , and if u and v are pendant vertices of T. So it remains to show that the vertices have different transmissions. However, since , by Lemma 2 we get
and so .
Figure 2.
The construction for and .
Now, consider . So, let . If T is a tree with , then and consequently , a contradiction. Hence, either and , in which case T is a star , where , or and , in which case T is a double star , i.e., a graph on vertices obtained by attaching a pendant vertices to one vertex of and b pendant vertices to the other vertex of , where . If T is a star , , then since the central vertex has transmission smaller than is the transmission of pendant vertices. This establishes the case . On the other hand if T is a double star then since pendant vertices adjacent to a common vertex have the same transmission, we have . In the next we consider , where , since , a case already solved by stars. Let be a path in such that and . Then
Since , it is obvious that . Thus. , and so .
Finally, consider . Since there are only two trees T such that , namely the complete graphs and , this part of Theorem 2 is trivial. □
Theorem 2 has the following consequence.
Corollary 1.
For every there are infinitely many trees T such that .
3. Unicyclic Graphs
In this section, we give counterparts of the previous results for unicyclic graphs. We also bound the eccentric complexity in term of Wiener complexity and characterize the pairs such that and there are (infinitely many) unicyclic graphs G with and . We start with the following lemma.
Lemma 3.
Let G be a unicyclic graph with a cycle C. Further, let and let be a neighbour of which is not in C. If then .
Proof.
Observe that is a bridge in G. Hence, has two components, say and . Assume that and , . By the assumptions and by Lemma 1, .
Let T be a tree obtained from G by removing an edge of C which is opposite (i.e., antipodal) to v. Observe that if C has odd length, then there is a unique edge opposite to v, while if C has even length, then there are two edges opposite to v. Obviously, and . Observe also that
Now, consider a path from to v in T. Assume that the length of this path is and denote their vertices by . Since is a bridge in T, we have again. And by Lemma 2 we get or equivalently . Applying Lemma 2 several times we get
which implies and consequently . □
The following statement characterizes all possible pairs , for unicyclic graphs, provided that .
Theorem 3.
Every unicyclic graph G satisfies
Moreover, for any positive integers and with there are infinitely many unicyclic graphs G such that and .
Proof.
Let G be a unicyclic graph with a cycle C of length k. Further, let and be two longest paths starting in different vertices of C and which contain only edges which are not in C. Observe that if the length of is positive, then the path terminates in a pendant vertex of G. Similar statement holds for . Let be the length of , , and let , where . Observe that in each of and , there are at most two vertices with the same transmission, by Lemma 2. If there are three vertices, say , and , in which have the same transmission in G, then two of them are in one of the paths and while the third one is in the other. Without loss of generality we may assume that and . Then by Lemma 2, and so by Lemma 3. If then by Lemma 3, a contradiction. Hence , and by Lemma 2 for every i, . Consequently . Hence, there are not three vertices in which have the same transmission in G. Therefore .
On the other hand and . So , and hence
Now we prove the second result. Let and satisfy . Denote . Let C be a cycle of length and let and be opposite vertices on C. Attach to (resp. ) a path of length (resp. ). Finally, attach to both and exactly pendant vertices, and denote the resulting graph by G, see Figure 3.
Figure 3.
The unicyclic graph on 13 vertices and with odd cycle that has Wiener complexity smaller than eccentric complexity.
Obviously, . Since , we have , and so . Thus, , which means that .
On the other hand, denote by the transmission of in the tree attached to C and denote by the transmission of in C. Then , and similarly for every vertex v of C we have as well. By Lemmas 2 and 3 it holds and by symmetry , . Thus , and so G satisfies the assumptions of the theorem. □
Theorem 3 has the following consequence.
Corollary 2.
For every integer there are infinitely many unicyclic graphs G such that
We remark that the attachment vertices and do not need to be opposite on C if is big enough (compared to ). We can use also even cycles of length and odd cycles, but again must be big enough. Though for small order graphs, one with even cycle are quite abundant, the smallest unicyclic graph G with a cycle of odd length satisfying has 13 vertices, and its cycle has length 9.
4. Graphs with Diameter 3
In this section we solve Problem 1. Observe that if and then , and . Hence, there is no unicyclic graph G satisfying the requirements of Problem 1, by Theorem 3.
Let G be a graph with diameter 3. For every vertex , by we denote the number of vertices of G which are at distance i from u. Denote . We have the following statement.
Lemma 4.
Let G be a graph with diameter 3. Then if and only if all vertices of G have the same value of σ.
Proof.
Let . Then . Since , where , we have , and consequently . Hence, if with , then is equivalent with . □
By Lemma 4, in graphs G of diameter 3 with and , the vertices of eccentricity 3 must have degree greater than is the degree of vertices of eccentricity 2. This looks surprising, nevertheless, there exist such graphs.
Let G be a graph on vertices and let such that . By we denote the graph obtained from G by adding two vertices, v and , where v is connected to all vertices of S and is connected to all vertices of . We have:
Proposition 1.
Let G be a k-regular graph of diameter 2 on vertices. Moreover, let , , such that every vertex of S has a neighbour in and every vertex of has a neighbour in S. Then , and .
Proof.
First observe that . Since every vertex of S has a neighbour in and every vertex of has a neighbour in S, we have for every . Since , we have and .
If then . On the other hand . Moreover, since in G holds , we have . Thus and , by Lemma 4. □
Since there is no 2-regular graph on 8 vertices with diameter 2, the smallest graph G satisfying assumptions of Proposition 1 is the Petersen graph in which S is the set of vertices of one of its 5-cycles. If G is the Petersen graph and S is the set of vertices of one of its 5-cycles, then has 12 vertices.
However, there are also other graphs satisfying the assumptions of Proposition 1.
Lemma 5.
Let be an even number, and let with . Let G be the Cayley graph with and . Finally, let . Then G and S satisfy the assumptions of Proposition 1.
Proof.
Obviously, G is k-regular. Since and , S satisfies the assumptions of Proposition 1. Hence, it remains to prove that .
We only show that , and since G is vertex-transitive, we conclude that . So it is enough to show that if , then either , or or , because is an isomorphism of G. Let and let be a set of t numbers starting with 1 and continuing with difference 3. Then . Since , we have and . Hence, it follows that which means that . And since , we have or or for every r with . Thus, . □
Let G be the Petersen graph or a graph from Lemma 5 and let S be as described. Then has diameter 3 and . However, all these graphs have exactly 2 vertices with eccentricity 3. Next statement shows that there are required graphs with vertices with eccentricity 3 for arbitrary .
Let H be a graph. By we denote a graph on vertices obtained from H by replacing every vertex by . Moreover, vertices from different copies of are adjacent in if and only if these copies of are obtained from adjacent vertices in H.
Theorem 4.
Let G be a graph and such that G and S satisfy the assumptions of Proposition 1. Moreover, let . Then , and .
Proof.
For the statement reduces to Proposition 1. Therefore, in the following we assume . Denote . Let u be a vertex of H obtained from a vertex of G. Then and , and so .
Now let be a vertex of H obtained from v or (i.e., from the vertices of which are not in G). Then , and . Hence as well. Thus, , and by Lemma 4 we have . □
In [] the authors checked all graphs on at most 10 vertices and none of them had and diameter 3. We checked the same for graphs on 11 vertices. Thus, the smallest graph with the above properties has 12 vertices and it is obtained using Proposition 1.
Author Contributions
Investigation, M.K. and R.Š.; Methodology, M.K. and R.Š. All authors have read and agreed to the published version of the manuscript.
Funding
The research was partially supported by Slovenian research agency ARRS, program Nos. P1-0383 and project J1-1692.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
Not applicable.
Acknowledgments
The first author acknowledges partial support by Slovak research grants APVV-15-0220, APVV-17-0428, VEGA 1/0142/17 and VEGA 1/0238/19. The research was partially supported by Slovenian research agency ARRS, program Nos. P1-0383 and project J1-1692.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Alizadeh, Y.; Došlić, T.; Xu, K. On the eccentric complexity of graphs. Bull. Malays. Math. Sci. Soc. 2019, 42, 1607–1623. [Google Scholar] [CrossRef]
- Alizadeh, Y.; Klavžar, S. Complexity of topological indices: The case of connective eccentric index. MATCH Commun. Math. Comput. Chem. 2016, 76, 659–667. [Google Scholar]
- Alizadeh, Y.; Andova, V.; Klavžar, S.; Škrekovski, R. Wiener dimension: Fundamental properties and (5,0)-nanotubical fullerenes. MATCH Commun. Math. Comput. Chem. 2014, 72, 279–294. [Google Scholar]
- Alizadeh, Y.; Klavžar, S. On graphs whose Wiener complexity equals their order and on Wiener index of asymmetric graphs. Appl. Math. Comput. 2018, 328, 113–118. [Google Scholar] [CrossRef]
- Jemilet, D.A.; Rajasingh, I. Wiener dimension of spiders, k-ary trees and binomial trees. Int. J. Pure Appl. Math. 2016, 109, 143–149. [Google Scholar]
- Klavžar, S.; Jemilet, D.A.; Rajasingh, I.; Manuel, P.; Parthiban, N. General transmission lemma and Wiener complexity of triangular grids. Appl. Math. Comput. 2018, 338, 115–122. [Google Scholar] [CrossRef]
- Knor, M.; Škrekovski, R.; Tepeh, A. Mathematical aspects of Wiener index. Ars Math. Contemp. 2016, 11, 327–352. [Google Scholar] [CrossRef]
- Xu, K.; Iršič, V.; Klavžar, S.; Li, H. Comparing Wiener complexity with eccentric complexity. Discret. Appl. Math. 2021, 290, 7–16. [Google Scholar] [CrossRef]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2020 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 (http://creativecommons.org/licenses/by/4.0/).