The structure of graphs with given number of blocks and the maximum Wiener index
arXiv:1905.02633
Abstract
The Wiener index (the distance) of a connected graph is the sum of distances between all pairs of vertices. In this paper, we study the maximum possible value of this invariant among graphs on vertices with fixed number of blocks . It is known that among graphs on vertices that have just one block, the -cycle has the largest Wiener index. And the -path, which has blocks, has the maximum Wiener index in the class of graphs on vertices. We show that among all graphs on vertices which have blocks, the maximum Wiener index is attained by a graph composed of two cycles joined by a path (here we admit that one or both cycles can be replaced by a single edge, as in the case for example).