Invitation to the subpath number
Martin Knor, Jelena Sedlar, Riste Škrekovski, Yu Yang
TL;DR
The paper investigates the subpath number $pn(G)$, the total count of all subpaths including length zero, and proves its $\#P$-hardness to compute. It derives exact formulas for foundational cases (trees, unicyclic graphs, and cycles) and establishes global extremal results: $pn$ is minimized by trees and maximized by the complete graph $K_n$, with the maximum among bipartite graphs attained by $K_{\lceil n/2\rceil,\lfloor n/2\rfloor}$. It then analyzes cycle-chain graphs $G(S)$, providing a closed-form expression for $pn(G(S))$ and identifying kink chains as maximizers within a fixed cycle-length pattern, while linear and almost-linear chains minimize; special cases include ladder and hexagonal chains with explicit bounds. The work connects to chemistry through benzenoid graphs and outlines conjectures about regular and triangle-free graphs, offering several directions for future research.
Abstract
In this paper we count all the subpaths of a given graph G; including the subpaths of length zero, and we call this quantity the subpath number of G. The subpath number is related to the extensively studied number of subtrees, as it can be considered as counting subtrees with the additional requirement of maximum degree being two. We first give the explicit formula for the subpath number of trees and unicyclic graphs. We show that among connected graphs on the same number of vertices, the minimum of the subpath number is attained for any tree and the maximum for the complete graph. Further, we show that the complete bipartite graph with partite sets of almost equal size maximizes the subpath number among all bipartite graphs. The explicit formula for cycle chains, i.e. graphs in which two consecutive cycles share a single edge, is also given. This family of graphs includes the unbranched catacondensed benzenoids which implies a possible application of the result in chemistry. The paper is concluded with several directions for possible further research where several conjectures are provided.
