,
Lena Scherzer
,
Samuel Schneider
Creative Commons Attribution 4.0 International license
The geodesic treewidth of a graph G is the smallest k for which there is a partition 𝒫 into geodesics such that G/𝒫 has treewidth k, where G/𝒫 is obtained from G by contracting each part of 𝒫. Based on this notion, row treewidth was developed and is defined for a graph G as the smallest k such that G ⊆ H ⊠ P for some graph H of treewidth k and a path P. Equivalently, the row treewidth of a graph G is the smallest k for which there is a partition 𝒫 into disjoint unions of geodesics that are aligned with respect to some layering such that G/𝒫 has treewidth k. We separate the two notions by showing that bounded row treewidth does not imply bounded geodesic treewidth and by presenting a polynomial-time algorithm to decide whether a graph of treewidth 2 has geodesic treewidth 1, which is known to be NP-hard for row treewidth [Biedl, Eppstein, Ueckerdt, 2025]. More generally, we provide an algorithm to decide whether a given graph has geodesic treewidth at most d that is XP in the treewidth, whereas there is no such algorithm for row treewidth, unless P = NP [Biedl, Eppstein, Ueckerdt, 2025]. On the other hand, we show that computing the geodesic treewidth is NP-hard and that every graph with geodesic treewidth 1 has bounded row treewidth. Moreover, we improve the best known lower bound on the geodesic treewidth of planar graphs to 5.
@InProceedings{merker_et_al:LIPIcs.ESA.2026.126,
author = {Merker, Laura and Scherzer, Lena and Schneider, Samuel},
title = {{Separating Geodesic Structure and Product Structure}},
booktitle = {34th Annual European Symposium on Algorithms (ESA 2026)},
pages = {126:1--126:18},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-445-1},
ISSN = {1868-8969},
year = {2026},
volume = {388},
editor = {Bille, Philip and Pettie, Seth and Storandt, Sabine},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ESA.2026.126},
URN = {urn:nbn:de:0030-drops-272626},
doi = {10.4230/LIPIcs.ESA.2026.126},
annote = {Keywords: product structure, row treewidth, geodesic structure, geodesic treewidth}
}