arXiv:2609.02317math.OCSep 2026

Manuscript Offprint

arXiv:2609.02317

Characterizations and Complexity of Minimum Forward and Integer Cycle Bases

Gabor Riccardi, Niels Lindner

Abstract

The cycle space of a directed graph is generated by a cycle basis, where, in general, cycles are allowed to have both forward and backward arcs. In a forward cycle, all arcs must follow the given direction. Several open questions remain regarding the complexity of the minimum cycle basis problem for various families of cycle bases, in particular the minimum-weight integral cycle basis problem, and the minimum-weight weakly and strictly fundamental forward cycle basis problems. In this paper, we address these open questions.

First, we study the existence, structure, and computational complexity of minimum-weight forward cycle bases in directed graphs. We give a complete structural characterization of digraphs that admit weakly fundamental (and hence integral) forward cycle bases, showing that this holds if and only if every block is either strongly connected or a single arc. We further provide an easily verifiable characterization of when a strongly connected digraph admits a forward fundamental cycle basis, proving that such a basis exists if and only if the set of directed cycles has cardinality equal to the cycle rank; in this case, the basis is unique and computable in polynomial time, and nonexistence can likewise be certified efficiently. Lastly, we show that while minimum-weight forward fundamental cycle bases can be found in polynomial time whenever they exist, the minimum-weight forward weakly fundamental cycle basis problem is APX-hard via an L-reduction from the minimum-weight weakly fundamental cycle basis problem on digraphs with metric weights.

Second, we introduce the notion of opt-in graphs: the family of graphs for which minimum cycle bases are integral for any weight function. We show that the family of opt-in graphs is minor-closed and hence, by the Robertson–Seymour theorem, is characterized by a finite set of forbidden minors, yielding a non-constructive proof that the opt-in recognition problem is solvable in polynomial time. Lastly, we present an algorithm to check whether a graph is opt-in, and if not, to identify which of its minors belong to the set of forbidden minors. Applying this algorithm, we show that the complete graph KnK_n is opt-in if and only if n≤7n \leq 7.

Keywords: cycle bases, forward cycle bases, fundamental cycle bases, weakly fundamental cycle bases, integer cycle bases, minimum cycle basis, complexity

1 Introduction

Cycle bases provide a compact representation of all cycles in a graph and play a key role in optimization problems such as periodic scheduling, electrical network analysis, and modeling of chemical and biological pathways (see, e.g., Kavitha et al. [8]). Different optimization contexts call for different classes of cycle bases. For instance, aiming at railway timetable optimization, Nachtigall [13] introduced a mixed-integer programming formulation of the periodic event scheduling problem (PESP) based on fundamental cycle bases, which was later extended to integral cycle bases by Liebchen and Peters [9] and to forward cycle bases by Lindner et al. [10] and Masing et al. [12]. The choice of cycle basis can significantly influence computational efficiency, motivating the study of minimum-weight cycle basis problems for each class of cycle bases.

While existence and complexity results are well established for many classes of cycle bases [1], an exception is the computational complexity of the minimum-weight integral cycle basis problem, which remains open. Forward cycle bases are less well understood. In [6], Gleiss, Leydold, and Stadler show that a digraph admits a forward cycle basis if and only if each block is either strongly connected or a single arc, and that a minimum-weight forward cycle basis can be computed in polynomial time. Masing et al. [12] show that forward cycle bases can improve the efficiency of branch-and-cut in integral cycle basis formulations of PESP. They also prove that any graph admits an orientation with a strictly fundamental forward cycle basis, and that a forward integral cycle basis always exists for so-called line-based event-activity networks constructed from a public transport line plan.

Several open questions remain regarding the structure and complexity of both integral and forward cycle bases. These include identifying structural graph properties that guarantee the existence of integral, weakly fundamental, and strictly fundamental forward cycle bases, establishing the computational complexity of deciding their existence, and addressing the optimization challenge of computing a minimum-weight basis within a given class. For instance, while the minimum integral cycle basis problem can be solved on planar graphs using Horton's algorithm over isometric cycles [8], the broader graph classes for which this algorithmic approach remains valid are unknown. Delineating these structural boundaries represents a step toward settling the exact computational complexity of the problem. Finally, from an applied perspective, when a strict forward cycle basis cannot be guaranteed, a new optimization problem arises: determining a cycle basis that maximizes the total number of forward cycles.

The paper is organized as follows. In Section 2, we introduce basic notions and definitions related to directed graphs, cycle spaces, and various classes of cycle bases. Section 3 presents results on the existence of forward cycle bases and characterizations of weakly fundamental and fundamental forward cycle bases. In Section 4, we establish the APX-hardness of the minimum-weight forward weakly fundamental cycle basis problem via an L-reduction from the (non-forward) minimum-weight weakly fundamental cycle basis problem with metric weights. In Section 5, we introduce opt-in graphs – those for which classical minimum cycle basis algorithms return an integral cycle basis for any weight function – and show that this family is minor-closed and hence fully characterized by a finite set of forbidden minors due to the Robertson–Seymour theorem [16]. Section 6 establishes several key structural properties of the set of forbidden minors X\mathcal{X}, and Section 7 presents a recursive algorithm to determine membership in X\mathcal{X}, which we use to fully characterize opt-in-ness for complete graphs. Finally, Section 8 summarizes our contributions and outlines open questions for future research.

This paper extends a previous conference paper [14]. The APX-hardness result in Section 4 and all content in Sections 5-7 are new.