skip to main content
research-article

Morphing orthogonal planar graph drawings

Published: 03 October 2013 Publication History

Abstract

We give an algorithm to morph between two planar orthogonal drawings of a graph, preserving planarity and orthogonality. The morph uses a quadratic number of steps, where each step is a linear morph (a linear interpolation between two drawings). This is the first algorithm to provide planarity-preserving morphs with well-behaved complexity for a significant class of graph drawings. Our method is to morph until each edge is represented by a sequence of segments, with corresponding segments parallel in the two drawings. Then, in a result of independent interest, we morph such parallel planar orthogonal drawings, preserving edge directions and planarity.

References

[1]
Alt, H. and Guibas, L. 1999. Discrete geometric shapes: Matching, interpolation, and approximation. In Handbook of Computational Geometry, J.-R. Sack and J. Urrutia, Eds., Elsevier Science Publishers B.V. North-Holland, Amsterdam, 121--153.
[2]
Aronov, B., Seidel, R., and Souvaine, D. 1992. On compatible triangulations of simple polygons. Computat. Geom. Theory Appl. 3, 27--35.
[3]
Barequet, G. and Sharir, M. 1996. Piecewise-linear interpolation between polygonal slices. Comput. Vision Image Understand. 63, 2, 251--272.
[4]
Biedl, T., Lubiw, A., and Spriggs, M. 2004. Angles and lengths in reconfigurations of polygons and polyhedra. In Proceedings of the Symposium on Mathematical Foundations of Computer Science (MFCS 2004). Lecture Notes in Computer Science, vol. 3153, Springer, 748--759.
[5]
Biedl, T., Lubiw, A., and Spriggs, M. 2009. Morphing polyhedra with parallel faces: Counterexamples. Computat. Geom. Theory Appl. (Special Issue dedicated to papers from CCCG'04) 42, 5, 395--402.
[6]
Biedl, T. C., Lubiw, A., and Spriggs, M. J. 2006. Morphing planar graphs while preserving edge directions. In Graph Drawing 2005, Lecture Notes in Computer Science, vol. 3843, 13--24.
[7]
Branke, J. 2001. Dynamic graph drawing. In Drawing Graphs -- Methods and Models, D. Kaufmann and D. Wagner, Eds., Lecture Notes in Computer Science, vol. 2025, Springer, 228--246.
[8]
Bridgeman, S. and Tamassia, R. 2000. Difference metrics for interactive orthogonal graph drawing algorithms. J. Graph Algor. Appl. 4, 3, 47--74.
[9]
Cairns, S. 1944. Deformations of plane rectilinear complexes. Amer. Math. Monthly 51, 247--252.
[10]
Connelly, R., Demaine, E. D., and Rote, G. 2003. Straightening polygonal arcs and convexifying polygonal cycles. Disc. Computat. Geom. 30, 2, 205--239.
[11]
de Fraysseix, H., Pach, J., and Pollack, R. 1990. How to draw a planar graph on a grid. Combinatorica 10, 1, 41--51.
[12]
Demaine, E. D. and O'Rourke, J. 2007. Geometric Folding Algorithms: Linkages, Origami, Polyhedra. Cambridge University Press.
[13]
Di Battista, G., Eades, P., Tamassia, R., and Tollis, I. 1999. Graph Drawing: Algorithms for the Visualization of Graphs. Prentice-Hall.
[14]
Di Battista, G., Liotta, G., and Vargiu, F. 1998. Spirality and optimal orthogonal drawings. SIAM J. Comput. 27, 6, 1764--1811.
[15]
Eiglsperger, M., Fekete, S., and Klau, G. 2001. Orthogonal graph drawing. In Drawing Graphs -- Methods and Models, D. Kaufmann and D. Wagner, Eds., Lecture Notes in Computer Science, vol. 2025, Springer, 121--171.
[16]
Erten, C., Kobourov, S., and Pitta, C. 2004a. Intersection-free morphing of planar graphs. In Graph Drawing 2003, G. Liotta, Ed., Lecture Notes in Computer Science, vol. 2912, Springer, 320--331.
[17]
Erten, C., Kobourov, S., and Pitta, C. 2004b. Morphing planar graphs. In Proceedings of the 20th Annual ACM Symposium on Computational Geometry. 451--452.
[18]
Floater, M. and Gotsman, C. 1999. How to morph tilings injectively. J. Computat. Appl. Math. 101, 117--129.
[19]
Friedrich, C. and Eades, P. 2002. Graph drawing in motion. J. Graph Algor. Appl. 6, 3, 353--370.
[20]
Friedrich, C. and Houle, M. 2002. Graph drawing in motion II. In Graph Drawing 2001, P. Mutzel, M. Jünger, and S. Leipert, Eds., Lecture Notes in Computer Science, vol. 2265, Springer, 220--231.
[21]
Gomes, J., Darsa, L., Costa, B., and Velho, L. 1999. Warping and Morphing of Graphical Objects. Morgan Kaufmann.
[22]
Gotsman, C. and Surazhsky, V. 2001. Guaranteed intersection-free polygon morphing. Comput. Graph. 25, 67--75.
[23]
Grenander, U., Chow, Y., and Keenan, D. M. 1991. Hands: A Pattern Theoretic Study of Biological Shapes (Appendix D). Springer-Verlag.
[24]
Guibas, L., Hershberger, J., and Suri, S. 2000. Morphing simple polygons. Disc. Computat. Geomet. 24, 1, 1--34.
[25]
Iben, H. N., O'Brien, J. F., and Demaine, E. D. 2009. Refolding planar polygons. Disc. Computat. Geom. 41, 3, 444--460.
[26]
LaPaugh, A. 1998. VLSI Layout Algorithms. In Algorithms and Theory of Computation Handbook, M. Atallah, Ed., CRC Press.
[27]
Liu, Y., Morgana, A., and Simeone, B. 1998. A linear algorithm for 2-bend embeddings of planar graphs in the two-dimensional grid. Disc. Appl. Math. 81, 1--3, 69--91.
[28]
Lubiw, A. and Petrick, M. 2011. Morphing planar graph drawings with bent edges. J. Graph Algor. Appl. 15, 2, 205--207.
[29]
Lubiw, A., Petrick, M., and Spriggs, M. J. 2006. Morphing orthogonal planar graph drawings. In Proceedings of the 17th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA). 222--230.
[30]
Misue, K., Eades, P., Lai, W., and Sugiyama, K. 1995. Layout adjustment and the mental map. J. Visual Lang. Comput. 6, 2, 183--210.
[31]
Schnyder, W. 1990. Embedding planar graphs on a grid. In Proceedings of the ACM-SIAM Symposium on Discrete Algorithms (SODA). 138--148.
[32]
Spriggs, M. 2007. Morphing parallel graph drawings. Ph.D. thesis, School of Computer Science, University of Waterloo.
[33]
Surazhsky, V. and Gotsman, C. 2001. Controllable morphing of compatible planar triangulations. ACM Trans. Graph. 20, 4, 203--231.
[34]
Tamassia, R. 1987. On embedding a graph in the grid with the minimum number of bends. SIAM J. Comput. 16, 3, 421--444.
[35]
Tamassia, R. and Tollis, I. G. 1989. Planar grid embedding in linear time. IEEE Trans. Circuits Syst. 36, 9, 1230--1234.
[36]
Thomassen, C. 1983. Deformations of plane graphs. J. Combinat. Theory Ser. B: 34, 244--257.
[37]
Tutte, W. 1963. How to draw a graph. Proc. London Math. Soc. 13, 743--768.
[38]
Vijayan, G. and Wigderson, A. 1985. Rectilinear graphs and their embeddings. SIAM J. Comput. 14, 2, 355--372.

