NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The Price of Upwardness

Patrizio Angelini, Therese Biedl, Markus Chimani, Sabine Cornelsen, Giordano Da Lozzo, Seok-Hee Hong, Giuseppe Liotta, Maurizio Patrignani, Sergey Pupyrev, Ignaz Rutter, Alexander WolffGD 2024

Abstract

In the field of graph drawing, the requirement that edges in a directed acyclic graph (DAG) point monotonically upward often conflicts with the desire for planarity. This paper introduces and explores the "Price of Upwardness"—the minimum number of crossings per edge ($k$) required to achieve an upward drawing. We demonstrate that while certain graph classes like outerpaths are always upward 2-planar, testing for upward 1-planarity is generally NP-complete. However, we provide a linear-time algorithm for the specific case of upward outer-1-planar drawings of single-source DAGs.

Introduction

Graph planarity—drawing a graph such that no two edges cross—is a fundamental goal in data visualization. For directed graphs, a further constraint is often imposed: "upward planarity," where every edge must point in a consistent direction, typically along the positive y-axis. While many graphs are planar, a significant subset cannot be drawn upward without introducing edge crossings.

This research moves "beyond planarity" by investigating upward $k$-planarity. In this model, edges must maintain their upward orientation, but each edge is permitted to be involved in at most $k$ crossings. The "Price of Upwardness" is the combinatorial and algorithmic cost associated with this requirement. This paper seeks to quantify how many crossings are forced by the upward constraint and how difficult it is to determine if a graph fits within a specific $k$-planar threshold.

Combinatorial Bounds and the "Fan" Limitation

A central insight of the paper is the identification of small, "forbidden" configurations that necessitate crossings. One such structure is the 7-vertex "fan" graph $F$. Despite its small size, this graph cannot be drawn upward-planarly without crossings, serving as a benchmark for the complexity of larger DAGs.

The fan graph F, a fundamental structure that forces crossings in upward drawings.

The authors establish that the number of crossings is often tied to a graph's bandwidth—a measure of how closely related vertices can be ordered linearly. They prove that the local crossing number is at most quadratic in the graph's bandwidth. This suggests that if a graph's connections are relatively "local" within a linear ordering, the number of crossings required to keep it pointing upward remains manageable.

Algorithmic Complexity and NP-Completeness

One might assume that allowing just a single crossing per edge ($k=1$) would make the problem computationally easier than standard upward planarity. However, the authors prove the opposite: testing whether a DAG is upward 1-planar is NP-complete. This holds true even for highly restricted graph families, such as single-source single-sink series-parallel DAGs, where standard upward planarity testing is efficient.

To establish this hardness, the authors utilized a reduction from the 3-PARTITION problem. This reduction demonstrates that the geometric constraints of upward 1-planarity can be used to encode complex numerical partitioning problems, implying that the "beyond planarity" version of the problem is fundamentally more complex than its planar counterpart.

The Outer-1-Planar Exception

Despite the general hardness results, the paper identifies a significant "sweet spot" for algorithmic efficiency. If the drawing is required to be outer-1-planar—meaning all vertices must lie on the outer face of the drawing—the problem becomes solvable in linear time for single-source DAGs.

A 1-planar upward drawing of the fan F, illustrating how a single crossing per edge can resolve upwardness constraints.

This algorithm leverages SPQR-trees, a data structure that decomposes a graph into its biconnected components (series, parallel, and rigid). By using SPQR-trees to systematically manage the possible embeddings of the graph, the authors can efficiently decide if a valid upward outer-1-planar drawing exists.

Key Results Summary

  • Outerpaths: Every directed acyclic outerpath can be drawn as an upward 2-planar graph.
  • Unbounded Crossings: For classes like bipartite outerplanar or cubic DAGs, the required $k$ can grow with the size of the graph, meaning no constant $k$ suffices for all instances.
  • Complexity: Upward 1-planarity testing is NP-complete for several restricted DAG classes.
  • Efficiency: A linear-time algorithm exists for upward outer-1-planarity in single-source DAGs.

Future Directions

The study of the Price of Upwardness opens several new avenues for research. While the linear-time algorithm for outer-1-planarity is a major step, extending it to multi-source or multi-sink graphs remains an open challenge. Additionally, the behavior of the problem for $k \ge 2$ is not yet fully understood. Future work may also explore the problem through the lens of parameterized complexity, examining how parameters like treewidth influence the number of required crossings.

Summary updated

BibTeX
@inproceedings{angelini2024price,
  author = {Patrizio Angelini and Therese Biedl and Markus Chimani and Sabine Cornelsen and Giordano Da Lozzo and Seok-Hee Hong and Giuseppe Liotta and Maurizio Patrignani and Sergey Pupyrev and Ignaz Rutter and Alexander Wolff},
  title = {{The Price of Upwardness}},
  booktitle = {GD},
  year = {2024},
  doi = {10.4230/lipics.gd.2024.13},
}

Loading related content...

Figure