An ErdÅs-Gallai type theorem for vertex colored graphs
arXiv:1712.04388 · doi:10.1007/s00373-019-02026-1
Abstract
While investigating odd-cycle free hypergraphs, GyÅri and Lemons introduced a colored version of the classical theorem of ErdÅs and Gallai on $P_k$-free graphs. They proved that any graph $G$ with a proper vertex coloring and no path of length $2k+1$ with endpoints of different colors has at most $2kn$ edges. We show that ErdÅs and Gallai's original sharp upper bound of $kn$ holds for their problem as well. We also introduce a version of this problem for trees and present a generalization of the ErdÅs-Sós conjecture.