Cited By

View all
  • (2023)Morphing Triangle Contact Representations of TriangulationsDiscrete & Computational Geometry10.1007/s00454-022-00475-9Online publication date: 15-Mar-2023
  • (2022)How to Morph a Tree on a Small GridDiscrete & Computational Geometry10.1007/s00454-021-00363-867:3(743-786)Online publication date: 2-Feb-2022
  • (2022)Morphing Rectangular DualsGraph Drawing and Network Visualization10.1007/978-3-031-22203-0_28(389-403)Online publication date: 13-Sep-2022
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Transactions on Algorithms
ACM Transactions on Algorithms  Volume 9, Issue 4
September 2013
131 pages
ISSN:1549-6325
EISSN:1549-6333
DOI:10.1145/2533288
Issue’s Table of Contents
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 03 October 2013
Accepted: 01 December 2012
Revised: 01 June 2012
Received: 01 July 2010
Published in TALG Volume 9, Issue 4

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. Graph drawing
  2. morphing
  3. orthogonal drawing
  4. planar graphs

Qualifiers

  • Research-article
  • Research
  • Refereed

Funding Sources

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)5
  • Downloads (Last 6 weeks)0
Reflects downloads up to 03 Mar 2025

Other Metrics

Citations

Cited By

View all
  • (2023)Morphing Triangle Contact Representations of TriangulationsDiscrete & Computational Geometry10.1007/s00454-022-00475-9Online publication date: 15-Mar-2023
  • (2022)How to Morph a Tree on a Small GridDiscrete & Computational Geometry10.1007/s00454-021-00363-867:3(743-786)Online publication date: 2-Feb-2022
  • (2022)Morphing Rectangular DualsGraph Drawing and Network Visualization10.1007/978-3-031-22203-0_28(389-403)Online publication date: 13-Sep-2022
  • (2021)How to morph graphs on the torusProceedings of the Thirty-Second Annual ACM-SIAM Symposium on Discrete Algorithms10.5555/3458064.3458228(2759-2778)Online publication date: 10-Jan-2021
  • (2021)Ortho-polygon visibility representations of 3-connected 1-plane graphsTheoretical Computer Science10.1016/j.tcs.2021.02.018863(40-52)Online publication date: Apr-2021
  • (2021)Orthogonal Planarity Testing of Bounded Treewidth GraphsJournal of Computer and System Sciences10.1016/j.jcss.2021.11.004Online publication date: Dec-2021
  • (2021)On Morphing 1-Planar DrawingsGraph-Theoretic Concepts in Computer Science10.1007/978-3-030-86838-3_21(270-282)Online publication date: 20-Sep-2021
  • (2019)Optimal Morphs of Planar Orthogonal Drawings IIGraph Drawing and Network Visualization10.1007/978-3-030-35802-0_3(33-45)Online publication date: 28-Nov-2019
  • (2019)Sketched Representations and Orthogonal Planarity of Bounded Treewidth GraphsGraph Drawing and Network Visualization10.1007/978-3-030-35802-0_29(379-392)Online publication date: 17-Sep-2019
  • (2019)How to Morph a Tree on a Small GridAlgorithms and Data Structures10.1007/978-3-030-24766-9_5(57-70)Online publication date: 5-Aug-2019
  • Show More Cited By

View Options

Login options

Full Access

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media