How to Morph Planar Graph Drawings

Soroush Alamdari, Patrizio Angelini, Fidel Barrera-Cruz, Timothy M. Chan, Giordano Da Lozzo, Giuseppe Di Battista, Fabrizio Frati, Penny Haxell, Anna Lubiw, Maurizio Patrignani, Vincenzo Roselli, Sahil Singla, Bryan T. Wilkinson

TL;DR

This paper presents an optimal algorithm to continuously transform ("morph") one straight-line planar drawing of a graph into another while preserving planarity throughout the process. By breaking the transformation into $O(n)$ "unidirectional linear morphs," the authors achieve a linear number of steps—a significant improvement over previous exponential or high-polynomial bounds—and prove that this step count is asymptotically optimal.

What Problem Does This Paper Address?

In computer graphics and geometric modeling, "morphing" is the process of smoothly transforming one shape into another. When the shapes are represented as planar graphs (graphs drawn in 2D without crossing edges), the challenge is to ensure that no edges cross at any point during the transformation. This is known as preserving straight-line planarity.

While it has been known since 1944 (Cairns' Theorem) that such a morph always exists for triangulated graphs, early proofs required an exponential number of steps. Subsequent methods either produced "snapshots" without explicit trajectories or required a high number of steps by increasing the complexity of the graph (e.g., using $O(n^2)$ additional edges for compatible triangulations). The authors tackle the gap of finding an efficient, polynomial-time algorithm that uses a minimal number of discrete, easy-to-compute steps.

Methods

The authors introduce a specific type of transformation called a unidirectional linear morph. In this step, every vertex moves at a constant speed along a straight line, and all these lines are parallel to one another.

The algorithm follows a high-level "reduce and conquer" strategy:

  1. Reduction to Triangulations: The authors show how to take any two topologically equivalent planar drawings and, through a series of $O(n)$ morphs, add the same set of edges to both until they are both triangulated. This involves a clever "Quadrilateral Convexification" technique.
  2. Recursive Contraction: For triangulations, they use an inductive approach inspired by Cairns. They find a low-degree vertex ($v$) that can be "contracted" to a neighbor ($u$).
  3. Pseudomorphs to Morphs: A key innovation is the use of "pseudomorphs"—transformations where a vertex is allowed to become coincident with another. They prove a theorem showing that any pseudomorph composed of unidirectional steps can be converted into a "true" planarity-preserving morph with only a constant factor increase in the number of steps.
  4. Level Planar Drawings: To solve the "Quadrilateral Convexification" subproblem, they leverage existing work on hierarchical (level) planar drawings, specifically a result by Hong and Nagamochi that allows redrawing a graph with convex faces while keeping vertices on their original horizontal lines.

Datasets

Not discussed in the paper. As a theoretical contribution in computational geometry, the paper relies on mathematical proofs and algorithmic analysis rather than empirical testing on specific datasets.

Key Insights and Ideas

  • Unidirectionality is a Feature, Not a Bug: Surprisingly, restricting vertex movement to parallel lines makes the planarity constraints much easier to manage and analyze compared to general linear motion.
  • Optimal Step Count: The authors prove that $O(n)$ steps are not just sufficient but necessary. They demonstrate this using a "spiral" graph that must be "unwound" into a straight path; each linear step can only "unwind" a constant amount of the spiral's total rotation.
  • Handling Disconnected Components: The paper provides a robust method for handling graphs with multiple connected components by "nesting" them within triangular "homes" and using a "road network" of empty space to move and align them.
  • The Power of Affine Transformations: By ensuring the outer face of a triangulation moves linearly, the authors show that all internal vertices can "follow along" via a linear combination of the outer vertices' positions, maintaining planarity automatically.

Key Results

  • Linear Step Complexity: The algorithm produces a morph consisting of $O(n)$ unidirectional linear morphs.
  • Computational Efficiency: The sequence of drawings defining the morph can be calculated in $O(n^3)$ time.
  • Lower Bound: The authors prove a matching lower bound of $\Omega(n)$ steps for certain graph configurations (like the spiral-to-path morph), establishing that their algorithm is asymptotically optimal in terms of the number of steps.

Limitations and Future Work

The primary limitation acknowledged by the authors is coordinate resolution. While the number of steps is linear, the coordinates of the vertices in the intermediate drawings might require a very large (potentially exponential) number of bits to represent precisely. This is because the "Quadrilateral Convexification" and "shrinking" steps can result in vertices being placed extremely close to edges or other vertices.

The authors leave it as an open problem to find a morph that uses a polynomial number of steps and only a logarithmic number of bits per coordinate. Recent follow-up work (cited as Barrera-Cruz et al. [10]) has begun to address this for specific subclasses of graphs, like Schnyder drawings.

Summary updated

BibTeX
@article{alamdari2017how,
  author = {Soroush Alamdari and Patrizio Angelini and Fidel Barrera-Cruz and Timothy M. Chan and Giordano Da Lozzo and Giuseppe Di Battista and Fabrizio Frati and Penny Haxell and Anna Lubiw and Maurizio Patrignani and Vincenzo Roselli and Sahil Singla and Bryan T. Wilkinson},
  title = {{How to Morph Planar Graph Drawings}},
  journal = {SIAM Journal on Computing},
  year = {2017},
  url = {https://openreview.net/forum?id=lQANg7AiaM},
}
Figure