Exact and heuristic computation of the scanwidth of directed acyclic graphs

Journal Article (2026)
Author(s)

Niels Holtgrefe (TU Delft - Discrete Mathematics and Optimization)

Leo van Iersel (TU Delft - Discrete Mathematics and Optimization)

Mark Jones (Middlesex University)

DOI related publication
https://doi.org/10.1016/j.jcss.2026.103802 Final published version
More Info
expand_more
Publication Year
2026
Language
English
Journal title
Journal of Computer and System Sciences
Volume number
160
Article number
103802
Downloads counter
11
Reuse Rights

Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.

Abstract

To measure the tree-likeness of a directed acyclic graph (DAG), a new width parameter that considers the directions of the arcs was recently introduced: scanwidth. We present the first algorithm that efficiently computes the exact scanwidth of general DAGs. For DAGs with one root and scanwidth k it runs in O(k⋅nk⋅m) time. The algorithm also functions as an FPT algorithm with complexity O(24ℓ−1⋅ℓ⋅n+n2) for phylogenetic networks of level-ℓ, a type of DAG used to depict evolutionary relationships among species. Our algorithm performs well in practice, being able to compute the scanwidth of synthetic networks up to 30 reticulations and 100 leaves within 500 seconds. Furthermore, we propose a heuristic that obtains an average practical approximation ratio of 1.5 on these networks. While we prove that the scanwidth is bounded from below by the treewidth of the underlying undirected graph, experiments suggest that for networks the parameters are close in practice.