Minimum-Width Drawing of Trees with Sized Vertices
Abstract
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 \textsc{Min-Width Tree Drawing with Reordering} (\textsc{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 \textsf{NP}-complete, even on binary trees with unit-width vertices. We present a mixed integer linear program that solves \textsc{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 and by up to on individual instances. The heuristic computes its layouts in under a second and, when the MILP proves optimality, it stays within of the optimal width in three-quarters of all instances.
Create a lesson
Metadata
- Comments
- Accepted at the 34th International Symposium on Graph Drawing and Network Visualization (GD 2026)
Related papers
Minimum Spanning Trees for Square Crop Plots
Shared title terminologycs.CGMingyang Gong, Adiesha Liyanage, Braeden Sopp et al.
A Sublinear Approximation Algorithm for Minimum Dilation Trees in the Plane
Shared title terminologycs.CGSarita de Berg, Jacobus Conradi, Peter Kramer et al.
Lunar Generalizations of the Euclidean Minimum Spanning Tree in the Plane and their Expected Costs
Shared title terminologycs.CGOndřej Draganov, Herbert Edelsbrunner, Sophie Rosenmeier et al.
Exact Algorithms for Minimum Steiner Point Trees
Shared title terminologycs.CGEungyu Woo, Donghoon Shin
Two-Layer Drawings with a Tree on Top: Vertex Splits and Fixed-Parameter Algorithms
Shared title terminologycs.CGAlexander Firbas, Robert Ganian, Sylvain Meunier et al.
How Close is a Tree to a Euclidean Minimum Spanning Tree?
Shared title terminologycs.CGTodor Antić, Jiří Fiala, Jelena Glišić et al.