Skip to content

Minimum-Width Drawing of Trees with Sized Vertices

Jul 2026 · arXiv.org · Vol abs/2607.27445 · 0 citations · 27 references
Computer Science

TL;DR

This paper presents a mixed integer linear program that solves the problem of Min-Width Tree Drawing with Reordering exactly on moderately sized instances, and a heuristic that is fast and delivers good results in practice.

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 $\approx20\%$ and by up to $\approx55\%$ 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.

View source

Similar papers

Preprint Sep 2026

Vertex-Coloring Edge-Weighting: Kernelization and Generalization

This work shows that both pre-weighted problems have polynomial kernels when parameterized by $k, and shows that both problems are W[1]-hard parameterized by treedepth, answering another question from earlier work.

Shubhada Aute, Fahad Panolan, Geevarghese Philip · 0 citations
Preprint Sep 2026

Maximum Matching-Match: Hardness and Approximation

In this paper, we study \textsc{MaxMMP}, an optimization variant of the Matching-Match Puzzle introduced by Iburi and Uehara (FUN 2024). Given a graph, a partial vertex coloring, and a multiset of colored sticks, the goal is to complete the coloring and assign the sticks to graph edges so as to maximize the number of s...

I. Dumitru, Adrian Miclaus, Alexandru Popa · 1 citation
Preprint Sep 2026

Structural Complexity of Matching-Match: Dense and Sparse Graphs

The Matching-Match puzzle asks whether the vertices of a fixed graph can be colored so that the multiset of color pairs induced by its edges is exactly a prescribed multiset. We study how the complexity of this realization problem depends on the host graph. On the dense side, we give a polynomial-time algorithm for com...

I. Dumitru, Adrian Miclaus, Alexandru Popa · 0 citations
Preprint Aug 2026

Space-Efficient Hierholzer for Undirected Graphs

We present a simple linear-time algorithm that outputs an Eulerian tour of an undirected multigraph with $n$ vertices and $m$ edges, if one exists, in $O(m)$ time and using $O(n)$ words of working memory. The input is given as read-only adjacency lists, and the output is written to an append-only stream in traversal or...

Elena Grigorescu, Ziad Ismaili Alaoui, Tamio-Vesa Nakajima et al. · 0 citations
Preprint Aug 2026

Not All Degree Constraints Are Created Equal when Computing Spanning Trees

This paper proves that the former two problems are fixed-parameter tractable when parameterized by the treedepth of the input graph, and shows that Set of Degrees MST remains W[1]-hard parameterized by treedepth, even when combined with the feedback vertex number.

Narek Bojikian, Alexander Firbas, Robert Ganian et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.