Algorithmica

, Volume 80, Issue 8, pp 2345–2383 | Cite as

Ortho-polygon Visibility Representations of Embedded Graphs

  • Emilio Di Giacomo
  • Walter Didimo
  • William S. Evans
  • Giuseppe Liotta
  • Henk Meijer
  • Fabrizio Montecchiani
  • Stephen K. Wismath
Article

Abstract

An ortho-polygon visibility representation of an n-vertex embedded graph G (OPVR of G) is an embedding-preserving drawing of G that maps every vertex to a distinct orthogonal polygon and each edge to a vertical or horizontal visibility between its end-vertices. The vertex complexity of an OPVR of G is the minimum k such that every polygon has at most k reflex corners. We present polynomial time algorithms that test whether G has an OPVR and, if so, compute one of minimum vertex complexity. We argue that the existence and the vertex complexity of an OPVR of G are related to its number of crossings per edge and to its connectivity. More precisely, we prove that if G has at most one crossing per edge (i.e., G is a 1-plane graph), an OPVR of G always exists while this may not be the case if two crossings per edge are allowed. Also, if G is a 3-connected 1-plane graph, we can compute an OPVR of G whose vertex complexity is bounded by a constant in O(n) time. However, if G is a 2-connected 1-plane graph, the vertex complexity of any OPVR of G may be \(\varOmega (n)\). In contrast, we describe a family of 2-connected 1-plane graphs for which an embedding that guarantees constant vertex complexity can be computed in O(n) time. Finally, we present the results of an experimental study on the vertex complexity of ortho-polygon visibility representations of 1-plane graphs.

Keywords

Visibility representations Orthogonal polygons Non-planar graphs 1-Planarity Testing and drawing algorithms 

Notes

Acknowledgements

We thank the anonymous referees of this paper for their valuable suggestions.

