Table of Contents
Fetching ...

Recognizing 2-Layer and Outer $k$-Planar Graphs

Yasuaki Kobayashi, Yuto Okada, Alexander Wolff

TL;DR

The paper investigates the recognition problem for two locally constrained graph classes—2-layer $k$-planar and outer $k$-planar graphs—under fixed-parameter settings. It introduces degree-reduction rules and a dynamic-programming approach to obtain XP algorithms for both problems, and refines one result to an $FPT$ algorithm when the order on one layer is specified, with running time $2^{O(k\log k)}n^{O(1)}$. It also establishes hardness barriers: XNLP-hardness for the general recognition problems and weak NP-hardness for the weighted one-sided variant, highlighting intrinsic complexity barriers even for small $k$ or restricted inputs. These results delineate the tractability landscape for recognizing constrained planar-like graphs and identify precise conditions under which efficient algorithms are feasible. The findings have implications for graph drawing applications and related parameterized complexity inquiries in beyond-planarity regimes.

Abstract

The crossing number of a graph is the least number of crossings over all drawings of the graph in the plane. Computing the crossing number of a given graph is NP-hard, but fixed-parameter tractable (FPT) with respect to the natural parameter. Two well-known variants of the problem are 2-layer crossing minimization and circular crossing minimization, where every vertex must lie on one of two layers, namely two parallel lines, or a circle, respectively. Both variants are NP-hard, but FPT with respect to the natural parameter. Recently, a local version of the crossing number has also received considerable attention. A graph is $k$-planar if it admits a drawing with at most $k$ crossings per edge. In contrast to the crossing number, recognizing $k$-planar graphs is NP-hard even if $k=1$. In this paper, we consider the two above variants in the local setting. The $k$-planar graphs that admit a straight-line drawing with vertices on two layers or on a circle are called 2-layer $k$-planar and outer $k$-planar graphs, respectively. We study the parameterized complexity of the two recognition problems with respect to $k$. For $k=0$, both problems can easily be solved in linear time. Two groups independently showed that outer 1-planar graphs can also be recognized in linear time [Hong et al., Algorithmica 2015; Auer et al., Algorithmica 2016]. One group asked whether outer 2-planar graphs can be recognized in polynomial time. Our main contribution consists of XP-algorithms for recognizing 2-layer $k$-planar graphs and outer $k$-planar graphs. We complement these results by showing that both recognition problems are XNLP-hard. This implies that both problems are W$[t]$-hard for every $t$ and that it is unlikely that they admit FPT-algorithms. On the other hand, we present an FPT-algorithm for recognizing 2-layer $k$-planar graphs where the order of the vertices on one layer is specified.

Recognizing 2-Layer and Outer $k$-Planar Graphs

TL;DR

The paper investigates the recognition problem for two locally constrained graph classes—2-layer -planar and outer -planar graphs—under fixed-parameter settings. It introduces degree-reduction rules and a dynamic-programming approach to obtain XP algorithms for both problems, and refines one result to an algorithm when the order on one layer is specified, with running time . It also establishes hardness barriers: XNLP-hardness for the general recognition problems and weak NP-hardness for the weighted one-sided variant, highlighting intrinsic complexity barriers even for small or restricted inputs. These results delineate the tractability landscape for recognizing constrained planar-like graphs and identify precise conditions under which efficient algorithms are feasible. The findings have implications for graph drawing applications and related parameterized complexity inquiries in beyond-planarity regimes.

Abstract

The crossing number of a graph is the least number of crossings over all drawings of the graph in the plane. Computing the crossing number of a given graph is NP-hard, but fixed-parameter tractable (FPT) with respect to the natural parameter. Two well-known variants of the problem are 2-layer crossing minimization and circular crossing minimization, where every vertex must lie on one of two layers, namely two parallel lines, or a circle, respectively. Both variants are NP-hard, but FPT with respect to the natural parameter. Recently, a local version of the crossing number has also received considerable attention. A graph is -planar if it admits a drawing with at most crossings per edge. In contrast to the crossing number, recognizing -planar graphs is NP-hard even if . In this paper, we consider the two above variants in the local setting. The -planar graphs that admit a straight-line drawing with vertices on two layers or on a circle are called 2-layer -planar and outer -planar graphs, respectively. We study the parameterized complexity of the two recognition problems with respect to . For , both problems can easily be solved in linear time. Two groups independently showed that outer 1-planar graphs can also be recognized in linear time [Hong et al., Algorithmica 2015; Auer et al., Algorithmica 2016]. One group asked whether outer 2-planar graphs can be recognized in polynomial time. Our main contribution consists of XP-algorithms for recognizing 2-layer -planar graphs and outer -planar graphs. We complement these results by showing that both recognition problems are XNLP-hard. This implies that both problems are W-hard for every and that it is unlikely that they admit FPT-algorithms. On the other hand, we present an FPT-algorithm for recognizing 2-layer -planar graphs where the order of the vertices on one layer is specified.

Paper Structure

This paper contains 5 sections, 5 theorems, 3 equations, 1 figure.

Key Result

Lemma 0

Let $(G, <_X, k)$ be an instance of One-Sided $k$-Planarity. If $G$ contains a vertex $v \in X$ with $\deg(v) > 2k + 2$ and with a leaf neighbor $y \in Y$, then $(G, <_X, k)$ is a YES-instance if and only if $(G-y, <_X, k)$ is a YES-instance.

Figures (1)

  • Figure 1: Drawings of the same bipartite graph with optimal local crossing number in different settings: (a) planar drawing, (b) 2-layer 2-planar drawing without restriction, (c) 2-layer 3-planar drawing where the vertex order on the upper layer is fixed, (d) outer 1-planar drawing.

Theorems & Definitions (5)

  • Lemma 0: lem:2-layer:degree-reduction
  • Theorem 1
  • Lemma 1: lem:2-layer:if-far-enough-they-dont-cross
  • Lemma 2
  • Theorem 3: thm:weighted-one-sided-np-hard