Recognizing Leaf Powers and Pairwise Compatibility Graphs is NP-Complete
Max Dupré la Tour, Manuel Lafond, Ndiamé Ndiaye
TL;DR
This work resolves a long-standing question by showing that recognizing leaf powers and pairwise compatibility graphs is NP-hard, and extends the hardness to a broad hierarchy of generalized leaf powers GLP$(q)$ for every $q\ge 1$. The authors achieve this via a novel reduction from the Triangle Ordinal Clustering (TOC) problem to GLP recognition, exploiting the four-point condition to enforce tree-metric constraints and constructing polynomial-size gadgets that encode triangle-distance orders. They establish GLP$(q)$ membership in NP with a polynomial-size certificate by bounding weights and tree size, and prove that GLP$(q)$ recognition is NP-hard through the inductive GLP$(q)\rightarrow GLP(q+1)$ reduction. The results imply NP-hardness for leaf powers, PCGs, and multi-interval PCGs, and provide a framework bridging TOC realizability with tree-metric graph classes, with potential implications for phylogenetics and related graph-embedding problems.
Abstract
Leaf powers and pairwise compatibility graphs were introduced over twenty years ago as simplified graph models for phylogenetic trees. Despite significant research, several properties of these graph classes remain poorly understood. In this paper, we establish that the recognition problem for both classes is NP-complete. We extend this hardness result to a broader hierarchy of graph classes, including pairwise compatibility graphs and their generalizations, multi interval pairwise compatibility graphs.