References

  1. 1.
    Ackerman, E.: A note on 1-planar graphs. Discret. Appl. Math. 175, 104–108 (2014)MathSciNetCrossRefMATHGoogle Scholar
  2. 2.
    Alam, M.J., Brandenburg, F.J., Kobourov, S.G.: Straight-line grid drawings of 3-connected 1-planar graphs. In: Wismath, S.K., Wolff, A. (eds.) GD 2013, volume 8242 of LNCS, pp. 83–94. Springer, Berlin (2013)Google Scholar
  3. 3.
    Alam, M.J., Kobourov, S.G., Mondal, D.: Orthogonal layout with optimal face complexity. In: Freivalds, R.M., Engels, G., Catania, B. (eds.) SOFSEM 2016, volume 9587 of LNCS, pp. 121–133. Springer, Berlin (2016)Google Scholar
  4. 4.
    Bannister, M.J., Cabello, S., Eppstein, D.: Parameterized complexity of 1-planarity. In: Dehne, F., Solis-Oba, R., Sack, J. (eds.) WADS 2013, volume 8037 of LNCS, pp. 97–108. Springer, Berlin (2013)Google Scholar
  5. 5.
    Bertolazzi, P., Di Battista, G., Didimo, W.: Computing orthogonal drawings with the minimum number of bends. IEEE Trans. Comput. 49(8), 826–840 (2000)MathSciNetCrossRefGoogle Scholar
  6. 6.
    Biedl, T.C., Liotta, G., Montecchiani, F.: On visibility representations of non-planar graphs. In: Fekete, S.P., Lubiw, A. (eds.) SoCG 2016, volume 51 of LIPIcs, pp. 19:1–19:16. Schloss Dagstuhl—Leibniz-Zentrum fuer Informatik (2016)Google Scholar
  7. 7.
    Brandenburg, F.J.: 1-Visibility representations of 1-planar graphs. J. Graph Algorithms Appl. 18(3), 421–438 (2014)MathSciNetCrossRefMATHGoogle Scholar
  8. 8.
    Cabello, S., Mohar, B.: Adding one edge to planar graphs makes crossing number and 1-planarity hard. SIAM J. Comput. 42(5), 1803–1829 (2013)MathSciNetCrossRefMATHGoogle Scholar
  9. 9.
    Cornelsen, S., Karrenbauer, A.: Accelerated bend minimization. J. Graph Algorithms Appl. 16(3), 635–650 (2012)MathSciNetCrossRefMATHGoogle Scholar
  10. 10.
    Czap, J., Hudák, D.: On drawings and decompositions of 1-planar graphs. Electron. J. Comb. 20(2), P54 (2013)MathSciNetMATHGoogle Scholar
  11. 11.
    Dean, A.M., Hutchinson, J.P.: Rectangle-visibility representations of bipartite graphs. Discret. Appl. Math. 75(1), 9–25 (1997)MathSciNetCrossRefMATHGoogle Scholar
  12. 12.
    Di Battista, G., Didimo, W.: GDToolkit. In: Tamassia, R. (ed.) Handbook of Graph Drawing and Visualization, pp. 571–597. CRC Press, Boca Raton (2013)Google Scholar
  13. 13.
    Di Battista, G., Eades, P., Tamassia, R., Tollis, I.G.: Graph Drawing. Prentice-Hall, Englewood Cliffs (1999)MATHGoogle Scholar
  14. 14.
    Di Battista, G., Tamassia, R.: On-line planarity testing. SIAM J. Comput. 25(5), 956–997 (1996)MathSciNetCrossRefMATHGoogle Scholar
  15. 15.
    Didimo, W., Liotta, G., Mehrabi, S., Montecchiani, F.: 1-Bend RAC drawings of 1-planar graphs. In: Hu, Y., Nöllenburg, M. (eds.) GD 2016, volume 9801 of LNCS, pp. 335–343. Springer, Berlin (2016)Google Scholar
  16. 16.
    Duchet, P., Hamidoune, Y., Vergnas, M.L., Meyniel, H.: Representing a planar graph by vertical lines joining different levels. Discret. Math. 46(3), 319–321 (1983)MathSciNetCrossRefMATHGoogle Scholar
  17. 17.
    Eades, P., Hong, S., Katoh, N., Liotta, G., Schweitzer, P., Suzuki, Y.: A linear time algorithm for testing maximal 1-planarity of graphs with a rotation system. Theor. Comput. Sci. 513, 65–76 (2013)MathSciNetCrossRefMATHGoogle Scholar
  18. 18.
    Eades, P., Liotta, G.: Right angle crossing graphs and 1-planarity. Discret. Appl. Math. 161(7–8), 961–969 (2013)MathSciNetCrossRefMATHGoogle Scholar
  19. 19.
    Evans, W.S., Kaufmann, M., Lenhart, W., Mchedlidze, T., Wismath, S.K.: Bar 1-visibility graphs vs. other nearly planar graphs. J. Graph Algorithms Appl. 18(5), 721–739 (2014)MathSciNetCrossRefMATHGoogle Scholar
  20. 20.
    Evans, W.S., Liotta, G., Montecchiani, F.: Simultaneous visibility representations of plane \(st\)-graphs using L-shapes. Theor. Comput. Sci. 645, 100–111 (2016)MathSciNetCrossRefMATHGoogle Scholar
  21. 21.
    Garg, A., Tamassia, R.: A new minimum cost flow algorithm with applications to graph drawing. In: North, S.C. (ed.) GD ’96, volume 1190 of LNCS, pp. 201–216. Springer, Berlin (1996)Google Scholar
  22. 22.
    Haeupler, B., Tarjan, R.E.: Finding a feasible flow in a strongly connected network. Oper. Res. Lett. 36(4), 397–398 (2008)MathSciNetCrossRefMATHGoogle Scholar
  23. 23.
    Hutchinson, J.P., Shermer, T.C., Vince, A.: On representations of some thickness-two graphs. Comput. Geom. 13(3), 161–171 (1999)MathSciNetCrossRefMATHGoogle Scholar
  24. 24.
    Kant, G., Bodlaender, H.L.: Triangulating planar graphs while minimizing the maximum degree. In: Nurmi, O., Ukkonen, E. (eds.) SWAT 1992, volume 621 of LNCS, pp. 258–271. Springer, Berlin (1992)Google Scholar
  25. 25.
    Kant, G., Liotta, G., Tamassia, R., Tollis, I.G.: Area requirement of visibility representations of trees. Inf. Process. Lett. 62(2), 81–88 (1997)MathSciNetCrossRefMATHGoogle Scholar
  26. 26.
    Kobourov, S.G., Liotta, G., Montecchiani, F.: An annotated bibliography on 1-planarity. CoRR arXiv:1703.02261 (2017)
  27. 27.
    Korzhik, V.P., Mohar, B.: Minimal obstructions for 1-immersions and hardness of 1-planarity testing. J. Graph Theory 72(1), 30–71 (2013)MathSciNetCrossRefMATHGoogle Scholar
  28. 28.
    Lenhart, W.J., Liotta, G., Montecchiani, F.: On partitioning the edges of 1-plane graphs. Theor. Comput. Sci. 662, 59–65 (2017)MathSciNetCrossRefMATHGoogle Scholar
  29. 29.
    Liotta, G., Montecchiani, F.: L-visibility drawings of IC-planar graphs. Inf. Process. Lett. 116(3), 217–222 (2016)MathSciNetCrossRefMATHGoogle Scholar
  30. 30.
    Otten, R.H.J.M., Van Wijk, J.G.: Graph representations in interactive layout design. In: IEEE ISCSS, pp. 914–918. IEEE (1978)Google Scholar
  31. 31.
    Rosenstiehl, P., Tarjan, R.E.: Rectilinear planar layouts and bipolar orientations of planar graphs. Discret. Comput. Geom. 1, 343–353 (1986)MathSciNetCrossRefMATHGoogle Scholar
  32. 32.
    Schnyder, W.: Embedding planar graphs on the grid. In: Johnson, D.S. (ed.) SODA 1990, pp. 138–148. SIAM (1990)Google Scholar
  33. 33.
    Shermer, T.C.: On rectangle visibility graphs. III. External visibility and complexity. In: Fiala, F., Kranakis, E., Sack, J. (eds.) CCCG 1996, pp. 234–239. Carleton University Press, Kingston (1996)Google Scholar
  34. 34.
    Streinu, I., Whitesides, S.: Rectangle visibility graphs: characterization, construction, and compaction. In: Alt, H., Habib, M. (eds.) STACS 2003, volume 2607 of LNCS, pp. 26–37. Springer, Berlin (2003)Google Scholar
  35. 35.
    Suzuki, Y.: Re-embeddings of maximum 1-planar graphs. SIAM J. Discret. Math. 24(4), 1527–1540 (2010)MathSciNetCrossRefMATHGoogle Scholar
  36. 36.
    Tamassia, R.: On embedding a graph in the grid with the minimum number of bends. SIAM J. Comp. 16(3), 421–444 (1987)MathSciNetCrossRefMATHGoogle Scholar
  37. 37.
    Tamassia, R., Tollis, I.G.: A unified approach to visibility representations of planar graphs. Discret. Comput. Geom. 1(1), 321–341 (1986)MathSciNetCrossRefMATHGoogle Scholar
  38. 38.
    Thomassen, C.: Plane representations of graphs. In: Progress in Graph Theory, pp. 43–69. AP (1984)Google Scholar
  39. 39.
    Thomassen, C.: Rectilinear drawings of graphs. J. Graph Theory 12(3), 335–341 (1988)MathSciNetCrossRefMATHGoogle Scholar
  40. 40.
    Wismath, S.K.: Characterizing bar line-of-sight graphs. In: O’Rourke, J. (ed.) SoCG 1985, pp. 147–152. ACM (1985)Google Scholar

Copyright information

© Springer Science+Business Media New York 2017

Authors and Affiliations

  1. 1.University of PerugiaPerugiaItaly
  2. 2.University of British ColumbiaVancouverCanada
  3. 3.University College RooseveltMiddelburgThe Netherlands
  4. 4.University of LethbridgeLethbridgeCanada

Personalised recommendations