,
Oscar Navarro
,
Stephen G. Kobourov
Creative Commons Attribution 4.0 International license
Trees arise in many applications and computing nice tree layouts is a classical problem in information visualization. In many practical settings, vertices need to be represented as rectangles with a given width and height rather than as points. When an order over the children of each vertex is given, polynomial-time algorithms are known that produce drawings adhering to various drawing conventions. However, in many applications, the order of children carries no semantic meaning, and choosing it well can significantly reduce the drawing’s width. In this paper, we study the problem Min-Width Tree Drawing with Reordering (MWD): given a rooted tree whose vertices have prescribed widths, find a sibling order at each internal vertex that minimizes the width of the resulting layered drawing. We show that the problem is NP-complete, even on binary trees with unit-width vertices. We present a mixed integer linear program that solves MWD exactly on moderately sized instances, and a heuristic that is fast and delivers good results in practice. We evaluate both approaches against a baseline on synthetic and real-world datasets, where reordering reduces drawing width by a median of ≈20% and by up to ≈55% on individual instances. The heuristic computes its layouts in under a second and, when the MILP proves optimality, it stays within 25% of the optimal width in three-quarters of all instances.
@InProceedings{wallinger_et_al:LIPIcs.GD.2026.7,
author = {Wallinger, Markus and Navarro, Oscar and Kobourov, Stephen G.},
title = {{Minimum-Width Drawing of Trees with Sized Vertices}},
booktitle = {34th International Symposium on Graph Drawing and Network Visualization (GD 2026)},
pages = {7:1--7:18},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-452-9},
ISSN = {1868-8969},
year = {2026},
volume = {396},
editor = {L\"{o}ffler, Maarten and Miksch, Silvia},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.GD.2026.7},
URN = {urn:nbn:de:0030-drops-279028},
doi = {10.4230/LIPIcs.GD.2026.7},
annote = {Keywords: Tree drawing, sized vertices, minimum width, integer linear programming, heuristics}
}