A rectangular drawing of a planar graph G is a planar drawing of G in which vertices are mapped to grid points, edges are mapped to horizontal and vertical straight-line segments, and faces are drawn as rectangles. Sometimes this latter constraint is relaxed for the outer face. In this paper, we study rectangular drawings in which the edges have unit length. We show a complexity dichotomy for the problem of deciding the existence of a unit-length rectangular drawing, depending on whether the outer face must also be drawn as a rectangle or not. Specifically, we prove that the problem is NP-complete for biconnected graphs when the drawing of the outer face is not required to be a rectangle, even if the sought drawing must respect a given combinatorial embedding, whereas it is polynomial-time solvable, both in the fixed and the variable embedding settings, if the outer face is required to be drawn as a rectangle. Furthermore, we provide a linear-time algorithm for deciding whether a plane graph admits an embedding-preserving unit-length rectangular drawing if the drawing of the outer face is prescribed. As a by-product of our research, we provide the first polynomial-time algorithm to test whether a planar graph G admits a rectangular drawing, for general instances of maximum degree 4.
Alegría, C., Da Lozzo, G., Di Battista, G., Frati, F., Grosso, F., Patrignani, M. (2024). Unit-length Rectangular Drawings of Graphs. JOURNAL OF GRAPH ALGORITHMS AND APPLICATIONS, 28(1), 403-437 [10.7155/jgaa.v28i1.2996].
Unit-length Rectangular Drawings of Graphs
Da Lozzo, Giordano;Di Battista, Giuseppe;Frati, Fabrizio;Grosso, Fabrizio;Patrignani, Maurizio
2024-01-01
Abstract
A rectangular drawing of a planar graph G is a planar drawing of G in which vertices are mapped to grid points, edges are mapped to horizontal and vertical straight-line segments, and faces are drawn as rectangles. Sometimes this latter constraint is relaxed for the outer face. In this paper, we study rectangular drawings in which the edges have unit length. We show a complexity dichotomy for the problem of deciding the existence of a unit-length rectangular drawing, depending on whether the outer face must also be drawn as a rectangle or not. Specifically, we prove that the problem is NP-complete for biconnected graphs when the drawing of the outer face is not required to be a rectangle, even if the sought drawing must respect a given combinatorial embedding, whereas it is polynomial-time solvable, both in the fixed and the variable embedding settings, if the outer face is required to be drawn as a rectangle. Furthermore, we provide a linear-time algorithm for deciding whether a plane graph admits an embedding-preserving unit-length rectangular drawing if the drawing of the outer face is prescribed. As a by-product of our research, we provide the first polynomial-time algorithm to test whether a planar graph G admits a rectangular drawing, for general instances of maximum degree 4.I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.