Recognizing Leaf Powers and Pairwise Compatibility Graphs is NP-Complete

Max Dupré la Tour, Manuel Lafond, Ndiamé Ndiaye · DOI

Introduction

For over two decades, a significant gap has existed in our understanding of the computational complexity of recognizing certain classes of graphs used to model evolutionary relationships. This research provides a definitive answer, proving that the recognition of "leaf powers" and "pairwise compatibility graphs" (PCGs) is NP-complete. This result carries profound implications for computational biology, specifically in the reconstruction of phylogenetic trees from observed species data.

Problem Definition and Motivation

In the study of evolution, researchers aim to reconstruct the "Tree of Life" by analyzing the relationships between extant species, which represent the leaves of an evolutionary tree. Two primary mathematical models describe these relationships:

  1. Leaf Powers: A graph where an edge exists between two species if their distance in the underlying tree is less than or equal to a threshold $k$.
  2. Pairwise Compatibility Graphs (PCG): A more generalized model where an edge exists if the distance between two species falls within a specific range $[\theta_1, \theta_2]$.

The "recognition problem" asks a fundamental question: Given an arbitrary graph, does there exist a tree structure that can produce it under one of these models? While specific algorithms were known for very small, fixed thresholds, the general complexity of this problem remained one of the most prominent open questions in the field until this work.

Methodological Framework: The TOC Reduction

The authors establish NP-completeness through a sophisticated reduction from the Triangle Ordinal Clustering (TOC) problem. The TOC problem involves finding a tree that satisfies a set of relative distance constraints among triples of points (e.g., "point A is closer to B than it is to C").

The reduction involves several key technical innovations:

  • Gadget Construction: The researchers constructed a complex graph $G_S$ designed to force any valid "leaf root" (the underlying tree) to adhere to the distance constraints specified in a TOC instance.
  • The Four-Point Condition: By leveraging this classical property of tree metrics, the authors demonstrated that local distance constraints within their constructed graph must globally conform to a tree structure.
  • Generalized Leaf Powers (GLP): The authors introduced a hierarchy of graph classes. They showed that the hardness of recognizing the simplest form (leaf powers) propagates through the hierarchy to more complex models like PCGs.

Theoretical Contributions and Bounding the Rank

Beyond the hardness proof, the paper offers several significant insights into the nature of these graph classes:

Unary vs. Binary Encoding

A critical finding is that the problem remains NP-complete even when the threshold $k$ is provided in unary format. This indicates that the computational difficulty is inherent in the structural arrangement of the graph itself, rather than the numerical magnitude of the distance thresholds.

Bounding the Leaf Rank

To place the problem firmly within the complexity class NP, the authors had to show that a solution (the tree) could be verified in polynomial time. They achieved this by proving a concrete upper bound on "leaf rank." Specifically, they showed that if a graph with $n$ vertices is a leaf power, it can be represented by a tree with integer weights and a threshold $k < n \cdot (2n)^n$. This bound ensures that any representing tree can be encoded and checked efficiently.

Smallest Non-PCG Instances

As a byproduct of their theoretical framework, the authors provided a new method for constructing small graphs that cannot be represented as PCGs. They identified a specific graph with only 8 vertices that fails the PCG criteria, contributing to the catalog of minimal non-PCG structures.

Conclusion and Future Directions

By resolving the NP-completeness of leaf power and PCG recognition, this paper closes a long-standing theoretical gap. However, it also opens new avenues for research. While the general problem is now known to be hard, the complexity for specific fixed thresholds $k > 6$ remains unknown. Furthermore, the relationship between leaf powers and broader classes, such as graphs of mim-width 1, continues to be a fertile ground for investigation. Finally, narrowing the gap between the current lower bounds and the newly established upper bound for leaf rank remains a challenge for future algorithmic refinement.

Summary updated

BibTeX
@inproceedings{tour2026recognizing,
  author = {Max Dupré la Tour and Manuel Lafond and Ndiamé Ndiaye},
  title = {{Recognizing Leaf Powers and Pairwise Compatibility Graphs is NP-Complete}},
  booktitle = {SODA},
  year = {2026},
  doi = {10.1137/1.9781611978971.219},
}
Figure