English

A Linear-Time Algorithm for Finding an Odd Cycle Through Two Specified Vertices

Data Structures and Algorithms 2026-04-28 v1 Combinatorics

Abstract

We present a deterministic linear-time algorithm for finding an odd cycle through two specified vertices in an undirected graph. This is shown in a generalized form as follows: Let Γ\Gamma be any group in which every element is of order at most 22. For a given Γ\Gamma-labeled graph with two specified vertices (or edges), we can determine in linear time whether there exist two cycles with distinct labels that are through both of the two specified vertices (or edges), and find such cycles if yes.

Keywords

Cite

@article{arxiv.2604.23169,
  title  = {A Linear-Time Algorithm for Finding an Odd Cycle Through Two Specified Vertices},
  author = {Takumi Kano and Yutaro Yamaguchi},
  journal= {arXiv preprint arXiv:2604.23169},
  year   = {2026}
}

Comments

17 pages, 9 figures