Abstract
In the field of graph theory, treewidth is the standard measure for a graph's structural complexity. However, many graph drawing problems remain NP-hard even for graphs with minimal treewidth because combinatorial measures fail to account for the physical space a drawing occupies. This paper introduces Drawn Tree Decomposition (DTD) and its associated measure, drawn treewidth (dtw). By partitioning the plane rather than the vertex set, the authors provide a general algorithmic framework that yields efficient solutions for problems like grid recognition and crossing minimization. This approach bridges the gap between combinatorial structure and geometric layout, offering subexponential time algorithms for various grid-based drawing challenges.
Introduction: The Geometric Gap
Treewidth is often considered the gold standard for measuring how "tree-like" a graph is. Generally, if a graph has low treewidth, complex problems can be solved on it efficiently using dynamic programming. However, graph drawing—the process of placing vertices and edges on a plane according to specific constraints—is a notable exception. Many drawing problems remain computationally intractable even for graphs with a treewidth of 1 or 2.
The fundamental issue is that combinatorial parameters like treewidth do not account for the geometry of the drawing. For example, a simple path (treewidth 1) can be folded into a complex, winding "snake" on a grid. Determining if such a path can be compacted or if its edges will cross requires understanding its spatial layout, not just its connectivity. This paper addresses this "geometric gap" by proposing a parameter that is intrinsically tied to the drawing’s physical coordinates.
Methods: Drawn Tree Decomposition
The authors introduce Drawn Tree Decomposition (DTD), a novel method that partitions the plane using a hierarchical structure. Unlike standard tree decomposition, which partitions vertices into bags, DTD partitions the drawing area using:
- Frames: Axis-parallel cycles (rectilinear polygons) that enclose specific portions of the drawing.
- Cutters: Axis-parallel paths that split a frame into two smaller sub-frames.
- Width Measure: The "cost" or width of a frame is determined by its own geometric complexity (the number of corners) plus the number of times the drawing interacts with it (vertices located on the frame and "turning points" where edges cross the frame boundary).
The General Algorithmic Scheme
The core technical contribution is a general algorithmic framework based on dynamic programming. To apply this scheme to a specific graph drawing problem, a researcher must define two components:
- A Classifier: A method to categorize drawings within a frame into equivalence classes.
- A Leaf Solver: A method to solve the problem for the smallest possible frames (those containing no grid points).
The scheme then "glues" these local solutions together using the tree structure to find a global solution in slice-wise polynomial (XP) time. This means the complexity is polynomial for any fixed drawn treewidth.
Key Insights and Theoretical Results
This work represents a shift in perspective by making the parameter dependent on the drawing rather than the graph itself. A single graph can have a very low or very high drawn treewidth depending on its layout.
Bridging Combinatorics and Geometry
The authors prove a critical relationship between classical treewidth ($tw$) and drawn treewidth ($dtw$): for any drawing $d$ of a graph $G$, $tw(G) \le 6 \cdot dtw(d)$. This ensures that if a drawing is geometrically simple, the underlying graph must also be relatively simple. Conversely, they prove that drawn treewidth is incomparable to pathwidth; a graph can have a tiny pathwidth but a massive drawn treewidth, and vice versa.
Subexponential Potential
For standard grid drawings, the authors demonstrate that the drawn treewidth is at most $O(\sqrt{n})$. This is a significant finding because it allows the XP-algorithm to run in subexponential time ($2^{O(\sqrt{n})}$), matching the best-known specialized algorithms for specific grid problems while providing a much more general framework.
Applications in Graph Drawing
The authors demonstrate the versatility of their scheme by applying it to several central problems in the field:
- Grid Recognition: They provide an $n^{O(k)}$ algorithm to determine if a graph is a grid graph, which simplifies to $n^{O(\sqrt{n})}$ for standard drawings.
- Crossing and Bend Minimization: They show these problems are solvable in XP time when parameterized by drawn treewidth.
- Orthogonal Compaction: They prove that finding a minimum-area drawing that respects fixed edge directions is also solvable in XP time.
Limitations and Future Work
The current framework is primarily restricted to polyline grid drawings, where vertices must sit on integer grid points and edges consist of axis-parallel segments. A natural extension of this work would involve generalizing the decomposition to Euclidean space, where vertices and edges are not confined to a grid.
Additionally, while the paper provides XP algorithms, it remains an open question whether these runtimes can be improved to Fixed-Parameter Tractable (FPT) algorithms, where the exponent of the input size is independent of the parameter $k$. Finally, the authors suggest exploring whether Drawn Tree Decompositions satisfy duality theorems similar to those found in classical graph minor theory, such as the existence of "grid-like" obstructions for high drawn treewidth.
Summary updated