Extremal cacti for the number of connected sets

arXiv:2612.02504 · math.CO · Submitted 2026-11-30 · Read on arXiv

math.CO

Submitted: 2026-11-30

Updated: 2026-11-30

Comments: 20 pages, 5 figures

License: http://creativecommons.org/licenses/by/4.0/

The gist: A connected set of a graph G is a nonempty set of vertices that induces a connected subgraph, and N (G) is the number of connected sets of G.

Abstract

A connected set of a graph G is a nonempty set of vertices that induces a connected subgraph, and N (G) is the number of connected sets of G. A problem posed in 2022 asks for a characterisation of the graphs that minimise or maximise N over all connected graphs with prescribed order n and number of cycles d>1. We solve this problem in the class of cacti, the connected graphs in which every edge belongs to at most one cycle. For all n and d, the minimum of N over the cacti with n vertices and d cycles is 9 times 2 d-3d-8+ e2-4e+3e,(2 d/2+2 d/2), where e=n-1-2d, and it is attained only by the path with e edges whose two ends carry chains of d/2 and d/2 triangles. For d at least1 the maximum is 2 n-1+n-1+d, attained only by the graph formed by d triangles and n-1-2d pendant edges at a common vertex, except when (n,d) is (4,1) or (5,1). These results refine and extend the known ones for trees, unicyclic graphs and bicyclic graphs, and they settle the original problem for d=2. As a corollary, we solve the problem for the cacti with n vertices and at least, or at most, d cycles. We also determine the extremal graphs among all connected graphs with exactly three cycles; there the graph with the fewest connected sets is no longer a cactus. The two extremal cacti are also the extremal cacti for the Wiener index, in the reverse order.

Related papers