Simultaneous Drawing of Layered Trees
Julia Katheder, Stephen G. Kobourov, Axel Kuckuk, Maximilian Pfister, Johannes Zink
TL;DR
This work tackles crossing minimization in layered drawings of forests of rooted trees with a fixed leaf order on layer $1$. For the case of two trees on any number of layers, it provides a polynomial-time dynamic program that preserves the prescribed planar embeddings and yields a minimum-crossing drawing, running in $O(n^3)$. For three layers with an arbitrary number of trees, it presents an XP-time algorithm in the number of trees by reducing the problem to a shortest-path computation on a $k$-dimensional grid graph, achieving $O(n^k)$ time. The paper further discusses extensions to planar graphs under certain conditions and outlines open questions, including the complexity for $k\ge3$ and $\ell\ge4$ and potential fixed-parameter tractability results. Overall, it delineates a clear boundary between tractable and parameterized cases for simultaneous layered tree drawings and provides practical methods for drawing multiple trees with minimal crossings.
Abstract
We study the crossing-minimization problem in a layered graph drawing of planar-embedded rooted trees whose leaves have a given total order on the first layer, which adheres to the embedding of each individual tree. The task is then to permute the vertices on the other layers (respecting the given tree embeddings) in order to minimize the number of crossings. While this problem is known to be NP-hard for multiple trees even on just two layers, we describe a dynamic program running in polynomial time for the restricted case of two trees. If there are more than two trees, we restrict the number of layers to three, which allows for a reduction to a shortest-path problem. This way, we achieve XP-time in the number of trees.
