Arxiv:1908.05706V2 [Cs.CG] 26 Aug 2019 Representation
Total Page:16
File Type:pdf, Size:1020Kb
Homotopy height, grid-major height and graph-drawing height? Therese Biedl1, Erin Wolf Chambers2, David Eppstein3, Arnaud De Mesmay4, and Tim Ophelders5 1 David R. Cheriton School of Computer Science, University of Waterloo 2 Department of Computer Science, Saint Louis University 3 Computer Science Department, University of California, Irvine 4 Univ. Grenoble Alpes, CNRS, Grenoble INP, GIPSA-lab, 38000 Grenoble, France 5 Department of Computational Mathematics, Science and Engineering, Michigan State University Abstract. It is well-known that both the pathwidth and the outer-planarity of a graph can be used to obtain lower bounds on the height of a planar straight-line drawing of a graph. But both bounds fall short for some graphs. In this paper, we consider two other parameters, the (simple) homotopy height and the (simple) grid-major height. We discuss the relationship between them and to the other parameters, and argue that they give lower bounds on the straight-line drawing height that are never worse than the ones obtained from pathwidth and outer-planarity. 1 Introduction Straight-line drawings of planar graphs are one of the oldest and most intensely studied problems in graph drawing [14,19,25,26,29,30]. It has been known since the 1990s that every planar graph 2 has a straight-line drawing of height n−1 [19, 25] and that some planar graphs require height 3 n if the outer-face must be respected [11, 18]. Nevertheless many problems surrounding the height of planar straight-line drawings remain open; it is not even known whether minimizing height is NP-hard (although the problem is NP-hard when edges may only connect adjacent rows [22] and it is fixed-parameter tractable in the output height [12]). One of the chief obstacles is that very few tools are known for arguing that a planar graph requires a certain height in all planar straight-line drawings. Two graph parameters are commonly used for this: the pathwidth (as the height is at least pw(G) [12, 15]) and the outer-planarity (as the height is at least twice the outer-planarity minus 1 [11,18]); for detailed definitions see Section 2. However, both parameters may be constant in graphs that require linear height [4](see also Fig. 7(b)). In this paper, we study two other graph parameters, the homotopy height Hh(G) and the grid-major height GMh(G) and their simple variants sHh(G) and sGMh(G). Roughly speaking, the homotopy height is defined as the minimum k such that a sequence of paths of length at most k sweep the graph6, while the grid-major height is the minimum height of a grid of which the graph is a minor. Fig. 1 illustrates this and graph parameters used in the paper. Our simple variants add simplicity constraints to the paths involved in the sweeping or the columns of the grid-major arXiv:1908.05706v2 [cs.CG] 26 Aug 2019 representation. We show that despite their apparent differences, homotopy height and grid-major height are equal, and that both the normal and the simple variants are lower bounds on the graph drawing height. More precisely, any planar triangulated graph G has (∗) (∗) (∗) pw(G) ≤ Hh(G) = GMh(G) ≤ sHh(G) = sGMh(G) ≤ VRh(G) = SLh(G); (1) ? Erin Chambers was supported in part by NSF grants CCF-1614562 and DBI-1759807. David Eppstein was supported in part by NSF grants CCF-1618301 and CCF-1616248. Arnaud de Mesmay was supported in part by grants ANR-18-CE40-0004-01 (FOCAL) and ANR-16-CE40-0009-01 (GATO). This work began at the Fifth Annual Workshop on Geometry and Graphs, at the Bellairs Research Institute of McGill University. 6 We note that there are many possible variants of homotopy height, all quantifying in slightly different ways the optimal way to sweep a planar graph with a curve. We have chosen here one particular variant that seems to be most suitable for graph drawing purposes, and we only study it for triangulated graphs. We refer the reader to other recent works on this parameter [7, 8, 21] for further discussion.of other variants and their complexity. where VRh(G) and SLh(G) are the minimum height of a visibility representation and straight-line drawing of G. As we will show, the inequalities marked with (∗) are strict for some planar graphs. More strongly, the parameters separated by these inequalities can differ by non-constant factors from each other. In particular, the (simple) grid-major height and homotopy-height can both serve as lower bounds on the height of a straight-line drawing. For some graphs (e.g. the one in Fig. 7(b)) this gives a better lower bound than can be achieved via pathwidth, though not a better lower bound than what was known [4]. We should mention that the outer-planarity op is also related to these parameters via (∗) 2op(G) − 1 ≤ GMh(G); (2) so the homotopy-height and grid-major height can also can replace outer-planarity as lower-bound tool for graph-drawing height, and in fact, provide a convenient vehicle for unifying both tools. While these results have not yet led us to new lower bound results for straight-line drawings, they provide new tools which had not been considered previously, and suggest a promising new line of inquiry. u u u u u u u u u u u u u u P (u) x x x x x x u x x x x u P (x) u x y y x u P (y) v y w v y w v v v y wwww v v v w w w P (v) P (w) (a) (b) (c) (d) (e) Fig. 1: The same graph with (a) a straight-line drawing, (b) a flat visibility representation, (c) a simple grid-major representation, (d) the corresponding contact-representation, (e) a simple homotopy. The height is always four. The moves of the homotopy are: a face-flip at fu; v; xg, a boundary-move, an edge-slide at (v; y), a face-flip at fx; y; wg and face-flip at fu; x; wg. Our results naturally raise the question of the complexity of computing these parameters. Computing the optimal height of homotopies is conjectured but not known to be NP-hard [8]; even arguing that it is in NP is non-trivial [7], although it has a logarithmic approximation [7,21]. Our equalities imply that computing the homotopy-height k = Hh(G) is (non-uniform) fixed-parameter tractable in k. Indeed, it equals grid-major height, which is closed under taking minors. Minor testing can be expressed in second-order logic, and the graphs of bounded grid-major height have bounded pathwidth, so it follows from graph minor theory and Courcelle’s theorem [10] that for any k, the graphs with grid-major height k and homotopy-height k can be recognized in linear time. However, this method uses the (unknown!) forbidden minors for grid-major height; finding them remains an open problem of independent interest. We can also show more directly using Courcelle’s theorem that simple grid-major height is fixed-parameter tractable. All our results are only for triangulated planar graphs, planar graphs where all faces (including the outer-face) are triangles. This is not a big restriction for graph drawing height, as any planar graph G is a subgraph of a triangulated planar graph G0 that has a straight-line drawing of the same height, up to a small additive term. (Obtain G0 by triangulating the convex hull of a drawing of G and adding three vertices that surround the drawing.) Most of our parameters naturally carry over to non-triangulated planar graphs, but some parameters would be much more cumbersome to define and work with for non-triangle faces. 2 Definitions All graphs in this paper are planar: they can be drawn in the plane without crossings. Their faces are maximal connected regions that remain when removing the drawing); we call the unbounded face the outer-face. Unless otherwise stated, we study only simple graphs that have no loops and at most one edge between any two vertices, and we almost always study triangulated graphs, where all faces (including the outer-face) are bounded by a simple cycle of length 3. Such a graph is maximal planar: no edge can be added without violating simplicity or planarity. Its planar embedding is unique up to the choice of outer-face. Let G be a triangulated graph with fixed outer-face f. We define outer-planarity op(G) via a removal process as follows: In a first step, remove all vertices on the outer-face. In each subsequent step, remove all vertices on the outer-face of the remaining graph. Then op(G; f) is the number of steps until no vertices remain, and op(G) is the minimum of op(G; f) over all choices of face f. Graph-drawing parameters: The W × H-grid has vertices at the grid-points f1;:::;W g × f1;:::;Hg and an edge between any two grid-points of distance one. A straight-line drawing of G consists of a mapping of G to grid-points such that if all edges are drawn as straight-line segments between their endpoints, no two edges cross and no edge overlaps a non-incident vertex. Every planar graph has such a drawing [14,26,30] whose supporting grid has height at most n − 1 [19,25]. We use SLh(G) to denote the smallest height h of a straight-line drawing of G.