2026/05/05 by Patricia A. Ebert, Marc Hellmuth · 1 voice
Biochemistry, Genetics and Molecular Biology · Computer Science · #cs.DM #q-bio.PE
paper · pdf · doi:10.48550/arxiv.2605.03827
arxiv published 2026/05/05 · arxiv created 2026/08/06 · arxiv updated 2026/08/07
Least common ancestor (LCA) constraints encode relative-order information in directed acyclic graphs (DAGs) and give rise to a natural constraint-realization problem. Phylogenetic networks provide an important class of DAGs in which such constraints are used to represent local information about evolutionary histories. In this paper, we study the inference of DAGs and phylogenetic networks from LCA-constraints, which specify relative positions of the LCAs associated with pairs of leaves. While previous work has characterized when a set of required LCA-constraints can be realized by a DAG or phylogenetic network, it is natural to consider additional constraints that must be explicitly avoided. We therefore consider the realization problem for pairs (R,F), where R is a set of required LCA-constraints and F is a set of forbidden ones. Since there are several natural ways to formalize what it means for a DAG to avoid a forbidden LCA-constraint, we study three such variants. For each of them, we characterize exactly when there exists a DAG or a phylogenetic network that realizes all constraints in R while avoiding all constraints in F in the respective sense. Our main characterization is based on a closure operator obtained from four elementary inference rules. Based on these characterizations, we derive polynomial-time algorithms that decide the existence of such realizations and construct one whenever it exists. All algorithms developed in this paper are implemented in the freely available Python package RealLCA.