Crossing-Optimal Extension of Simple Drawings

Robert Ganian, Thekla Hamm, Fabian Klute, Irene Parada, Birgit Vogtenhuber

TL;DR

This paper establishes that extending a "simple" graph drawing with new edges while minimizing crossings is computationally tractable when the number of new edges and crossings is small. By introducing a novel "patchwork graph" framework, the authors provide the first fixed-parameter algorithms for several fundamental drawing extension problems that were previously known to be NP-hard.

What Problem Does This Paper Address?

In graph drawing, a simple drawing is one where every pair of edges intersects at most once (either at a shared endpoint or a single crossing). Simple drawings are a cornerstone of the field because they are a necessary condition for drawings with a minimum number of crossings.

The authors tackle the Simple Crossing-Minimal Edge Insertion (SCEI) problem: given an existing simple drawing of a graph, can you add $k$ new edges such that the resulting drawing remains simple and the number of new crossings is at most $\ell$?

While similar problems for plane drawings (drawings with zero crossings) are well-understood, simple drawings are much trickier. Even adding a single edge to a simple drawing was recently proven to be NP-hard. This paper seeks to find "islands of tractability"—specific conditions under which these hard problems can be solved efficiently.

The SCEI problem definition

Methods

The core of the paper is a sophisticated translation of geometric constraints into graph-theoretic ones.

  1. The Patchwork Graph: The authors construct a "patchwork graph" $P$ that discretizes the continuous plane of the drawing. It includes vertices for original graph nodes, crossing points, and "cell vertices" representing the faces of the drawing. This allows them to treat the problem of finding a curve in the plane as finding a path in a graph. Illustration of a patchwork graph P, showing how the continuous drawing is discretized.

  2. Holes and Stitches: To keep the patchwork graph manageable (specifically, to keep its "treewidth" low), the authors identify "far away" regions of the drawing that a crossing-optimal edge would never visit. They replace these regions with "holes." However, removing parts of edges can make it impossible to enforce the "simple" constraint (crossing an edge only once). To fix this, they add "stitches"—threads that maintain the identity of an edge across a hole.

  3. Courcelle’s Theorem: By proving the patchwork graph has bounded treewidth, the authors can use Monadic Second-Order (MSO) logic to describe the properties of a valid extension. Courcelle’s Theorem then guarantees that if a solution exists, it can be found in time that is linear in the size of the graph (though exponential in the parameters $k$ and $\ell$).
  4. Representative Sets: For the special case of adding just one edge ($k=1$), the authors use a different approach. They reduce the problem to finding a "colorful path" in a dual graph and use the theory of representative sets from matroid theory to achieve a much faster, single-exponential algorithm.
Illustration of a patchwork graph P, showing how the continuous drawing is discretized.

Datasets

Not discussed in the paper. This is a theoretical work focused on algorithmic complexity and proof of tractability.

Key Insights and Ideas

  • Simplicity is a Global Property: The biggest challenge in discretizing a simple drawing is that the "intersect at most once" rule is global. If you simplify the drawing to reduce complexity, you might lose track of which "edge segments" belong to the same original edge. The "stitches" concept is the "aha moment" that allows for local simplification while preserving global constraints.
  • Sunflower Lemma in Geometry: The authors use the Sunflower Lemma—a classic tool in combinatorics—to bound the number of edge segments that a "reasonable" solution curve might need to cross. This bound is crucial for ensuring the patchwork graph remains small enough to process.
  • Access Directions: To handle how new edges connect to existing vertices, the authors introduce "shadow vertices" that represent different angular directions (access directions) from which a vertex can be approached without creating illegal crossings. Illustration of different access directions for an added edge.
Illustration of different access directions for an added edge.

Key Results

  • General Tractability: The authors prove that SCEI is Fixed-Parameter Tractable (FPT) when parameterized by $k$ (edges to insert) and $\ell$ (max new crossings). This means the problem is solvable in $f(k, \ell) \cdot n^{O(1)}$ time.
  • Unified Framework: The same techniques prove FPT results for related problems like Simple $\ell$-Plane Edge Insertion (where every edge in the final drawing has $\leq \ell$ crossings).
  • Single Edge Optimization: For inserting a single edge ($k=1$), they provide a tight algorithm with a runtime of $O(2^{O(\ell)} \cdot |G| \log |E(G)|)$. This is significantly faster than the general MSO-based approach and is optimal under the Exponential Time Hypothesis.

Limitations and Future Work

  • Connectivity Assumption: The main FPT result assumes the initial drawing is connected. While the authors believe their framework can be adapted for disconnected drawings, it would require overcoming additional technical hurdles related to how new edges might "wrap around" disconnected components.
  • Parameterization: The general result requires both $k$ and $\ell$ to be small. A major open question is whether the problem remains tractable if only the number of crossings $\ell$ is small, while the number of inserted edges $k$ is large.
  • Vertex Insertion: The current work focuses on adding edges. A natural extension would be to allow the addition of new vertices into an existing drawing as well.

Summary updated

Abstract

In extension problems of partial graph drawings one is given an incomplete drawing of an input graph $G$ and is asked to complete the drawing while maintaining certain properties. A prominent area where such problems arise is that of crossing minimization. For plane drawings and various relaxations of these, there is a number of tractability as well as lower-bound results exploring the computational complexity of crossing-sensitive drawing extension problems. In contrast, comparatively few results are known on extension problems for the fundamental and broad class of simple drawings, that is, drawings in which each pair of edges intersects in at most one point. In fact, only recently it has been shown that the extension problem of simple drawings is NP-hard even when the task is to insert a single edge. In this paper we present tractability results for the crossing-sensitive extension problem of simple drawings. In particular, we show that the problem of inserting edges into a simple drawing is fixed-parameter tractable when parameterized by the number of edges to insert and an upper bound on newly created crossings. Using the same proof techniques, we are also able to answer several closely related variants of this problem, among others the extension problem for $k$-plane drawings. Moreover, using a different approach, we provide a single-exponential fixed-parameter algorithm for the case in which we are only trying to insert a single edge into the drawing.
BibTeX
@inproceedings{ganian2021crossing,
  author = {Robert Ganian and Thekla Hamm and Fabian Klute and Irene Parada and Birgit Vogtenhuber},
  title = {{Crossing-Optimal Extension of Simple Drawings}},
  booktitle = {ICALP},
  year = {2021},
  doi = {10.4230/lipics.icalp.2021.72},
}
Figure