English

Layer-Based Width for PAFP

Data Structures and Algorithms 2026-05-13 v1 Discrete Mathematics

Abstract

The Path Avoiding Forbidden Pairs problem (PAFP) asks whether, in a directed graph GG with terminals s,ts,t and a set F\mathcal{F} of forbidden vertex pairs, there is an ss-tt 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 GFG\cup\mathcal{F}, obtained by adding to GG one arc per forbidden pair, oriented according to a fixed reachability-compatible order. Let the BFS layer LdL_d be all vertices at directed shortest-path distance dd from ss, where the BFS-width from ss is maxdLd\max_d |L_d|. We show if GFG\cup\mathcal{F} has BFS-width bb from ss and only β\beta arcs going from a later BFS layer to an earlier one, then PAFP is FPT parameterized by b+βb+\beta. 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 22 and only kk backward input arcs, then PAFP can be decided in 2kIO(1)2^k |I|^{O(1)} time, with unrestricted forbidden pairs. This width-22 result is tight: inspection of a classical reduction shows NP-completeness on input DAGs of BFS-width 33 with no backward input arcs. Moreover, we study exact-length layers in the input graph, where the dd-th layer consists of the vertices reachable from ss by a directed path of length exactly dd. For DAGs of exact-length width at most 22, 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 33. 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 ss-tt paths.

Keywords

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