Upward planar drawings with two slopes
Abstract
In an upward planar 2-slope drawing of a digraph, edges are drawn as straight-line segments in the upward direction without crossings using only two different slopes. We investigate whether a given upward planar digraph admits such a drawing and, if so, how to construct it. For the fixed embedding scenario, we give a simple characterisation and a linear-time construction by adopting algorithms from orthogonal drawings. For the variable embedding scenario, we describe a linear-time algorithm for single-source digraphs, a quartic-time algorithm for series-parallel digraphs, and a fixed-parameter tractable algorithm for general digraphs. For the latter two classes, we make use of SPQR-trees and the notion of upward spirality. As an application of this drawing style, we show how to draw an upward planar phylogenetic network with two slopes such that all leaves lie on a horizontal line.
- Publication:
-
arXiv e-prints
- Pub Date:
- June 2021
- DOI:
- 10.48550/arXiv.2106.02839
- arXiv:
- arXiv:2106.02839
- Bibcode:
- 2021arXiv210602839K
- Keywords:
-
- Computer Science - Discrete Mathematics;
- Computer Science - Computational Geometry;
- 68R10;
- 05C62
- E-Print:
- Journal of Graph Algorithms and Applications, 26(1):171-198, 2022