Survey of Results on the ModPath and ModCycle Problems
Antoine Amarilli
TL;DR
This survey compiles known complexity results for $\mathsf{ModPath}_{p,q}$ and $\mathsf{ModCycle}_{p,q}$, which ask for simple paths or cycles with lengths congruent to $p$ modulo $q$ in graphs. It presents a network of reductions between path and cycle variants, analyzes behavior across graph classes (directed, bounded-treewidth, high connectivity), and summarizes both exact and parity-based results, special-case open questions, and extensions to multiple disjoint structures. The key contributions include a taxonomy of tractability for fixed $q$, the role of graph structure (treewidth, degree, and connectivity) in enabling PTIME algorithms, and connections to parity, Erdős–Pósa properties, and graph decompositions. These findings guide algorithm design for constrained-length subgraph problems and illuminate how structural graph properties influence the feasibility of modular-length constraints.
Abstract
This note summarizes the state of what is known about the tractability of the problem ModPath, which asks if an input undirected graph contains a simple st-path whose length satisfies modulo constraints. We also consider the problem ModCycle, which asks for the existence of a simple cycle subject to such constraints. We also discuss the status of these problems on directed graphs, and on restricted classes of graphs. We explain connections to the problem variant asking for a constant vertex-disjoint number of such paths or cycles, and discuss links to other related work.
