In this paper, we prove similar results for odd and even cycle lengths. Let denote the set of odd cycle lengths of and denote the longest odd cycle length. In 1992, Gyárfás proved that , and if , then . We first prove that if is a 2-connected non-bipartite graph with , then . Moreover, if , then , and either or . Applying this result, we prove that if , then for , improving the result of Gyárfás. We also construct a class of graphs with but for every . Using our result, we give a short proof of a similar result of and proved by Kenkre and Vishwanathan. Our second part is about even cycle lengths. Let denote the set of even cycle lengths of and denote the longest even cycle length. In 2004, Mihók and Schiermeyer proved that , and if , then . We first prove that if is a 2-connected graph with , then . Moreover, if , then , and either or . Applying this result, we prove that if , then for , improving the result of Mihók and Schiermeyer. We also construct a class of graphs with but for every . Our result can deduce a similar result of and . The above results also improve some results of consecutive odd or even cycle lengths.

生成讲解博客的中文版本

生成AI智能校验的中文版本