,
Colin Geniet
,
Eun Jung Kim
,
Sungmin Moon
Creative Commons Attribution 4.0 International license
A signed tree model of a graph G is a compact binary structure consisting of a rooted binary tree whose leaves are bijectively mapped to the vertices of G, together with 2-colored edges xy, called transversal pairs, interpreted as bicliques or anti-bicliques whose sides are the leaves of the subtrees rooted at x and at y. We design an algorithm that, given such a representation of an unweighted n-vertex graph G with p transversal pairs, and given a source v ∈ V(G), computes a shortest-path tree rooted at v in G in time O(p log n). A wide variety of graph classes are such that for all n, their n-vertex graphs admit signed tree models with O(n) transversal pairs: for instance, those of bounded symmetric difference (hence, in particular, those of bounded flip-width, merge-width, twin-width, and degeneracy), more generally of bounded sd-degeneracy, as well as interval graphs.
As applications of our Single-Source Shortest Path algorithm and new techniques, we
- improve the runtime of the fixed-parameter algorithm for first-order model checking on graphs given with a witness of low merge-width from cubic [Dreier & Toruńczyk, STOC '25] to quadratic;
- give an O(n² log n)-time algorithm for All-Pairs Shortest Path on graphs given with a witness of low merge-width, generalizing a result known for twin-width [Twin-Width III, SICOMP '24];
- significantly extend and simplify an O(n² log n)-time algorithm for multiplying two n × n matrices A, B of bounded twin-width in [Twin-Width V, STACS '23]: now A solely has to be an adjacency matrix of a graph of bounded twin-width and B can be arbitrary;
- give an O(n² log² n)-time algorithm for All-Pairs Shortest Path on graphs of bounded twin-width, bypassing the need for contraction sequences in [Twin-Width III, SICOMP '24; Bannach et al. STACS '24];
- give an O(n^{7/3} log² n)-time algorithm for All-Pairs Shortest Path on graphs of symmetric difference O(n^{1/3}). The second and the last two items imply the same for Diameter, Radius, Eccentricity, Wiener Index, etc. The last three items do not assume any witness to be given as part of the input.
@InProceedings{bonnet_et_al:LIPIcs.ICALP.2026.40,
author = {Bonnet, \'{E}douard and Geniet, Colin and Kim, Eun Jung and Moon, Sungmin},
title = {{Fast Shortest Path in Graphs with Sparse Signed Tree Models and Applications}},
booktitle = {53rd International Colloquium on Automata, Languages, and Programming (ICALP 2026)},
pages = {40:1--40:23},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-428-4},
ISSN = {1868-8969},
year = {2026},
volume = {374},
editor = {Bhattacharya, Sayan and Nanongkai, Danupon and Benedikt, Michael and Puppis, Gabriele},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ICALP.2026.40},
URN = {urn:nbn:de:0030-drops-264297},
doi = {10.4230/LIPIcs.ICALP.2026.40},
annote = {Keywords: Shortest path, tree model, twin-width, merge-width, symmetric difference}
}