Layer-Based Width for PAFP
Abstract
The Path Avoiding Forbidden Pairs problem (PAFP) asks whether, in a directed graph with terminals and a set of forbidden vertex pairs, there is an - path that contains at most one endpoint from each forbidden pair. We initiate the study of PAFP through a layer-based width measure. Our first focus is the union digraph , obtained by adding to one arc per forbidden pair, oriented according to a fixed reachability-compatible order. Let the BFS layer be all vertices at directed shortest-path distance from , where the BFS-width from is . We show if has BFS-width from and only arcs going from a later BFS layer to an earlier one, then PAFP is FPT parameterized by . The backward-arc hypothesis is essential: we show PAFP remains NP-complete when the union digraph is a DAG with BFS-width 2. We also show if the input DAG has BFS-width at most and only backward input arcs, then PAFP can be decided in time, with unrestricted forbidden pairs. This width- result is tight: inspection of a classical reduction shows NP-completeness on input DAGs of BFS-width with no backward input arcs. Moreover, we study exact-length layers in the input graph, where the -th layer consists of the vertices reachable from by a directed path of length exactly . For DAGs of exact-length width at most , we show PAFP is polynomial-time decidable by a 2-SAT encoding of fixed-length paths. This bound is tight: the same classical reduction yields NP-completeness on DAGs of exact-length width . Unlike previously known polynomial-time regimes for PAFP, which restrict the forbidden-pair set in order to obtain tractability, our two input-graph tractability results allow unrestricted forbidden pairs and input graphs with exponentially many - paths.
Cite
@article{arxiv.2605.12457,
title = {Layer-Based Width for PAFP},
author = {Samuel German},
journal= {arXiv preprint arXiv:2605.12457},
year = {2026}
}
Comments
Accepted to IWOCA 2026; proceedings version to appear in Springer LNCS