The Complexity of Drawing a Graph in a Polygonal Region

We prove that the following problem is complete for the existential theory of the reals: Given a planar graph and a polygonal region, with some vertices of the graph assigned to points on the boundary of the region, place the remaining vertices to create a planar straight-line drawing of the graph inside the region. This strengthens an NP-hardness result by Patrignani on extending partial planar graph drawings. Our result is one of the first showing that a problem of drawing planar graphs with straight-line edges is hard for the existential theory of the reals. The complexity of the problem is open in the case of a simply connected region. We also show that, even for integer input coordinates, it is possible that drawing a graph in a polygonal region requires some vertices to be placed at irrational coordinates. By contrast, the coordinates are known to be bounded in the special case of a convex region, or for drawing a path in any polygonal region.

[1]  Jirí Matousek,et al.  Intersection graphs of segments and $\exists\mathbb{R}$ , 2014, ArXiv.

[2]  V. Bryant,et al.  Straight line representations of planar graphs. , 1989 .

[3]  Tillmann Miltzow,et al.  Irrational Guards are Sometimes Needed , 2017, SoCG.

[4]  Luca Vismara,et al.  Planar Straight-Line Drawing Algorithms , 2013, Handbook of Graph Drawing and Visualization.

[5]  Esther M. Arkin,et al.  Minimum-link watchman tours , 2003, Inf. Process. Lett..

[6]  Jack Snoeyink,et al.  On the bit complexity of minimum link paths: superquadratic algorithms for problems solvable in linear time , 1996, SCG '96.

[7]  J. Kratochvil,et al.  Intersection Graphs of Segments , 1994, J. Comb. Theory, Ser. B.

[8]  Marcus Schaefer,et al.  Fixed Points, Nash Equilibria, and the Existential Theory of the Reals , 2017, Theory of Computing Systems.

[9]  Jan Kratochvíl,et al.  Testing planarity of partially embedded graphs , 2010, SODA '10.

[10]  Jean Cardinal,et al.  Computational Geometry Column 62 , 2015, SIGACT News.

[11]  Walter Schnyder,et al.  Embedding planar graphs on the grid , 1990, SODA '90.

[12]  Daniel Bienstock Some provably hard crossing number problems , 1991, Discret. Comput. Geom..

[13]  Hiroshi Nagamochi,et al.  Convex drawings of graphs with non-convex boundary constraints , 2006, Discret. Appl. Math..

[14]  Tillmann Miltzow,et al.  ∀∃R-completeness and area-universality , 2017, ArXiv.

[15]  J. Geelen ON HOW TO DRAW A GRAPH , 2012 .

[16]  Martin Nöllenburg,et al.  Extending Convex Partial Drawings of Graphs , 2015, Algorithmica.

[17]  Tillmann Miltzow,et al.  The Art Gallery Problem is $\exists \mathbb{R}$-complete , 2017 .

[18]  Md. Saidur Rahman,et al.  Planar Graph Drawing , 2004, Lecture Notes Series on Computing.

[19]  W. T. Tutte Convex Representations of Graphs , 1960 .

[20]  Craig Gotsman,et al.  Discrete one-forms on meshes and applications to 3D mesh parameterization , 2006, Comput. Aided Geom. Des..

[21]  Tillmann Miltzow,et al.  ∀∃ℝ-Completeness and Area-Universality , 2018, WG.

[22]  Timothy M. Chan,et al.  Drawing Partially Embedded and Simultaneously Planar Graphs , 2015, J. Graph Algorithms Appl..

[23]  Marcus Schaefer,et al.  Complexity of Some Geometric and Topological Problems , 2009, GD.

[24]  David Eppstein,et al.  The Galois Complexity of Graph Drawing: Why Numerical Solutions are Ubiquitous for Force-Directed, Spectral, and Circle Packing Drawings , 2014, J. Graph Algorithms Appl..

[25]  David Eppstein,et al.  Selected Open Problems in Graph Drawing , 2003, Graph Drawing.

[26]  Colin McDiarmid,et al.  Integer realizations of disk and segment graphs , 2011, J. Comb. Theory, Ser. B.

[27]  S. Suri A linear time algorithm with minimum link paths inside a simple polygon , 1986 .

[28]  Maarten Löffler,et al.  On the complexity of minimum-link path problems , 2016, J. Comput. Geom..

[29]  Tillmann Miltzow,et al.  The art gallery problem is ∃ ℝ-complete , 2018, STOC.

[30]  David Eppstein,et al.  Drawing Graphs in the Plane with a Prescribed Outer Face and Polynomial Area , 2010, Graph Drawing.

[31]  N. Mnev The universality theorems on the classification problem of configuration varieties and convex polytopes varieties , 1988 .

[32]  Maurizio Patrignani On Extending a Partial Straight-Line Drawing , 2005, Graph Drawing.

[33]  Joseph S. B. Mitchell,et al.  Minimum-link paths among obstacles in the plane , 1990, SCG '90.