paper

Vertex-Based Localization of Erdős-Gallai Theorems for Paths and Cycles

arXiv:2504.01501

Abstract

For a simple graph , let and denote the number of vertices and edges in , respectively. The Erdős-Gallai theorem for paths states that in a simple -free graph, , where denotes a path with length (that is, with edges). In this paper, we generalize this result as follows: For each , let be the length of the longest path that contains . We show that \[m \leq \sum_{v \in V(G)} \frac{p(v)}{2}\] The Erdős-Gallai theorem for cycles states that in a simple graph with circumference (that is, the length of the longest cycle) at most , we have . We strengthen this result as follows: For each , let be the length of the longest cycle that contains , or if is not part of any cycle. We prove that \[m \leq \left( \sum_{v \in V(G)} \frac{c(v)}{2} \right) - \frac{c(u)}{2}\] where denotes the circumference of . \newline Furthermore, we characterize the class of extremal graphs that attain equality in these bounds.