The maximum Wiener index of a uniform hypergraph
Abstract
The Wiener index of a (hyper)graph is calculated by summing up the distances between all pairs of vertices. We determine the maximum possible Wiener index of a connected -vertex -uniform hypergraph and characterize for every all hypergraphs attaining the maximum Wiener index.
1 Introduction
The Wiener index [16], also known as the total distance, is a well-studied parameter in graph theory. For a given graph , the Wiener index of the graph is denoted by where
The Wiener index of a graph with a fixed number of vertices is linearly related to the average distance of the graph, which is itself another important metric parameter in random graph theory. Additionally, it is related to parameters of random walks such as cover cost and Kemeny’s constant [8, 12]. Its generalization of Steiner-Wiener index [13] is related to the average traveling salesman problem distance [5].
It is natural to investigate the extremal properties of the Wiener index. Among the most basic results on the total distance of a graph, there are folklore results that for every connected graph and a tree with vertices, we have
Here is the -vertex complete graph, is a path with vertices and is a star with vertices. Proofs can be found in [4].
While these statements and proofs might be straightforward and easy, the relationship between the Wiener index and other graph parameters or specific classes of graphs is still being explored. For example among all graphs with a given diameter and order the minimum Wiener index is determined in [15]. In [3] the maximum Wiener index is determined up to the asymptotics of the second-order term. The authors in [6, 7, 9] have studied planar graphs and determined sharp bounds for the maximum of the Wiener index in Apollonian planar graphs and maximal planar graphs.
In this work, we study the Wiener index of -uniform hypergraphs. Generalizing fundamental results in graph theory to hypergraphs gives a broader insight into the problem. A few examples of such extensions of classical results towards the hypergraph setting are given in [14, 11]. A -uniform hypergraph of order can be represented as a pair where is a vertex set with elements and is a family of -sets, called hyperedges or just edges. Note that in the case of , a -uniform hypergraph is a graph. In order to introduce a distance between the vertices of a hypergraph, at first we need to introduce a concept of paths for hypergraphs. In this work we follow the celebrated definition of Berge [1]: a Berge path of a hypergraph is a sequence of distinct vertices and hyperedges of where for every for some . A hypergraph is connected if there is a Berge path for every pair of vertices. The length of a Berge path is the number of hyperedges in the Berge path. Naturally the distance between two vertices is the length of the shortest Berge path containing and in the hypergraph , and it is denoted by . Note that when the ground hypergraph is known from the context we write instead of . The Wiener index of a connected hypergraph is defined as
A connected hypergraph is called a hyper-tree when it can be represented by a tree in the graph sense, on the same vertex set, where every edge of induces a connected subgraph of , equivalent formulations are collected in [2, Chap. 5, Sec. 4]. When restricting to linear -uniform hyper-trees (connected hypergraphs with vertices and edges), it was shown in [10] that for every such hyper-tree , , where and are the linear path and star, see Figure 1. Furthermore, the corresponding extremal hyper-trees are unique.
Considering arbitrary connected -uniform hypergraphs, or hyper-trees, the extremal hypergraphs for maximizing/minimizing the Wiener index are not always unique. Determining the lower bound for the Wiener index of -uniform hypergraphs is trivial, as all distances between the distinct vertices are at least .
Proposition 1.
Any connected -uniform hypergraph satisfies
We remark that, in huge contrast with the graph case, equality can also be attained by very sparse hypergraphs.
Remark 2.
Equality in Proposition 1 occurs if and only if for every pair of vertices there is a hyperedge incident to both. This is the case when the hypergraph corresponds with a projective plane. This is an example of a sparse hypergraph minimizing the Wiener index. Also hyper-trees can attain equality when , e.g. the hyper-tree with underlying tree and every subtree of order being a hyperedge.
On the other hand, maximizing the Wiener index for -uniform hypergraphs is a relatively complex problem. In this note, we determine the maximum possible Wiener index of a connected -vertex -uniform hypergraph and characterize all hypergraphs attaining the maximum. First, we define the class of extremal hypergraphs. For integers and with , let be the set and be the set . For given integers and with , let and be integers such that and . For every such that , let be the following tight-path. Let the vertex set of be and the edge set be For , and every integer , such that , we define a -uniform hypergraph where and See Figure 2 for examples of both and . Our main result can now be stated as follows.
Theorem 1.
Let be a connected -uniform hypergraph of order . If then with equality if and only if If , then with equality if and only if for some
2 Proof of Theorem 1
Let be an -vertex -uniform connected hypergraph with maximum Wiener index. Then we may assume that for every edge of , the hypergraph 111We abuse notation and write instead of . is not connected, otherwise we would remove the edge and the Wiener index would not decrease. Proving Theorem 1 for edge-minimal hypergraphs is sufficient since adding an edge to one of the extremal hypergraphs from Theorem 1 decreases the Wiener index. The following lemma shows that there is a hyperedge in , such that hypergraph an contains at most one connected component of size greater than one.
Lemma 3.
Let be a -uniform hypergraph such that the deletion of any edge disconnects the hypergraph. Then there is an edge of such that the hypergraph contains at most one connected component of size greater than one.
Proof.
Let be a hyperedge of such that the size of the largest connected component of is the maximum. Then either we are done or contains two connected components and each containing a hyperedge such that is a component with the maximum size. Let be a hyperedge of , the hypergraph contains a component of size larger than since it contains a component containing with all vertices of as well, a contradiction. ∎
By Lemma 3 and the edge-minimality of , there is an edge of such that consists of a connected component of order on a vertex set and isolated vertices for some . Let be the largest connected component of .
Now we proceed by induction, noting that the theorem trivially holds for . Assume Theorem 1 holds for every order strictly smaller than . Let be an isolated vertex of such that is the maximum possible. Then we have
(1) |
By induction, we have an upper bound on For this, we compute the Wiener index of the paths and . When for some integers and such that , the Wiener index of the path equals
Note that the Wiener index of is independent of the choice of .
We also need to find an upper bound for . To this end, we define the following two functions:
Claim 4.
Let for integers and for , then we have
Proof.
Let be the eccentricity of , i.e. For , let be the number of vertices in which are at distance from . Let for Now by definition, we have and . Note that and for every since for every such there is an edge whose vertices are all at distance and from
First, we bound the eccentricity. Let be a vertex for which and an edge containing the vertex . When either or we have and hence cannot be disjoint of these vertices at distance at most from , thus we have Now we conclude
In the case that we similarly have and again cannot be disjoint from at least vertices in , thus The computation now analogously results into ∎
Finally, it is sufficient to prove that the upper bound for the right-hand side of Inequality (1) is always bounded by the claimed upper bound. For , we have
which also has been verified by Maple222See https://github.com/StijnCambie/WienerHypergraph.
Equality holds if or . If equality occurs if and only if and for every fixed the only hypergraph attaining the maximum Wiener index is . If equality occurs if and only if , since and by the induction hypothesis the unique connected -vertex -uniform hypergraph maximizing the Wiener index is .
References
- [1] C. Berge. Graphs and hypergraphs. North-Holland, 1973.
- [2] C. Berge. Hypergraphs, volume 45 of North-Holland Mathematical Library. North-Holland Publishing Co., Amsterdam, 1989. Combinatorics of finite sets, Translated from the French.
- [3] S. Cambie. An asymptotic resolution of a problem of Plesník. Journal of Combinatorial Theory, Series B, 145:341–358, 2020.
- [4] S. Cambie. Extremal aspects of distances and colourings in graphs. PhD thesis, Radboud University, 2022.
- [5] S. Cambie. The average solution of a TSP instance in a graph. arXiv e-prints, page arXiv:2209.03409, Sept. 2022.
- [6] Z. Che and K. L. Collins. An upper bound on Wiener indices of maximal planar graphs. Discrete Applied Mathematics, 258:76–86, 2019.
- [7] É. Czabarka, P. Dankelmann, T. Olsen, and L. A. Székely. Wiener index and remoteness in triangulations and quadrangulations. Discrete Mathematics & Theoretical Computer Science, 23, 2021.
- [8] A. Georgakopoulos and S. Wagner. Hitting times, cover cost, and the Wiener index of a tree. J. Graph Theory, 84(3):311–326, 2017.
- [9] D. Ghosh, E. Győri, A. Paulos, N. Salia, and O. Zamora. The maximum Wiener index of maximal planar graphs. Journal of Combinatorial Optimization, 40(4):1121–1135, 2020.
- [10] H. Guo, B. Zhou, and H. Lin. The Wiener index of uniform hypergraphs. MATCH Commun. Math. Comput. Chem., 78(1):133–152, 2017.
- [11] E. Győri and N. Lemons. Hypergraphs with no cycle of a given length. Combin. Probab. Comput., 21(1-2):193–201, 2012.
- [12] J. Jang, S. Kim, and M. Song. Kemeny’s constant and Wiener index on trees. arXiv e-prints, page arXiv:2209.11271, Sept. 2022.
- [13] X. Li, Y. Mao, and I. Gutman. The Steiner Wiener index of a graph. Discuss. Math. Graph Theory, 36(2):455–465, 2016.
- [14] D. Mubayi. A hypergraph extension of Turán’s theorem. J. Combin. Theory Ser. B, 96(1):122–134, 2006.
- [15] J. Plesník. On the sum of all distances in a graph or digraph. Journal of Graph Theory, 8(1):1–21, 1984.
- [16] H. Wiener. Structural determination of paraffin boiling points. J. Amer. Chem. Soc. , 69:17–20, 1947.