English

Fast Shortest Path in Graphs With Sparse Signed Tree Models and Applications

Data Structures and Algorithms 2026-02-19 v1 Discrete Mathematics Combinatorics

Abstract

A signed tree model of a graph GG is a compact binary structure consisting of a rooted binary tree whose leaves are bijectively mapped to the vertices of GG, together with 2-colored edges xyxy, called transversal pairs, interpreted as bicliques or anti-bicliques whose sides are the leaves of the subtrees rooted at xx and at yy. We design an algorithm that, given such a representation of an nn-vertex graph GG with pp transversal pairs and a source vV(G)v \in V(G), computes a shortest-path tree rooted at vv in GG in time O(plogn)O(p \log n). A wide variety of graph classes are such that for all nn, their nn-vertex graphs admit signed tree models with O(n)O(n) transversal pairs: for instance, those of bounded symmetric difference, 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 and Toru\'nczyk, STOC '25] to quadratic; - give an O(n2logn)O(n^2 \log n)-time algorithm for All-Pairs Shortest Path (APSP) on graphs given with a witness of low merge-width, generalizing a result known on twin-width [Twin-Width III, SICOMP '24]; - extend and simplify an O(n2logn)O(n^2 \log n)-time algorithm for multiplying two n×nn \times n matrices A,BA, B of bounded twin-width in [Twin-Width V, STACS '23]: now AA solely has to be an adjacency matrix of a graph of bounded twin-width and BB can be arbitrary; - give an O(n2log2n)O(n^2 \log^2 n)-time algorithm for APSP 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(n7/3log2n)O(n^{7/3} \log^2 n)-time algorithm for APSP on graphs of symmetric difference O(n1/3)O(n^{1/3}).

Keywords

Cite

@article{arxiv.2602.16605,
  title  = {Fast Shortest Path in Graphs With Sparse Signed Tree Models and Applications},
  author = {Édouard Bonnet and Colin Geniet and Eun Jung Kim and Sungmin Moon},
  journal= {arXiv preprint arXiv:2602.16605},
  year   = {2026}
}

Comments

28 pages, 2 figures

R2 v1 2026-07-01T10:41:36.322Z