1 Introduction

1.1 Background and Motivation

Kernelization [1] is a subfield of parameterized complexity [2, 3] that investigates the complexity of preprocessing \(\mathsf {NP}\)-hard problems. A parameterized problem includes in its input an integer k which we call the parameter. This parameter can be seen as a measure of complexity of the problem input. A common choice is to treat the size of the desired solution as the parameter. A kernelization is a polynomial-time preprocessing algorithm that converts a problem instance with parameter k into an equivalent parameterized instance of the same problem such that both the size and the parameter value of the new instance are bounded by a function f of k. The function f is called the size of the kernel. It is known that a decidable parameterized problem has a kernel if and only if it is fixed-parameter tractable [2,  Lemma 2.2]. A major challenge is to determine which parameterized problems admit a kernel of polynomial size.

One class of problems that received much attention [4,5,6,7,8] is \({\mathcal {F}}\)-MINOR-FREE Deletion. For a fixed finite family of graphs \({\mathcal {F}}\), the \({\mathcal {F}}\)-MINOR-FREE Deletion problem asks, given a graph G and parameter k, whether a vertex set \(S \subseteq V(G)\) of size k exists such that the graph \(G-S\), obtained from G by removing the vertices in S, does not contain any graph \(F \in {\mathcal {F}} \) as a minor. This class of problems includes a large variety of well-studied problems such as Vertex Cover, Feedback Vertex Set, and Planarization, which are obtained by taking \({\mathcal {F}}\) equal to (respectively) \(\{K_2\}\), \(\{K_3\}\), and \(\{K_5, K_{3,3}\}\). All of the \({\mathcal {F}}\)-MINOR-FREE Deletion problems are fixed-parameter tractable [9], but it is unknown whether they all admit a polynomial kernel [5]. If each graph in \({\mathcal {F}}\) contains at least one edge, it follows from the general results of Lewis and Yannakakis [10] that \({\mathcal {F}}\)-MINOR-FREE Deletion is \(\mathsf {NP}\)-hard.

If \({\mathcal {F}}\) is restricted to only families containing a planar graph we speak of Planar-\({\mathcal {F}}\)  DELETION. Since the family of \(\mathcal {F}\)-minor-free graphs has bounded treewidth if and only if \(\mathcal {F}\) includes a planar graph [11], this restriction ensures that removing a solution to the problem yields a graph of constant treewidth. Hence any solution is a treewidth-\(\eta \) modulator for some \(\eta \in \mathbb {N}\) depending on \(\mathcal {F}\). For this more restricted class Fomin et al. [5] have shown that polynomial kernels exist for each choice of \({\mathcal {F}}\). However, the running time of this kernelization algorithm is described by the authors as “horrendous” and regarding the size the authors state the following in the arXiv version of their work:

The size of the kernel, however, is not explicit. Several of the constants that go into the proof of Lemma 29 depend on the size of the largest graph in certain antichains in a well-quasi-order and thus we don’t know what the (constant) exponent bounding the size of the kernel is. We leave it to future work to make also the size of the kernel explicit.

For some specific Planar-\({\mathcal {F}}\)  DELETION problems kernels with explicit size are known. Most famous are Vertex Cover and Feedback Vertex Set which admit kernels with respectively a linear and quadratic number of vertices [12,13,14]. Additionally, if \(\theta _c\) denotes the graph with two vertices and \(c \ge 1\) parallel edges, then \(\{\theta _c\}\)-MINOR-FREE Deletion admits a kernel with \({\mathcal {O}}(k^2 \log ^{3/2} k)\) vertices and edges [4, Theorem 1.2]; note that the cases \(c=1\) and \(c=2\) correspond to Vertex Cover and Feedback Vertex Set. Another problem for which an explicit kernel size bound is known is PATHWIDTH-ONE Deletion, where the goal is to obtain a graph of pathwidth one, i.e., each connected component is a caterpillar. First a kernel of quartic size was obtained [15] which was later improved to a quadratic kernel [16]. If we want to remove at most k vertices to obtain a graph of treedepth at most \(\eta \), we obtain the Treedepth-\(\eta \) Deletion problem. Since this property can be characterized by forbidden minors and bounded treedepth implies bounded treewidth, this problem is also a special case of Planar-\({\mathcal {F}}\)  DELETION. Giannopoulou et al. [6] have shown that for every \(\eta \), there is a kernel with \(2^{{\mathcal {O}}(\eta ^2)}\cdot k^6\) vertices for Treedepth-\(\eta \) Deletion. They have also proven that in general there is no hope for a universal constant in the kernel exponent and the degree of the polynomial which bounds the kernel size must increase as a function of \({\mathcal {F}}\) unless \(\mathsf {NP} \subseteq \mathsf {coNP/poly}\).

In this paper we investigate Outerplanar Deletion, which asks for a graph G and parameter k whether a set \(S \subseteq V(G)\) of size k exists such that \(G-S\) is outerplanar. A graph is outerplanar if it admits a planar embedding for which all vertices lie on the outer face, or equivalently, if it contains neither \(K_4\) nor \(K_{2,3}\) as a minor. Outerplanar graphs form a rich superclass of forests and are frequently studied in graph theory [17,18,19,20,21], graph drawing [22,23,24], and optimization [25,26,27,28].

Since outerplanarity can be characterized as being \(\{K_4,K_{2,3}\}\)-minor-free [17], the problem belongs to the class of Planar-\({\mathcal {F}}\)  DELETION problems. It is arguably the easiest problem in the class for which no explicit polynomial kernel is known. This makes Outerplanar Deletion a well-suited starting point to deepen our understanding of Planar-\({\mathcal {F}}\)  DELETION problems in the search for explicit kernelization bounds.

1.2 Results

Let \(\mathsf {opd}(G)\) denote the minimum size of a vertex set \(S \subseteq V(G)\) such that \(G-S\) is outerplanar. Our main result is the following theorem:

Theorem 1.1

The Outerplanar Deletion problem admits a polynomial-time kernelization algorithm that, given an instance (Gk), outputs an equivalent instance \((G',k')\), such that \(k' \le k\), graph \(G'\) is a minor of G, and \(G'\) has \({\mathcal {O}}(k^4)\) vertices and edges. Furthermore, if \(\mathsf {opd}(G) \le k\), then \(\mathsf {opd}(G') = \mathsf {opd}(G) - (k - k')\).

The algorithm behind Theorem 1.1 is elementary, consisting of a subroutine to build a decomposition of the input graph G using marking procedures in a tree decomposition, together with a series of explicit reduction rules. In particular, we avoid the use of protrusion replacement (summarized below). Concrete bounds on the hidden constant in the \({\mathcal {O}}\)-notation follow from our arguments. The size bound depends on the approximation ratio of an approximation algorithm that bootstraps the decomposition phase, for which the current state-of-the-art is 40. We will therefore present a formula to obtain a concrete bound on the kernel size, rather than its value using the current-best approximation (which would exceed \(10^5\)).

Theorem 1.1 presents the first concrete upper bound on the degree of the polynomial that bounds the size of kernels for Outerplanar Deletion . We hope that it will pave the way towards obtaining explicit size bounds for all Planar-\({\mathcal {F}}\)  DELETION problems and give an impetus for research on the kernelization complexity of the Planar Deletion problem, which is one of the major open problems in kernelization today [29, 4:28], [1, Appendix A].

Via known connections [5] between kernelizations that reduce to a minor of the input graph and bounds on the sizes of obstruction sets, we obtain the following corollary.

Corollary 1.2

If G is a graph such that \(\mathsf {opd}(G) > k\) but each proper minor \(G'\) of G satisfies \(\mathsf {opd}(G') \le k\), then G has \({\mathcal {O}}(k^4)\) vertices and edges.

The existence of a polynomial bound with unknown degree follows from the work of Fomin et al. [5]; Corollary 1.2 gives the first explicit size bounds and contributes to a large body of research on minor-order obstructions (e.g. [30,31,32,33,34,35,36]).

1.3 Techniques

The known kernelization algorithms [4, 5] for Planar-\({\mathcal {F}}\)  DELETION make use of (near-)protrusions. A protrusion is a vertex set that induces a subgraph of constant treewidth and boundary size. Protrusion replacement is a technique where sufficiently large protrusions are replaced by smaller ones without changing the answer. Protrusion techniques were first used to obtain kernels for problems on planar and other topologically-defined graph classes [37]. Later Fomin et al. [4] described how to use protrusion techniques for problems on general graphs. They proved [4,  Lemma 3.3] that any graph G, which contains a modulator X to constant treewidth such that \(\vert X\vert \) and the size of its neighborhood can be bounded by a polynomial in k, contains a protrusion of size \(\vert V(G)\vert /k^{{\mathcal {O}}(1)}\) that can be found efficiently. For any fixed \({\mathcal {F}}\) containing a planar graph, they present a method to obtain a small modulator to an \({\mathcal {F}}\)-minor-free graph, which has constant treewidth. This leads to a polynomial kernel for Planar-\({\mathcal {F}}\)  DELETION on graphs with bounded degree since the size of the neighborhood of the modulator can be bounded so protrusion replacement can be used to obtain a polynomial kernel. Specifically for \(\{\theta _c\}\)-MINOR-FREE Deletion they give reduction rules to reduce the maximum degree in a general graph, which leads to a polynomial kernel on general graphs.

The kernel for Planar-\({\mathcal {F}}\)  DELETION given by Fomin et al. [5] does not rely on bounding the size of the neighborhood of the modulator followed by protrusion replacement. Instead they present the notion of a near-protrusion: a vertex set that will become a protrusion after removing any size-k solution from the graph. With an argument based on well-quasi-ordering they determine that if such near-protrusions are large enough one can, in polynomial time, reduce to a proper minor of the graph without changing the answer.

In this paper we present a method for Outerplanar Deletion to decrease the size of the neighborhood of a modulator to outerplanarity. This relies on a process that was called “tidying the modulator” in earlier work [38] and also used in the kernelization for Chordal Vertex Deletion [39]. The result is a larger modulator \(X \subseteq V(G)\) but with the additional feature that it retains its modulator properties when omitting any single vertex, that is, \(G - (X \setminus \{x\})\) is outerplanar for each \(x \in X\). We proceed by decomposing the graph into near-protrusions, following along similar lines as the decomposition by Fomin et al. [4] but exploiting the structure of outerplanar graphs at several steps to obtain such a decomposition with respect to our larger tidied modulator, without leading to worse bounds. With the additional properties of the modulator X obtained from tidying we no longer need to rely on well-quasi-ordering, but instead are able to reduce the size of the neighborhood of the modulator in two steps. The first reduces the number of connected components of \(G - X\) which are adjacent to any particular modulator vertex \(x \in X\). In the case of \(\{\theta _c\}\)-minor-free graphs, if \(G - (X \setminus \{x\})\) is \(\{\theta _c\}\)-minor-free then bounding the number of components of \(G-X\) adjacent to each \(x \in X\) this is sufficient to bound \(\vert N_G(X)\vert \), since any \(x \in X\) has less than c neighbors in any component of \(G - (X \setminus \{x\})\). One of the major difficulties we face when working with \(\{K_{2,3}\}\)-minor-free graphs is that in such a graph there can be arbitrarily many edges between a vertex x and a connected component of \(G - (X \setminus \{x\})\). Therefore we present an additional reduction rule that reduces, in a second step, the number of edges between a vertex and a connected component. After these two steps we obtain a bound on the size of the neighborhood of the modulator. At this point, standard protrusion replacement could be applied to prove the existence of a kernel for Outerplanar Deletion with \({\mathcal {O}}(k^4)\) vertices. In order to give an explicit kernelization algorithm we present a number of additional reduction rules to avoid the generic protrusion replacement technique. This eventually leads to a kernel with at most \(c \cdot k^4\) vertices and edges for Outerplanar Deletion. It is conceptually simple (yet tedious) to extract the explicit value of c from the algorithm description.

1.4 Organization

In the next section we give basic definitions and notation we use throughout the rest of the paper, together with structural observations for outerplanar graphs. Section 3 describes how we obtain small modulators to outerplanarity with progressively stronger properties, and finally we obtain a modulator of size \({\mathcal {O}}(k^4)\) such that each remaining component has only 4 neighbors in the modulator, effectively forming a decomposition into protrusions. The second stage of the kernelization reduces the size of the connected components outside the modulator. These reduction rules are described in Sect. 4. In Sect. 5 we finally tie everything together to obtain a kernel with \({\mathcal {O}}(k^4)\) vertices and edges.

2 Preliminaries

2.1 Approximation and kernelization

Let A be a minimization problem and let \(\mathsf {OPT}(I)\) denote the minimum cost of a solution to an instance I. For a constant \(\alpha > 1\), an \(\alpha \)-approximation algorithm for A is an algorithm that, given an instance I, outputs a solution of cost at most \(\alpha \cdot \mathsf {OPT}(I)\).

A parameterized problem is a decision problem in which every input has an associated positive integer that captures its complexity in some well-defined way. For a parameterized problem \(A \subseteq \Sigma ^* \times \mathbb {N}\) and a function \(f :\mathbb {N} \rightarrow \mathbb {N}\), a kernelization for A of size f is an algorithm that, on input \((x,k) \in \Sigma ^* \times \mathbb {N}\), takes time polynomial in \(\vert x\vert + k\) and outputs \((x',k') \in \Sigma ^* \times \mathbb {N}\) such that the following holds:

  1. 1.

    \((x,k) \in A\) if and only if \((x',k') \in A\), and

  2. 2.

    both \(\vert x'\vert \) and \(k'\) are bounded by f(k).

2.2 Graph theory

The set \(\{1,\ldots ,p\}\) is denoted by [p]. We consider simple undirected graphs without self-loops. A graph G has vertex set V(G) and edge set E(G). We use shorthand \(n = \vert V(G)\vert \) and \(m = \vert E(G)\vert \). For (not necessarily disjoint) \(A,B \subseteq V(G)\), we define \(E_G(A,B) = \{uv \mid u \in A, v \in B, uv \in E(G)\}\). The open neighborhood of \(v \in V(G)\) is \(N_G(v) := \{u \mid uv \in E(G)\}\), where we omit the subscript G if it is clear from context. For a vertex set \(S \subseteq V(G)\) the open neighborhood of S, denoted \(N_G(S)\), is defined as \(\bigcup _{v \in S} N_G(v) \setminus S\). The closed neighborhood of a single vertex v is \(N_G[v] := N_G(v) \cup \{v\}\), and the closed neighborhood of a vertex set S is \(N_G[S] := N_G(S) \cup S\). The boundary of a vertex set \(S \subseteq V(G)\) is the set \(\partial _G(S) = N_G(V(G) \setminus S)\). For \(A \subseteq V(G)\), the graph induced by A is denoted by G[A] and we say that the vertex set A is connected if the graph G[A] is connected. We use notation \(G\langle A\rangle = G[N_G[A]]\). For readability, in expressions taking a vertex set as argument, we may give a subgraph instead, e.g., if H a subgraph of G then \(N_G(H) = N_G(V(H))\)\(G\langle H\rangle = G \langle V(H)\rangle \), and \(\partial _G(H) = \partial _G(V(H))\). We use shorthand \(G-A\) for the graph \(G[V(G) \setminus A]\). For \(v \in V(G)\), we write \(G-v\) instead of \(G-\{v\}\). For \(A \subseteq E(G)\) we denote by \(G \setminus A\) the graph with vertex set V(G) and edge set \(E(G) \setminus A\). For \(e \in E(G)\) we write \(G \setminus e\) instead of \(G \setminus \{e\}\). If \(e = uv\), then \(V(e) = \{u,v\}\).

A tree is a connected graph that is acyclic. A forest is a disjoint union of trees. In tree T with root r, we say that \(t \in V(T)\) is an ancestor of \(t' \in V(T)\) (equivalently \(t'\) is a descendant of t) if t lies on the (unique) path from r to \(t'\). For two disjoint sets \(X,Y \subseteq V(G)\), we say that \(S \subseteq V(G) \setminus (X \cup Y)\) is an (XY)-separator if the graph \(G-S\) does not contain any path from any \(u\in X\) to any \(v\in Y\). By Menger’s theorem, if \(x,y \in V(G)\) are non-adjacent in G then the size of a minimum (xy)-separator is equal to the maximum number of internally vertex-disjoint paths from x to y. A vertex \(v \in V(G)\) is an articulation point in a connected graph G if \(G-v\) is not connected. A connected graph is called biconnected if it has no articulation points. A biconnected component in G is an inclusion-wise maximal subgraph which is biconnected. A graph G is 2-connected if it is biconnected and has at least three vertices. In a 2-connected graph, for every pair of vertices \(u,v \in V(G)\) there exists a cycle going through both u and v. The structure of the biconnected components and articulation points in a connected graph G is captured by a tree called the block-cut tree. It has a vertex for each biconnected component and for each articulation point in G. A biconnected component B and an articulation point v are connected by an edge if \(v \in V(B)\).

A vertex set \(A \subseteq V(G)\) is an independent set in G if \(E_G(A,A) = \emptyset \). A graph G is bipartite if there is a partition of V(G) into two independent sets AB. We write shortly \(G = (A \cup B, E)\) to express that G is a bipartite graph with edge set \(E = E(G)\) for which A and B form a partition of the vertices into two independent sets.

Definition 2.1

For a vertex set \(X \subseteq V(G)\) the component graph \(\mathcal {C}(G, X)\) is a bipartite graph \((X \cup Y, E)\), where Y is the set of connected components of \(G - X\), and \((v,C) \in E\) if there is at least one edge between \(v \in X\) and the component \(C \in Y\).

For an integer q, the graph \(K_q\) is the complete graph on q vertices. For integers pq, the graph \(K_{p,q}\) is the bipartite graph \((A \cup B, E)\), where \(\vert A\vert =p\), \(\vert B\vert =q\), and \(uv \in E\) whenever \(u \in A, v \in B\).

2.3 Minors

A contraction of \(uv \in E(G)\) introduces a new vertex adjacent to all of \(N_G(\{u,v\})\), after which u and v are deleted. For \(A \subseteq V(G)\) such that G[A] is connected, we say we contract A if we simultaneously contract all edges in G[A] and introduce a single new vertex. We say that H is a minor of G, if we can turn G into H by a (possibly empty) series of edge contractions, edge deletions, and vertex deletions. If this series is non-empty, then H is called a proper minor of G. We can represent the result of such a process with a mapping \(\phi :V(H) \rightarrow 2^{V(G)}\), such that subgraphs \((G[\phi (h)])_{h\in V(H)}\) are connected and vertex-disjoint, with an edge of G between a vertex in \(\phi (u)\) and a vertex in \(\phi (v)\) for all \(uv \in E(H)\). The sets \(\phi (h)\) are called branch sets and the family \((\phi (h))_{h\in V(H)}\) is called a minor-model of H in G.

2.4 Planar and outerplanar graphs

A plane embedding of graph G is given by a mapping from V(G) to \(\mathbb {R}^2\) and a mapping that associates with each edge \(uv \in E(G)\) a simple curve on the plane connecting the images of u and v, such that the curves given by two distinct edges can intersect only at the image of a vertex that is a common endpoint of both edges. A face in a plane embedding of a graph G is a subset of the plane enclosed by images of some subset of the edges. We say that a vertex v lies on a face f if the image of v belongs to the closure of f. In every plane embedding there is exactly one face of infinite area, referred to as the outer face. Let F denote the set of faces in a plane embedding of G. Then Euler’s formula states that \(\vert V(G)\vert - \vert E(G)\vert + \vert F\vert = 2\). Given a plane embedding of G we define the dual graph \({\widehat{G}}\) with \(V({\widehat{G}}) = F\) and edges given by pairs of distinct faces that are incident on an image of a common edge from E(G). A weak dual graph is obtained from the dual graph by removing the vertex created in place of the outer face.

A graph is called planar if it admits a plane embedding. By Wagner’s theorem, a graph G is planar if and only if G contains neither \(K_5\) nor \(K_{3,3}\) as a minor. A graph is called outerplanar if it admits a plane embedding with all vertices lying on the outer face. A graph G is outerplanar if and only if G contains neither \(K_4\) nor \(K_{2,3}\) as a minor [17]. If a graph G is planar (resp. outerplanar) and H is a minor of G, then H is also planar (resp. outerplanar). The weak dual of an embedded biconnected outerplanar graph G is either an empty graph, if G is a single edge or vertex, or a tree otherwise [20]. A graph G is planar (resp. outerplanar) if and only if every biconnected component in G induces a planar (resp. outerplanar) graph.

Observation 2.2

Let \(v \in V(G)\). The graph G is outerplanar if and only if for each connected component C of \(G - v\) the graph \(G \langle C\rangle \) is outerplanar.

For a graph G we call \(S \subseteq V(G)\) an outerplanar deletion set if \(G-S\) is outerplanar. The outerplanar deletion number of G, denoted \(\mathsf {opd}(G)\), is the size of a smallest outerplanar deletion set in G.

2.5 Structural properties of outerplanar graphs

We present a number of structural observations of outerplanar graphs which will be useful in our later argumentation. The first is a characterization of outerplanar graphs similar to Observation 2.2. Rather than looking at the components of a graph with one vertex removed, it considers the components of a graph with both endpoints of an edge removed. This allows us for example to easily argue about outerplanarity of graphs obtained from “gluing” two outerplanar graphs on two adjacent vertices. Recall that \(G\langle C\rangle = G[N_G[V(C)]]\).

Lemma 2.3

Let G be a graph and \(e \in E(G)\). Then G is outerplanar if and only if both of the following conditions hold:

  1. 1.

    for each connected component C of \(G - V(e)\) the graph \(G \langle C\rangle \) is outerplanar, and

  2. 2.

    the graph \(G \setminus e\) does not have three induced internally vertex-disjoint paths connecting the endpoints of e.

Proof

(\(\Rightarrow \)) Suppose G is outerplanar. Then every subgraph of G is outerplanar, showing the first condition holds. If \(G \setminus e\) has three induced internally vertex-disjoint paths connecting the endpoints of \(e = xy\), then each path has at least one interior vertex which shows that G has a \(K_{2,3}\)-minor, contradicting outerplanarity of G.

(\(\Leftarrow \)) Suppose the two conditions hold, and suppose for a contradiction that G is not outerplanar. Then G contains \(K_4\) or \(K_{2,3}\) as a minor. We consider the two cases separately.

G has a \(K_{2,3}\)-minor. Suppose that G contains \(K_{2,3}\) as a minor. It is easy to see that there exist two vertices \(u,v \in V(G)\) and three disjoint connected vertex sets \(A_1, A_2, A_3\) such that \(A_i\) contains a vertex of both \(N_G(u)\) and \(N_G(v)\) for all \(i \in [3]\). Let \(G_i\) be the graph obtained from \(G[\{u,v\} \cup A_i]\) by removing the edge uv, if it exists. There exists an (uv)-path in \(G_i\), so by taking a shortest path there exists an induced (uv)-path \(P_i\) in \(G_i\). Since the edge uv does not belong to \(G_i\), path \(P_i\) has at least one interior vertex. The three (uv)-paths \(P_1, P_2, P_3\) in G obtained in this way are internally vertex-disjoint, have at least one interior vertex, and are induced after removing the edge uv if it exists. We use this to derive a contradiction.

If the edge uv exists and is equal to e, then the existence of \(P_1,P_2,P_3\) shows that the second condition is violated and leads to a contradiction. So in the remainder, we may assume that \(e \ne uv\). Hence at least one vertex of \(\{u,v\}\) lies in a connected component C of \(G - V(e)\). Assume without loss of generality that \(u \notin V(e)\) and u lies in V(C). We show that \(v \in V(G \langle C\rangle )\) in this case. Suppose that v does not belong to \(G \langle C\rangle \). Then in particular \(v \notin V(e)\) and the vertices V(e) separate u from v; but since \(P_1,P_2,P_3\) are three internally vertex-disjoint paths, vertices u and v cannot be separated by the set V(e) of two vertices. It follows that \(u,v \in V(G \langle C\rangle )\).

We claim that each path \(P_i\) is a subgraph of \(G \langle C\rangle \). To see this, note that the path starts and ends in \(G \langle C\rangle \). The two vertices V(e) are the only vertices of \(G \langle C\rangle \) which have neighbors in G outside \(G \langle C\rangle \). So a path starting and ending in \(G \langle C\rangle \) has to leave \(G \langle C\rangle \) at one vertex of V(e) and enter \(G \langle C\rangle \) at the other; but then e is a chord of this path other than uv. Since the paths \(P_i\) do not have such chords, it follows that each path \(P_i\) is a subgraph of \(G \langle C\rangle \).

By the above, the graph \(G \langle C\rangle \) contains three internally vertex-disjoint paths \(P_1,P_2,P_3\) with at least one interior vertex each. But then \(G \langle C\rangle \) contains \(K_{2,3}\) as a minor and is not outerplanar; a contradiction to the first condition.

G has a \(K_4\)-minor. In the remainder, we may assume that G contains \(K_4\) as a minor but does not contain \(K_{2,3}\) as a minor, as otherwise the previous case applies. Observe that this means that G contains \(K_4\) as a subgraph: any subdivision of \(K_4\) leads to a \(K_{2,3}\) minor.

So let H be a \(K_4\) subgraph in G. Observe that there cannot be two connected components of \(G - V(e)\) that both contain a vertex of H: any two vertices of the clique H are connected by an edge, which merges the connected components. So there is one connected component C of \(G - V(e)\) that contains all vertices of \(V(H) \setminus V(e)\). But then H is a subgraph of \(G \langle C\rangle \), proving that \(G \langle C\rangle \) is not outerplanar and contradicting the first condition. \(\square \)

In order to more easily apply Lemma 2.3, we show that no two induced paths as referred to in Lemma 2.3(2) can lie in the same connected component C as referred to in Lemma 2.3(1).

Lemma 2.4

Suppose G is outerplanar with an edge \(uv \in E(G)\). If \(P_1,P_2\) are internally vertex-disjoint (uv)-paths in \(G \setminus uv\), then the interiors of \(P_1\) and \(P_2\) lie in different connected components of \(G-\{u,v\}\).

Proof

Suppose for contradiction that the interiors of \(P_1\) and \(P_2\) are in the same connected component of \(G-\{u,v\}\), and let P be a path from \(V(P_1)\) to \(V(P_2)\) in \(G - \{u,v\}\). Let \(G'\) be the graph obtained from G by contracting the interiors of \(P_1\) and \(P_2\) into a single vertex \(p_1\) and \(p_2\) respectively and contracting P to realize the edge \(p_1p_2\). Clearly \(G'\) is a minor of G so then \(G'\) doesn’t contain a \(K_4\)-minor. Observe however that \(\{u,v,p_1,p_2\}\) induce a \(K_4\) subgraph in \(G'\). Contradiction. \(\square \)

We now give a condition under which an edge can be added to an outerplanar graph without violating outerplanarity. Intuitively, this corresponds to adding an edge between two vertices that lie on the same interior face.

Lemma 2.5

Suppose G is outerplanar and vertices xy lie on an induced cycle D with \(xy \notin E(G)\). Then adding the edge xy to G preserves outerplanarity.

Proof

Let \(D_1, D_2\) be the two parts of the cycle \(D - \{x,y\}\). We claim that \(D_1\) and \(D_2\) belong to different connected components of \(G - \{x,y\}\). Suppose not, and let P be a path from \(V(D_1)\) to \(V(D_2)\) in \(G - \{x,y\}\) that intersects \(V(D_1)\) and \(V(D_2)\) in exactly one vertex \(v_1\) and \(v_2\), respectively. The path P has at least one interior vertex since the cycle D is induced. But then P together with the two induced \((v_1,v_2)\)-paths along D give a \(K_{2,3}\)-minor; a contradiction to the assumption that G is outerplanar.

Hence \(D_1\) and \(D_2\) belong to different connected components of \(G - \{x,y\}\). Let \(G'\) be the graph obtained from G by adding the edge xy. We show that for each connected component C of \(G' - \{x,y\}\) the graph \(G' \langle C\rangle \) is a minor of G and therefore outerplanar. This follows from the fact that, by the argument above, C contains at most one segment of the cycle D and therefore we can contract the remaining segment to realize the edge xy.

Using the above, we prove that \(G'\) is outerplanar by applying Lemma 2.3 to edge xy. The preceding argument shows that the first condition is satisfied. To see that the second condition is satisfied as well, note that G is outerplanar and therefore \(G' \setminus xy = G\) does not contain three internally vertex-disjoint paths connecting the endpoints of e. \(\square \)

Finally, we observe that if an outerplanar graph G has a cycle C, then any component of \(G-V(C)\) is adjacent to at most two vertices of the cycle (else there would be a \(K_4\) minor), and these must be consecutive on the cycle (else there would be a \(K_{2,3}\) minor).

Lemma 2.6

If C is a cycle in an outerplanar graph G, then each connected component of \(G - V(C)\) has at most two neighbors in C, and they must be consecutive along the cycle.

Proof

Suppose for a contradiction that some component D of \(G - V(C)\) has two neighbors xy which are not consecutive along C. Then the cycle provides two vertex-disjoint (xy)-paths with at least one interior vertex each, and component D provides a third (xy)-path with an interior vertex. This yields a \(K_{2,3}\)-minor where \(\{x\}\) and \(\{y\}\) are the branch sets of the degree-3 vertices, contradicting outerplanarity.

Now suppose that some component D of \(G - V(C)\) has three or more neighbors on C. Let \(P_1,P_2,P_3\) be three vertex-disjoint paths that cover the entire cycle C such that each path contains a neighbor of D and observe that \(V(P_1), V(P_2), V(P_3), V(D)\) form the branch sets of a \(K_4\)-minor in G, contradicting outerplanarity. \(\square \)

2.6 Treewidth and the LCA closure

A tree decomposition of graph G is a pair \((T, \chi )\) where T is a rooted tree, and \(\chi :V(T) \rightarrow 2^{V(G)}\), such that:

  1. 1.

    For each \(v \in V(G)\) the nodes \(\{t \mid v \in \chi (t)\}\) form a non-empty connected subtree of T.

  2. 2.

    For each edge \(uv \in E(G)\) there is a node \(t \in V(T)\) with \(\{u,v\} \subseteq \chi (t)\).

The width of a tree decomposition is defined as \(\max _{t \in V(T)} \vert \chi (t)\vert - 1\). The treewidth of a graph G is the minimum width of a tree decomposition of G. If w is a constant, then there is a linear-time algorithm that given a graph G either outputs a tree decomposition of width at most w or correctly concludes that treewidth of G is larger than w [40]. If a graph is outerplanar, then its treewidth is at most 2 [41,  Lemma 78]. Since n-vertex graphs of treewidth w can have at most \(w\cdot n\) edges [41,  Lemma 91] we obtain the following.

Observation 2.7

If G is an outerplanar graph, then \(\vert E(G)\vert \le 2 \cdot \vert V(G)\vert \).

Let T be a rooted tree and \(S \subseteq V(T)\) be a set of vertices in T. We define the least common ancestor of (not necessarily distinct) u and v, denoted as \(\mathsf {LCA}(u, v)\), to be the deepest node x which is an ancestor of both u and v. The LCA closure of S is the set

$$\begin{aligned} \overline{\mathsf {LCA}}(S) = \{\mathsf {LCA}(u, v): u, v \in S\}. \end{aligned}$$

Lemma 2.8

[1,  Lemma 9.26, 9.27, 9.28] Let T be a rooted tree, \(S \subseteq V(T)\), and \(M = \overline{\mathsf {LCA}}(S)\). All of the following hold.

  1. 1.

    Each connected component C of \(T - M\) satisfies \(\vert N_T(C)\vert \le 2\).

  2. 2.

    \(\vert M\vert \le 2\cdot \vert S\vert - 1\).

  3. 3.

    \(\overline{\mathsf {LCA}}(M) = M\).

Lemma 2.9

If \((T, \chi )\) is a tree decomposition of width at most c of a graph G, and \(B \subseteq V(T)\) is a set of nodes of T closed under taking lowest common ancestors (i.e., \(\overline{\mathsf {LCA}}(B) = B\)), then for \(M = \bigcup _{t \in B} \chi (t)\) and any connected component C of \(G - M\) we have \(\vert N_G(C) \cap M\vert \le 2c\).

Proof

Let \(T_C\) denote the subgraph of T induced by the nodes whose bag contains a vertex of C. Since C is a connected component of \(G - M\), we have \(V(T_C) \cap B = \emptyset \) and \(T_C\) is a connected tree rather than a forest. Hence there exists a tree \(T'\) in the forest \(T - B\) such that \(T_C\) is a subtree of \(T'\). Since B is closed under taking lowest common ancestors, it follows from Lemma 2.8 that for \(Z := N_T(V(T'))\) we have \(\vert Z\vert \le 2\). For each \(z \in Z\), let f(z) denote the first node outside \(V(T_C)\) on the unique shortest path in T from \(V(T_C)\) to z. Note that we may have \(z = f(z)\). Let g(z) denote the unique neighbor in T of node f(z) among \(V(T_C)\). Observe that both f(z) and g(z) lie on each path in T connecting a node of \(T_C\) to z.

By definition of \(T_C\) we have that each bag of \(T_C\) intersects V(C) while \(\chi (f(z))\) does not. Hence \(\chi (f(z)) \ne \chi (g(z))\). As each bag has size at most \(c+1\), it follows that \(\vert \chi (f(z)) \cap \chi (g(z))\vert \le c\) for each \(z \in Z\). To prove the desired claim that \(\vert N_G(C) \cap M\vert \le 2c\), it therefore suffices to argue that \(N_G(C) \cap M \subseteq \bigcup _{z \in Z} (\chi (f(z)) \cap \chi (g(z)))\).

Consider a vertex \(v \in N_G(C) \cap M\). We argue that \(v \in \chi (f(z)) \cap \chi (g(z))\) for some \(z \in Z\), as follows. Since \(v \in M\), there exists a node \(b^* \in B\) such that \(v \in \chi (b^*)\). Since \(v \in N_G(C)\) there exists \(u \in V(C)\) such that \(\{u,v\} \in E(G)\). Hence there is a bag in the tree decomposition containing both u and v, and as vertices of V(C) only occur in bags of the subtree \(T_C\), we find that v occurs in at least one bag of \(T_C\). Since the occurrences of v form a connected subtree of T, and v appears in at least one bag of \(T_C\) and at least one bag of B, while the only neighbors in B of the supertree \(T'\) of \(T_C\) are the nodes in Z, it follows that v occurs in at least one bag \(\chi (z)\) for some \(z \in Z\). But since all paths from \(T_C\) to z pass through f(z) and g(z) as observed above, this implies \(z \in \chi (f(z)) \cap \chi (g(z))\); this concludes the proof. \(\square \)

3 Splitting the Graph into Pieces

In this section we show how to reduce any input of Outerplanar Deletion to an equivalent instance which admits a decomposition into a modulator of bounded size along with a bounded number of outerplanar components containing at most four neighbors of the modulator.

3.1 The Augmented Modulator

The starting point for both our kernelization algorithm and the one from Fomin et al. [5] is to employ a constant-factor approximation algorithm. We however begin with a different approximation algorithm, which has two advantages. First, the algorithm is constructive: it relies only on separating properties of bounded-treewidth graphs and rounding a fractional solution from a linear programming relaxation. Second, the approximation factor can be pinned down to a concrete value.

Theorem 3.1

[42] There is a polynomial-time deterministic 40-approximation algorithm for Outerplanar Deletion.

Proof

The article [42] only states that the approximation factor is constant. However, it also provides a recipe to retrieve its value. From [42,  Theorem 1.1] we get that the approximation factor for Outerplanar Deletion is \(2\cdot \alpha (3)\), for a function \(\alpha \) satisfying the following: the problem k-Subset Vertex Separator admits a polynomial-time \((\alpha (k), {\mathcal {O}}(1))\)-bicriteria approximation algorithm. Without going into details, one can check that such an algorithm has been given by Lee [43]: by examining the proof of Lemma 2 therein for \(\varepsilon = \frac{1}{4}\) we see that one can construct a polynomial-time \((8\cdot H_{2k}, 2)\)-bicriteria approximation algorithm, where \(H_k\) is the k-th harmonic number. We check that \(2 \cdot 8 \cdot H_6 < 40\). Both algorithms in question are deterministic. \(\square \)

In our setting, for a given graph G and integer k, we want to determine whether G admits an outerplanar deletion set of size at most k. Thanks to the theorem above, we can assume that we are given an outerplanar deletion set X (also called a modulator to outerplanarity) of size at most \(40 \cdot k\). As a next step, we would like to augment this set to satisfy a stronger property. This step is inspired by the technique of tidying the modulator from van Bevern, Moser, and Niedermeier [38]. For each vertex \(v \in X\) we would like to be able to “put it back” into \(G-X\) while maintaining outerplanarity. In order to do so, we look for a set of vertices from \(V(G) \setminus X\) that needs to be removed if v is put back. Since \(G-X\) is outerplanar and hence has treewidth at most two, we can construct such a set of moderate size by a greedy approach. We scan a tree decomposition in a bottom-up manner and look for maximal subgraphs that are outerplanar when considered together with v. When such a subgraph cannot be further extended we mark one bag of a decomposition, which gives 3 vertices to be removed. We show that this idea leads to a 3-approximation algorithm. While this approach based on covering/packing duality is well-known, we present the proof for completeness.

Lemma 3.2

There is a polynomial-time algorithm that, given a graph G, an integer k, and a vertex v such that \(G - v\) is outerplanar, either finds an outerplanar deletion set \(S \subseteq V(G) \setminus \{v\}\) in G of size of most 3k or correctly concludes that there is no outerplanar deletion set \(S \subseteq V(G) \setminus \{v\}\) in G of size of most k.

Proof

Since \(G-v\) is outerplanar, its treewidth is at most two. A tree decomposition \((T, \chi )\) of \(G-v\) of this width can be computed in linear time  [40].

Consider a process in which we scan the tree decomposition in a bottom-up manner and mark some nodes of T. In the i-th step we will mark a node \(t_i \in V(T)\) and maintain a family \(Y_1, \dots , Y_i\) of disjoint subsets of \(V(G) \setminus \{v\}\), so that for each \(j \in [i]\) the graph \(G[Y_i \cup \{v\}]\) is not outerplanar. We begin with no marked vertices and an empty family of vertex sets. Let U(t) be the set of vertices appearing in a bag in the subtree of T rooted at \(t \in V(T)\). In the i-th step we choose a lowest node \(t_i \in V(T)\) (breaking ties arbitrarily), so that \(U(t_i) \cup \{v\} \setminus \bigcup _{j=1}^{i-1}Y_j\) induces a non-outerplanar subgraph of G. If there is no such node, we terminate the process. Otherwise we set \(Y_i = U(t_i) \setminus \bigcup _{j=1}^{i-1}Y_j\) and continue the process.

By the definition, the sets \(Y_1, \dots , Y_i\) are disjoint and each of them, when considered together with v, induces a subgraph which is not outerplanar. Suppose that the procedure has executed for at least \(k+1\) steps. Then for any set \(S \subseteq V(G) \setminus \{v\}\) of size of most k, there is some \(i \in [k+1]\) such that \(Y_i \cap S = \emptyset \). Since \(G[Y_i \cup \{v\}]\) is not outerplanar, we can conclude that S is not an outerplanar deletion set. Hence we can conclude that no set as desired exists and terminate.

Suppose now that the procedure has terminated at the \(k'\)-th step, where \(k' \le k\). Since \(t_i\) is chosen as a lowest node among those satisfying the given condition, we get that \(U(t_i) \cup \{v\} \setminus (\chi (t_i) \cup \bigcup _{j=1}^{i-1}Y_j)\) induces an outerplanar subgraph of G. Observe that \(S = \bigcup _{j=1}^{k'} \chi (t_j)\) separates \(Y_i\) from \(Y_j\) in \(G-v\) for each pair \(1 \le i < j \le k'\), because in particular \(\chi (t_i) \subseteq S\). Let \(Y_0 = V(G) \setminus \bigcup _{j=1}^{k'}Y_j\). Then also \(G[Y_0 \cup \{v\}]\) is outerplanar and S separates \(Y_0\) from any \(Y_i\) in \(G-v\). We apply Observation 2.2 to \(G-S\) with articulation point v and check that any connected component C of \(G-S-v\) is contained in some set \(Y_i\), so \(G\langle C\rangle \) is outerplanar, and thus \(G-S\) is outerplanar. The size of each bag in \((T,\chi )\) is at most 3, hence \(\vert S\vert \le 3k' \le 3k\). The claim follows. \(\square \)

Observe that if it is impossible to remove k vertices avoiding v from \(G-(X \setminus \{v\})\) to make it outerplanar, then any outerplanar deletion set in G of size at most k must contain v. In this situation it suffices to solve the problem on \(G-v\). Otherwise, we identify a set R(v) of at most 3k vertices whose removal allows v to be put back in \(G-X\) without spoiling outerplanarity. After inserting R(v) into the set X, we could put v back “for free”. Let us formalize this idea of augmenting the modulator.

Definition 3.3

A (kc)-augmented modulator in graph G is a pair of disjoint sets \(X_0, X_1 \subseteq V(G)\) such that:

  1. 1.

    \(G - X_0\) is outerplanar,

  2. 2.

    for each \(v \in X_0\), there is a set \(R(v) \subseteq X_1\), such that \(\vert R(v)\vert \le 3k\) and \(G-((X_0 \setminus \{v\}) \cup R(v))\) is outerplanar, and

  3. 3.

    \(\vert X_0\vert \le c\cdot k\), \(X_1 = \bigcup _{v\in X_0} R(v)\), which implies \(\vert X_1\vert \le 3c\cdot k^2\).

We classify the pairs of vertices within \(X_0 \cup X_1\). A pair \((u,v) :u, v \in X_0 \cup X_1\) is of type:

  1. A:

    if \(u, v \in X_0\) or \((u \in X_0, v \in R(u))\) or \((v \in X_0, u \in R(v))\),

  2. B:

    if (uv) is not of type A and \(\{u,v\} \cap X_0 \ne \emptyset \),

  3. C:

    if \(u, v \in X_1\).

We note that the number of type-A pairs is at most \(c(3+c) \cdot k^2\), the number of type-B pairs is at most \(3c^2 \cdot k^3\), and the number of type-C pairs is at most \(9c^2 \cdot k^4\).

The downside of the augmented modulator is that its size can be as large as \({\mathcal {O}}(k^2)\). However, in return we obtain an even stronger property than previously sketched. For most of the pairs of vertices uv from the augmented modulator \((X_0,X_1)\), putting them back into \(G-(X_0 \cup X_1)\) at the same time still does not break outerplanarity. This property will come in useful for bounding the size of the kernel.

Observation 3.4

Let \((X_0, X_1)\) be a (kc)-augmented modulator in a graph G. Then for each \(v \in X_0 \cup X_1\), the graph \(G - (X_0 \cup X_1 \setminus \{v\})\) is outerplanar. Furthermore, if \(u,v \in X_0 \cup X_1\) and the pair (uv) is of type B or C, then the graph \(G - (X_0 \cup X_1 \setminus \{u,v\})\) is outerplanar.

Let us summarize what we can compute so far. We say that instances (Gk) and \((G',k')\) are equivalent if \(\mathsf {opd}(G) \le k \Leftrightarrow \mathsf {opd}(G') \le k'\).

Lemma 3.5

There is a polynomial-time algorithm that, given an instance (Gk), either correctly concludes that \(\mathsf {opd}(G) > k\) or outputs an equivalent instance \((G',k')\), where \(k' \le k\) and \(G'\) is a subgraph of G, along with a \((k',40)\)-augmented modulator in \(G'\). If \(\mathsf {opd}(G) \le k\) then it holds that \(\mathsf {opd}(G') = \mathsf {opd}(G) - (k - k')\). Moreover, if for every vertex \(v \in V(G)\) there is an outerplanar deletion set \(S \subseteq V(G) \setminus \{v\}\) in G of size at most k, then \(k' = k\).

Proof

We run the 40-approximation algorithm from Theorem 3.1 to obtain an outerplanar deletion set \(X_0\). If \(\vert X_0\vert > 40\cdot k\), we conclude that \(\mathsf {opd}(G) > k\). Otherwise, we iterate over \(v \in X_0\) and execute the subroutine from Lemma 3.2 with respect to the graph \(G_v = G - (X_0 \setminus \{v\})\). If for any vertex v we have concluded that \(G_v\) does not admit any outerplanar deletion set \(S \subseteq V(G_v) \setminus \{v\}\) of size at most k, then the same holds for G. This implies that any outerplanar deletion set in G of size at most k (if there is any) must include the vertex v and the instance \((G-v, k-1)\) is equivalent to (Gk). Furthermore, in this case \(\mathsf {opd}(G') = \mathsf {opd}(G) - 1\) as long as \(\mathsf {opd}(G) \le k\). We can thus remove the vertex v from G, decrease the value of parameter k by 1, and start the process from scratch. If during this process we reach an instance \((G',0)\), then (Gk) is satisfiable if and only if \(G'\) is outerplanar. Observe that if for every vertex \(v \in V(G)\) there is an outerplanar deletion set \(S \subseteq V(G) \setminus \{v\}\) in G of size at most k, then this holds also for the graph \(G_v\) and thus we will not apply the reduction rule decreasing the value of k.

Suppose now that for each \(v \in X_0\) we have obtained a set \(S_v \subseteq V(G_v) \setminus \{v\}\) of size at most 3k such that \(G - ((X_0 \setminus \{v\}) \cup S_v)\) is outerplanar. Then setting \(R(v) = S_v\) and \(X_1 = \bigcup _{v\in X_0} R(v)\) satisfies the requirements of Definition 3.3. \(\square \)

The reduction step above is the only one in our algorithm that may decrease the value of k. Moreover, no further reduction will modify the outerplanar deletion number as long as \(\mathsf {opd}(G) \le k\). This observation will come in useful for bounding the size of minimal minor obstructions to having an outerplanar deletion set of size k.

As the next step, we would like to bound the number of connected components in \(G-(X_0 \cup X_1)\) and the number of connections between the components and the modulator vertices. We show that if vertices \(u, v \in X_0 \cup X_1\) are adjacent to sufficiently many components, then at least one of uv must be removed in any solution of size at most k. Together with the “putting back” property of the augmented modulator, this allows us to forget some of the edges without modifying the space of solutions of size at most k. We formalize this idea with the following marking scheme, an illustration of which can be found in Fig. 1.

Fig. 1
figure 1

Illustration of Reduction Rule 1. For each pair \(u, v \in X = X_0 \cup X_1\) we choose up to \(k+3\) components of \(G-X\) with edges to both u and v and mark the corresponding edges in the component graph \(\mathcal {C}(G, X)\). If a pair (vC) is not marked in the end, all the edges between v and C are removed

Reduction Rule 1

Let G be a graph, \(k \in \mathbb {N}\), and \((X_0, X_1)\) be a (kc)-augmented modulator in G. Consider the component graph \(\mathcal {C}(G, X_0 \cup X_1)\). For each pair \(u,v \in X_0 \cup X_1\) choose up to \(k+3\) components \(C_i\) with edges to both u and v, and mark the edges \((u,C_i), (v,C_i)\) in \(\mathcal {C}(G, X_0 \cup X_1)\). If an edge (vC) is unmarked in the end, remove all the edges between v and C in G. If some component C of \(G - (X_0 \cup X_1)\) or a vertex \(v \in X_0 \cup X_1\) becomes isolated, remove it from G.

Lemma 3.6

(Safeness) Let G be a graph, \(k \in \mathbb {N}\), and \((X_0, X_1)\) be a (kc)-augmented modulator in G. Let \(G'\) be obtained from G by applying Reduction Rule 1 with respect to \((X_0, X_1, k)\). If \(\mathsf {opd}(G) > k\) then \(\mathsf {opd}(G') > k\) and if \(\mathsf {opd}(G) \le k\) then \(\mathsf {opd}(G') = \mathsf {opd}(G)\).

Proof

It suffices to show that any solution in \(G'\) of size at most k is also valid in G. Removing an outerplanar connected component is always safe so it suffices to argue for the correctness of the edge removal rule. Consider a single step of the reduction in a graph G, in which we have removed the edges between vertex \(v \in (X_0 \cup X_1)\) and a connected component C of \(G-(X_0 \cup X_1)\). Let \(G'\) be the graph after this modification and S be an outerplanar deletion set of size at most k in \(G'\). If \(v \in S\), then \(G' - S = G - S\) so let us assume that \(v \not \in S\).

Suppose there is another \(u \in X_0 \cup X_1\) with an edge to C in G. Since the pair (vC) was not marked, there are \(k+3\) components \(C_i\), different from C, of \(G-(X_0 \cup X_1)\) with edges to both u and v. These pairs were marked, so they cannot be removed in any previous reduction step. By a counting argument, at least 3 of these components have empty intersections with S. If \(u \not \in S\), then these components together with \(\{u,v\}\) form a minor model of \(K_{2,3}\) in \(G'-S\), which is not possible. Therefore, \(u \in S\).

It follows that v is the only neighbor of C in \(G - S\). By Observation 3.4 we can “put back” v into \(G-(X_0 \cup X_1)\) without spoiling the outerplanarity and so the graph \((G-S)\langle C\rangle \) being the subgraph of \(G[C \cup \{v\}]\) is outerplanar. The graph \(G - S - C\) is a subgraph of \(G' - S\), so it is also outerplanar. The intersection of their vertex sets is exactly \(\{v\}\) so from Observation 2.2 we obtain that \(G - S\) is outerplanar. \(\square \)

Now we show that after application of Reduction Rule 1 the component graph \(\mathcal {C}(G, X_0 \cup X_1)\) cannot be too large. This will come in useful for proving further upper bounds. We could trivially bound the number of its edges by \(\vert X_0 \cup X_1\vert ^2\cdot (k+3) = {\mathcal {O}}(k^5)\) but, thanks to the properties of the augmented modulator, we can be more economical. First, we need a simple observation about bipartite outerplanar graphs.

Proposition 3.7

Consider an outerplanar bipartite graph \((X \cup Y, E)\) such that all the vertices in Y have degree at least two. Then \(\vert Y\vert \le 4\cdot \vert X\vert \) and \(\vert E\vert \le 10\cdot \vert X\vert \).

Proof

Remove part of the edges so that each vertex in Y has degree exactly two. Now contract each vertex from Y to one of its neighbors. The constructed graph is a minor of \((X \cup Y, E)\) with a vertex set X, so it is outerplanar and the number of edges is at most \(2\cdot \vert X\vert \) by Observation 2.7. Each edge could have been obtained by at most 2 different contractions, as otherwise \((X \cup Y, E)\) would contain \(K_{2,3}\) as a minor. Therefore \(\vert Y\vert \le 4\cdot \vert X\vert \). Again by Observation 2.7, the number of edges in \((X \cup Y, E)\) is at most \(2\cdot (\vert X\vert + \vert Y\vert ) \le 10\cdot \vert X\vert \). \(\square \)

Recall the types of pairs from Definition 3.3 and their properties from Observation 3.4. We know that the number of type-A pairs is at most \(c(3+c) \cdot k^2\) and the number of type-B pairs is at most \(3c^2 \cdot k^3\). Moreover, pairs of type B can be inserted back into \(G-(X_0 \cup X_1)\) without affecting its outerplanarity.

Lemma 3.8

After the application of Rule 1 with respect to a (kc)-augmented modulator (\(X_0, X_1)\), the number of vertices and edges in \(\mathcal {C}(G, X_0 \cup X_1)\) is at most \(f_1(c) \cdot (k+3)^3\), where \(f_1(c) = 14c^2 + 60c\).

Proof

For pairs of type A we have marked at most \((k+3)\cdot c(3+c) \cdot k^2\) edges. If (uv) is of type B, then by Observation 3.4 the graph \(G - (X_0 \cup X_1 \setminus \{u,v\})\) is outerplanar and there can be at most 2 components adjacent to both uv as otherwise we would obtain a \(K_{2,3}\)-minor. Hence, for pairs of type B we have marked at most \(2\cdot 3c^2 \cdot k^3\) edges.

Next, we argue that the total number of edges marked due to pairs of type C is \(30c \cdot k^2\). Let \(E_C \subseteq E(\mathcal {C}(G, X_0 \cup X_1))\) denote the set of these edges. Let \(Y_C \subseteq V(\mathcal {C}(G, X_0 \cup X_1))\) be the set of these connected components of \(G - (X_0 \cup X_1)\) which are incident on at least one edge from \(E_C\) in \(\mathcal {C}(G, X_0 \cup X_1)\). By the definition of the marking scheme, if \(C \in Y_C\) then C is in fact incident on at least 2 edges from \(E_C\), and their other endpoints belong to \(X_1\). Consider the subgraph \((X_1 \cup Y_C, E_C)\) of \(\mathcal {C}(G, X_0 \cup X_1)\). It is a minor of \(G-X_0\), therefore it is outerplanar. By Proposition 3.7, we get that \(\vert E_C\vert \le 10 \cdot \vert X_1\vert = 10 \cdot 3c \cdot k^2.\)

We can thus estimate the number of edges in \(\mathcal {C}(G, X_0 \cup X_1)\) by \((7c^2 + 3c) \cdot (k+3)^3 + 30c \cdot k^2 \le (7c^2 + 30c) \cdot (k+3)^2\). Finally, since \(\mathcal {C}(G, X_0 \cup X_1)\) contains no isolated vertices, the number of vertices is at most twice the number of edges. \(\square \)

3.2 The Outerplanar Decomposition

We proceed by enriching the augmented modulator further. We would like to provide additional properties at the expense of growing the modulator size to \({\mathcal {O}}(k^3)\). For two vertices uv in an augmented modulator \((X_0, X_1)\) ideally we would like to ensure that no two components of \(G-(X_0 \cup X_1 \cup Z)\) are adjacent to both u and v, where Z is some vertex set of size \({\mathcal {O}}(k^3)\). This is not always possible, but we will guarantee that in such a case any outerplanar deletion set of size at most k must contain either u or v.

Definition 3.9

Let \(Y \subseteq V(G)\) be a vertex subset in a graph G. We say that \(u,v \in Y\) are Y-separated if no connected component of \(G - Y\) is adjacent to both u and v.

In Lemma 3.11 we are going to show that when G is outerplanar and \(X \subseteq V(G)\), then there always exists a small set \(Y \subseteq V(G)\) so that every pair from X is \((X \cup Y)\)-separated. Towards that goal, we need the following proposition.

Proposition 3.10

Let \(X \subseteq V(G)\) be an independent set in an outerplanar graph G. Then there exists \(v \in X\) and \(S \subseteq V(G) \setminus X\) of size at most four, so that S is a \((v, X \setminus v)\)-separator in G.

Proof

Consider a tree decomposition \((T,\chi )\) of G of width two where T is rooted at an arbitrary node r. For a vertex \(v \in V(G)\) let \(t_v \in V(T)\) be the node which is closest to the root r, among those whose bag contain v. Consider \(v \in X\) for which \(t_v\) is furthest from the root (if there are many, pick any of them) and let \(B_v := \chi (t_v)\). By standard properties of tree decompositions, any path from v to \(X \setminus v\) either goes through \(B_v \setminus v\) or ends at \(B_v \setminus v\).

If \((B_v \setminus v) \cap X = \emptyset \), set \(S = B_v \setminus v\). If \(B_v \setminus v = \{u_1, u_2\}\), where \(u_1 \in X\), \(u_2 \not \in X\), consider a minimal \((v,u_1)\)-separator \(S'\) and set \(S = S' \cup \{u_2\}\). There cannot be three vertex-disjoint paths connecting \(v,u_1\) as \(vu_1 \not \in E(G)\) and this would give a minor model of \(K_{2,3}\) in G. Therefore by Menger’s theorem we have \(\vert S'\vert \le 2\) and \(\vert S\vert \le 3\). Finally, suppose \((B_v \setminus v) \subseteq X\). In this case, let S be a minimal \((v,B_v \setminus v)\)-separator. If there were five vertex-disjoint paths connecting v and \(B_v \setminus v\) then in particular there would be three vertex-disjoint paths connecting v and some \(u \in B_v \setminus v\), which would again give a minor model of \(K_{2,3}\) in G. Therefore \(\vert S\vert \le 4\).

Suppose there is a path in \(G \setminus S\) connecting v with some \(x \in X \setminus v\). It contains a subpath connecting v with some \(u \in B_v \setminus v\). If \(u \not \in X\), then \(u \in S\), so suppose that \(u \in X\). But S contains a (vu)-separator, so such path cannot exist in \(G - S\). \(\square \)

Lemma 3.11

There is a polynomial-time algorithm that, given a vertex set \(X \subseteq V(G)\) in an outerplanar graph G, finds a vertex set \(Y \subseteq V(G) \setminus X\) of size at most \(4\cdot \vert X\vert \), so that every pair \(u,v \in X\) with \(u \ne v\) is \((X \cup Y)\)-separated.

Proof

We can assume that X is an independent set in G because removing edges between vertices in X does not affect the neighborhood of a connected component in \(G - (X \cup Y)\). Initialize \(Y = \emptyset \). By Proposition 3.10 we can find a vertex \(v \in X\) that can be separated from \(X \setminus v\) by at most 4 vertices. Add these vertices to Y and repeat this operation recursively on \(X \setminus v\). \(\square \)

Given an augmented modulator \((X_0, X_1)\), we would like to find a set Z of moderate size so that for each pair (uv) from \(X_0 \cup X_1\) either uv are \((X_0 \cup X_1 \cup Z)\)-separated or there exist \(k+4\) internally vertex-disjoint paths, with non-empty interior, connecting u and v in G. If the latter case occurs, then any outerplanar deletion set of size bounded by k, can intersect at most k of these paths’ interiors. Therefore, this solution must remove either u or v in order to get rid of all \(K_{2,3}\)-minors. We remark that this property already holds if we request \(k+3\) disjoint (uv)-paths, but in this stronger form it also holds for a graph obtained from G by an edge removal. This fact will be crucial for the safeness proof for Reduction Rule 3.

In order to find the set Z, we could consider all pairs (uv) from \(X_0 \cup X_1\) and, if there exists an (uv)-separator of size at most \(k+3\), add it to Z. This however would make Z as large as \({\mathcal {O}}(k^5)\). We can make this process more economical by analyzing what happens for different types of pairs from Definition 3.3. Recall that the number of type-A pairs is at most \(c(3+c) \cdot k^2\) and the number of type-B pairs is at most \(3c^2 \cdot k^3\).

Lemma 3.12

There is a polynomial-time algorithm that, given an instance (Gk) with (kc)-augmented modulator \((X_0, X_1)\), returns a set \(Z \subseteq V(G) \setminus (X_0 \cup X_1)\) of size at most \(f_2(c) \cdot (k+3)^3\), where \(f_2(c) = 4c^2 + 15c\), such that for each pair \(u,v \in X_0 \cup X_1\) of distinct vertices one of the following holds:

  1. 1.

    vertices uv are \((X_0 \cup X_1 \cup Z)\)-separated, or

  2. 2.

    there are \(k+4\) internally vertex-disjoint paths, with non-empty interior, connecting u and v in G.

Proof

Initialize \(Z_0 = \emptyset \). Consider all the pairs (uv) from the augmented modulator. If (uv) is of type A or B, compute a minimum (uv)-separator \(S_{u,v}\) with \(u,v \notin S_{u,v}\) in \(G - (X_0 \cup X_1 \setminus \{u,v\}) \setminus uv\), that is, we remove the edge uv if it exists. If \(\vert S_{u,v}\vert \le k+3\), add \(S_{u,v}\) to \(Z_0\). Recall from Observation 3.4 that if (uv) is of type B, then the graph \(G - (X_0 \cup X_1 \setminus \{u,v\})\) is outerplanar, so \(\vert S_{u,v}\vert \le 2\), as otherwise we could construct a \(K_{2,3}\) minor. For pairs of type A we add at most \((k+3)\cdot c(3+c) \cdot k^2\) elements, and for pairs of type B at most \(2\cdot 3c^2 \cdot k^3\) elements. If the pair (uv) does not satisfy condition (2), then the set \(Z_0\) contains a set \(S_{u,v}\) which forms a (uv)-separator in \(G - (X_0 \cup X_1 \setminus \{u,v\}) \setminus uv\). Therefore uv belong to different connected components of \(G - (X_0 \cup X_1 \cup Z_0 \setminus \{u,v\}) \setminus uv\) and so they are \((X_0 \cup X_1 \cup Z_0)\)-separated.

To cover pairs of type C, consider the outerplanar graph \(G-X_0\). By Lemma 3.11 we can find a vertex set \(Z_1 \subseteq V(G) \setminus (X_0 \cup X_1)\) of size \(4 \cdot \vert X_1\vert \le 12c \cdot k^2 \) so that all pairs \(u,v\in X_1\) are \((X_1 \cup Z)\)-separated in \(G - X_0\). We return the set \(Z_0 \cup Z_1\), which has no more than \((k+3)\cdot c(3+c) \cdot k^2 + 2\cdot 3c^2 \cdot k^3 + 12c \cdot k^2 \le (4c^2 + 15c) \cdot (k+3)^3\) elements. \(\square \)

We would like to simplify the interface between a connected component C of \(G - (X_0 \cup X_1 \cup Z)\) and the rest of the graph. Since \(G - X_0\) is outerplanar it has treewidth at most two, which implies there is a tree decomposition in which each pair of distinct bags intersects in at most 2 vertices. When constructing a separator \(Z' \supseteq Z\) via the LCA closure, the neighborhood of each connected component C of \(G-Z'\) within the set \(Z'\) is contained in at most two bags of the decomposition. This allows us to guarantee that \(\vert N_G(C) \cap Z'\vert \le 4\).

Lemma 3.13

There is a polynomial-time algorithm that, given an outerplanar graph G and \(Z \subseteq V(G)\), returns a set \(Z' \supseteq Z\) of size at most \(6 \cdot \vert Z\vert \) such that each connected component of \(G - Z'\) has at most four neighbors in \(Z'\).

Proof

Consider a tree decomposition \((T,\chi )\) of width two of the graph G, rooted at a node \(r \in V(T)\). It can be found in linear time  [40]. For a vertex v let \(t_v\) be the node which is closest to the root among those whose bags contain v. Consider the set of nodes \(T_Z = \{t_v \mid v \in Z\}\). Let \(T'_Z = \overline{\mathsf {LCA}}(T_Z)\) be the LCA closure of \(T_Z\). Finally, let \(Z'\) be union of all bags in \(T'_Z\). We have \(\vert T'_Z\vert \le 2 \cdot \vert T_Z\vert \) and \(\vert Z'\vert \le 6\cdot \vert Z\vert \). By Lemma 2.9 we obtain that each connected component of \(G - Z'\) has at most four neighbors. \(\square \)

In order to keep the kernel size in check, we need to analyze the number of connected components of \(G - (X_0 \cup X_1 \cup Z)\). We have managed to bound the size of Z by \({\mathcal {O}}(k^3)\) and, in Lemma 3.8, we have also bounded by \({\mathcal {O}}(k^3)\) the number of edges in the component graph \(\mathcal {C}(G,X_0 \cup X_1)\). These two properties suffice to also bound the number of connected components of \(G - (X_0 \cup X_1 \cup Z)\) that have at least two neighbors in \(X_0 \cup X_1 \cup Z\). It will be easier to deal with the remaining ones later.

Lemma 3.14

Let \((X_0, X_1)\) be a (kc)-augmented modulator in G, so that the component graph \(\mathcal {C}(G,X_0 \cup X_1)\) has at most s vertices and s edges, and let \(Z \subseteq V(G) \setminus (X_0 \cup X_1)\). Then there are at most \(3\cdot s + 4\cdot \vert Z\vert \) components of \(G - (X_0 \cup X_1 \cup Z)\) that have two or more neighbors in \(X_0 \cup X_1 \cup Z\).

Proof

Let \(X = X_0 \cup X_1\). We analyze the number of connected components of \(G - (X \cup Z)\) by splitting them into three categories.

  1. 1.

    Components with at least two neighbors in Z. Consider a subgraph \((Z \cup Y, E)\) of \(\mathcal {C}(G, X \cup Z)\) given by restricting the vertex-side to Z and the component-side to those components Y that have at least two neighbors in Z. This graph is a minor of \(G-X\), so it is outerplanar. By Proposition 3.7, we get \(\vert Y\vert \le 4 \cdot \vert Z\vert \).

  2. 2.

    Components with exactly one neighbor in Z and at least one in X. We call such a component a dangling component. For a connected component H of \(G - X\), consider the collection of dangling components \((C_i)_{i=1}^\ell \) within H. Since each dangling component has exactly one neighbor in H, removing it does not affect connectivity of H. Therefore the graph \(H' = H - \bigcup _{i=1}^\ell C_i\) is connected. Note that \(H'\) cannot be empty since it must contain at least one vertex in Z. For each vertex \(x \in X\), there are at most two dangling components in H which are adjacent to x: if there were three \(C_1, C_2, C_3\), they would form a minor model of \(K_{2,3}\) together with x and \(V(H')\). By Observation 3.4 this would contradict outerplanarity of \(G - (X \cup \{x\})\).

    Hence the number of dangling components within H is at most twice as large as \(\vert N_G(H) \cap X\vert \), which is the degree of H in \(\mathcal {C}(G,X)\). The total number of dangling components is thus at most 2 times the sum of degrees of the component-nodes in \(\mathcal {C}(G,X)\), which equals the number of edges in \(\mathcal {C}(G,X)\). We obtain a bound 2s on the total number of dangling components.

  3. 3.

    Components without any neighbors in Z. These are also components of \(G-X\), so there are at most s of them. \(\square \)

The previous lemma gives us a bound on the number of components outside the modulator with at least two neighbors. To bound the total number of components outside the modulator, we employ the following reduction rule to remove the remaining components with at most one neighbor.

Reduction Rule 2

If for some \(C \subseteq V(G)\) the graph \(G\langle C\rangle \) is outerplanar and it holds that \(\vert N_G(C)\vert \le 1\), then remove the vertex set C.

Safeness of this rule follows from Observation 2.2, which implies \(\mathsf {opd}(G-C) = \mathsf {opd}(G)\).

With these properties at hand, we are able to construct the desired extension of the augmented modulator. The decomposition below is inspired by the notion of a near-protrusion [5], combined with the idea of the augmented modulator, and with an \({\mathcal {O}}(k^3)\) bound on the number of leftover connected components.

Definition 3.15

For \(k,c,d\in \mathbb {N}\) a (kcd)-outerplanar decomposition of a graph G is a triple \((X_0,X_1,Z)\) of disjoint vertex sets in G, such that:

  1. 1.

    \((X_0, X_1)\) is a (kc)-augmented modulator for (Gk),

  2. 2.

    for each pair \(u,v \in X_0 \cup X_1\) of distinct vertices one of the following holds:

    1. (a)

      vertices uv are \((X_0 \cup X_1 \cup Z)\)-separated, or

    2. (b)

      there are \(k+4\) internally vertex-disjoint (uv)-paths in G, each with non-empty interior.

  3. 3.

    for each connected component C of \(G - (X_0 \cup X_1 \cup Z)\) it holds that \(\vert N_G(C) \cap Z\vert \le 4\),

  4. 4.

    \(\vert Z\vert \le d\cdot (k+3)^3\) and there are at most \(d\cdot (k+3)^3\) connected components in \(G-(X_0 \cup X_1 \cup Z)\).

Lemma 3.16

There is a constant c, a function \(f_3 :\mathbb {N}\rightarrow \mathbb {N}\), and a polynomial-time algorithm that, given an instance (Gk), either returns an equivalent instance \((G',k')\), where \(k' \le k\) and \(G'\) is subgraph of G, along with a \((k',c,f_3(c))\)-outerplanar decomposition of \(G'\), or concludes that \(\mathsf {opd}(G) > k\). If \(\mathsf {opd}(G) \le k\) then it holds that \(\mathsf {opd}(G') = \mathsf {opd}(G) - (k - k')\). Furthermore, \(c = 40\) and \(f_3(c) = 3\cdot f_1(c) + 24\cdot f_2(c)\) (see Lemmas 3.8 and 3.12).

Proof

Begin with Lemma 3.5 to either conclude \(\mathsf {opd}(G) > k\) or find an equivalent instance \((G'',k')\), where \(k' \le k\) and \(G''\) is a subgraph of G, along with an \((k',c)\)-augmented modulator. Next, apply Reduction Rule 1 to obtain an equivalent instance \((G',k')\) that satisfies the conditions in the statement, along with an \((k',c)\)-augmented modulator \((X_0,X_1)\), so that the number of vertices and edges in \(\mathcal {C}(G,X_0 \cup X_1)\) is at most \(f_1(c) \cdot (k'+3)^3\) (see Lemma 3.8). This reduction rule may remove edges and vertices from the graph, so \(G'\) is a subgraph of G.

We find a set \(Z_0\) of size at most \(f_2(c) \cdot (k'+3)^3\) satisfying the Condition 2 with Lemma 3.12. Next, apply Lemma 3.13 to graph \(G-(X_0 \cup X_1)\) and set \(Z_0\) to compute \(Z \supseteq Z_0\), \(\vert Z\vert \le 6\cdot f_2(c) \cdot (k'+3)^3\), which satisfies the Condition 3. Observe that Condition 2 is preserved for any superset of \(Z_0\), and hence for Z.

Now identify all connected components of \(G-(X_0 \cup X_1 \cup Z)\) with only one neighbor and apply Reduction Rule 2 to remove them. Note that this removed only vertices disjoint from \(X_0\), \(X_1\), and Z, so Conditions 1, 2(a), and 3 remain satisfied. Since such a connected component only has one neighbor in \(X_0 \cup X_1\), the number of (uv)-paths in G cannot have been decreased for any distinct \(u,v \in X_0 \cup X_1\), hence Condition 2(a) also remains satisfied. We complete the proof by showing that now Condition 4 holds.

First note that \(\vert Z\vert \le 6\cdot f_2(c) \cdot (k'+3)^3 \le f_3(c) \cdot (k'+3)^3\). It remains to show that the number of components in \(G-(X_0 \cup X_1 \cup Z)\) is at most \(f_3(c) \cdot (k'+3)^3\). Any such connected component has at least two neighbors since otherwise we would have applied Reduction Rule 2 to remove it. Any other connected component has at least two neighbors in \(X_0 \cup X_1 \cup Z\), so by Lemma 3.14 there are at most \(3 \cdot s + 4 \cdot \vert Z\vert \) of these components, where s denotes the number of edges in \(\mathcal {C}(G,X_0 \cup X_1)\) which is upper bounded by \(f_1(c) \cdot (k'+3)^3\) (see Lemma 3.8). Hence in total there are at most \(3\cdot f_1(c) \cdot (k'+3)^3 + 4\cdot 6\cdot f_2(c) \cdot (k'+3)^3 = f_3(c) \cdot (k'+3)^3\) components. \(\square \)

As the last property of the (kcd)-outerplanar decomposition, we formulate the bound on the total number of connections between \(X_0 \cup X_1 \cup Z\) and the leftover components, which will lead to the total kernel size \({\mathcal {O}}(k^4)\).

Lemma 3.17

Let \((X_0,X_1,Z)\) be a (kcd)-outerplanar decomposition of a graph G. Then the number of edges in the component graph \(\mathcal {C}(G, X_0 \cup X_1 \cup Z)\) is at most \(f_4(c,d) \cdot (k+3)^4\), where \(f_4(c,d) = cd+6c+4d\).

Proof

By Definition 3.15(4) there are at most \(d\cdot (k+3)^3\) components of \(G-(X_0 \cup X_1 \cup Z)\) and each can have at most \(\vert X_0\vert \le c\cdot k\) neighbors from \(X_0\). It remains to bound the total number of edges from \(X_1 \cup Z\). The graph given by restricting the vertex-side of \(\mathcal {C}(G, X_0 \cup X_1 \cup Z)\) to \(X_1 \cup Z\) is a minor of \(G - X_0\), hence it is outerplanar and, by Observation 2.7, the number of edges is at most twice the number of vertices, that is, \(2 \cdot (\vert X_1 \cup Z\vert + d\cdot (k+3)^3) \le 6c \cdot k^2 + 4d \cdot (k+3)^3\). \(\square \)

3.3 Reducing the Size of the Neighborhood

Given a (kcd)-outerplanar decomposition \((X_0,X_1,Z)\), we will now present the final reduction rule to reduce the size of the neighborhood \(N_G(X_0 \cup X_1)\) to \({\mathcal {O}}(k^4)\). As the size of Z is already bounded by \({\mathcal {O}}(k^3)\) we focus on reducing the size of \(N_G(X_0 \cup X_1) \setminus Z\). We have already shown the number of edges in the component graph \(\mathcal {C}(G,X_0 \cup X_1 \cup Z)\) is bounded by \({\mathcal {O}}(k^4)\), so it suffices to reduce the number of edges between a single modulator vertex \(x \in X_0 \cup X_1\) and a connected component C of \(G-(X_0 \cup X_1 \cup Z)\) to a constant. For this, we first show in the following lemma where the neighbors of x occur in C.

Lemma 3.18

Suppose G is outerplanar, \(x \in V(G)\), and \(G-x\) is connected. Then the vertices from \(N_G(x)\) lie on an induced path P in \(G-x\) such that for each biconnected component B of \(G-x\) and each pair of distinct vertices \(u,v \in V(P) \cap V(B)\) we have that \(uv \in E(G-x)\). We can find such a path in polynomial time.

Proof

If \(\vert N_G(x)\vert = 1\) this is trivially true, so we assume \(\vert N_G(x)\vert \ge 2\) in the remainder of the proof.

Consider a tree T obtained from a spanning tree of \(G-x\) by iteratively removing leaves that are not in \(N_G(x)\). We show T is a path. If T contains a vertex y of degree at least 3 then \(T-y\) contains three components containing a neighbor of x and, since T is connected, neighbors of y. This forms a \(K_{2,3}\)-minor in G contradicting outerplanarity of G. Hence T is a path, and by construction both its leaves are a neighbor of x. We now describe how to obtain the desired induced path P from T. If T is not an induced path in G, there are two nonconsecutive vertices uv in T with \(uv \in E(G)\). If there is no vertex \(w \in N_G(x)\) between u and v on T, then the path \(T'\) obtained from T by replacing the subpath between u and v with the edge uv is a shorter path containing all of \(N_G(x)\). Exhaustively repeat this shortcutting step and call the resulting path P. Since this procedure does not affect the first and last vertices we know the first and last vertex of P are both neighbors of x. All operations to obtain P can be performed in polynomial time.

If the path P obtained after shortcutting is not an induced path in G, there are two nonconsecutive vertices uv in P with \(uv \in E(G)\). By construction of P we know that there is a vertex \(w \in N_G(x)\) between u and v on P. Now G contains a \(K_4\)-minor since \(\{x,u,v,w\}\) are pairwise connected by internally vertex-disjoint paths, contradicting outerplanarity of G. So P is an induced path.

Let B be an arbitrary biconnected component of \(G-x\) and let \(u,v \in B \cap P\) be distinct. If uv is a bridge in \(G-x\), it is trivial to see that \(uv \in E(G-x)\), so we can assume that B contains at least 3 vertices (so B is 2-connected). We first consider the case where u is the first vertex along P that is contained in B and v is the last. Since the first and the last vertex of P are neighbor to x, (uxv) forms a (uv)-path in G. Since \(u,v \in B\) and B is 2-connected, there is a cycle within B containing u and v. This gives us two internally vertex-disjoint paths from u to v within B. If \(uv \not \in E(G-x)\), these paths have non-empty interiors. Together with the path (uxv), this leads to a \(K_{2,3}\)-minor in G and contradicting its outerplanarity. Hence, we can assume that \(uv \in E(G-x)\).

If u and v are not the first and last vertices along P contained in B, then there are two vertices \(u'\) and \(v'\) that are. Then \(u'v'\) is an edge in \(G-x\) and because P is an induced path, \(u'\) and \(v'\) have to be consecutive in P, contradicting existence of such a pair (uv). \(\square \)

We now investigate what happens when a modulator vertex \(x \in X_0 \cup X_1\) is the only vertex in \(X_0 \cup X_1\) that is adjacent to a connected component C of \(G-(X_0 \cup X_1 \cup Z)\). If x has sufficiently many edges to a part of C that is not adjacent to Z, then one of these edges can be removed without affecting the outerplanar deletion number \(\mathsf {opd}(G)\). We will also exploit this property for a reduction rule later in this paper when we reduce the number of edges within a connected component of \(G-(X_0 \cup X_1 \cup Z)\).

Lemma 3.19

Suppose we are given a graph G, a vertex \(x \in V(G)\), and five vertices \(v_1, \ldots , v_5 \in N_G(x)\) that lie, in order of increasing index, on an induced path P in \(G-x\) from \(v_1\) to \(v_5\), such that \(N_G(x) \cap V(P) = \{v_1, \ldots , v_5\}\). Let C be the component of \(G-\{v_1, v_5, x\}\) containing \(P-\{v_1, v_5\}\). If \(G\langle C\rangle \) is outerplanar, then \(\mathsf {opd}(G) = \mathsf {opd}(G \setminus xv_3)\).

Proof

Clearly for any \(S \subseteq V(G)\) if \(G-S\) is outerplanar, then \(G \setminus xv_3 - S\) is also outerplanar, hence \(\mathsf {opd}(G) \ge \mathsf {opd}(G \setminus xv_3)\). To show \(\mathsf {opd}(G) \le \mathsf {opd}(G \setminus xv_3)\), suppose \(G \setminus xv_3 - S\) is outerplanar for some arbitrary \(S \subseteq V(G)\). If \(x \in S\) or \(v_3 \in S\) then clearly \(G-S\) is outerplanar, so suppose \(x,v_3 \not \in S\). We show \(G-S'\) is outerplanar for some \(S' \subseteq V(G)\) with \(\vert S'\vert \le \vert S\vert \). Consider the following cases:

  1. 1.

    If \(\vert S \cap V(P)\vert = 0\) then \(G\setminus xv_3 - S\) contains an induced cycle formed by x together with the subpath of P from \(v_2\) to \(v_4\). This cycle includes x and \(v_3\), so by Lemma 2.5 the graph \(G \setminus xv_3 - S\) remains outerplanar after adding the edge \(xv_3\), hence \(G-S\) is outerplanar.

  2. 2.

    If \(\vert S \cap V(P)\vert \ge 2\) then let \(S' := \{v_1, v_5\} \cup (S \setminus V(C))\). Since \(\vert S'\vert \le \vert S\vert \), showing that \(G-S'\) is outerplanar proves the claim. Let \({\overline{C}} := G - V(C)\) and note that \({\overline{C}} - S'\) is outerplanar since it is a subgraph of \(G \setminus xv_3 - S\). Also note that \(G[V(C) \cup \{x\}]\) is outerplanar since it is a subgraph of \(G[V(C) \cup \{v_1, v_5, x\}] = G \langle C\rangle \). Since for any connected component H of \(G-S'-x\) the graph \((G-S')\langle H\rangle \) is a subgraph of \({\overline{C}} - S'\) or \(G[V(C) \cup \{x\}]\) we have that \((G-S')\langle H\rangle \) is outerplanar. Then by Observation 2.2 the graph \(G-S'\) is outerplanar.

  3. 3.

    If \(\vert S \cap V(P)\vert = 1\) then let \(u \in S \cap V(P)\) and assume without loss of generality that u lies on the subpath of P from \(v_3\) to \(v_5\), so the subpath of P from \(v_1\) to \(v_3\) does not contain vertices of S (recall that \(v_3 \not \in S\)). Let \(S' := \{v_5\} \cup (S \setminus V(C))\) and note that \(\vert S'\vert \le \vert S\vert \). We shall show that \(G-S'\) is outerplanar. Since \(x, v_1 \not \in S\), we have that also \(x,v_1 \not \in S'\), so \(xv_1 \in E(G-S')\). In order to apply Lemma 2.3 to \(G-S'\) and \(xv_1\) we have to show that

    • for each connected component \(C'\) of \(G-S'-\{v_1,x\}\) the graph \((G-S')\langle C'\rangle \) is outerplanar, and

    • there are at most two induced internally vertex-disjoint \((v_1,x)\)-paths in \((G-S') \setminus v_1x\).

    Because \(v_5 \in S'\) we have \(G-S'-\{v_1,x\} = G - \{v_1,v_5,x\} - S'\) and since C is a connected component of \(G - \{v_1,v_5,x\}\) we have that all connected components of \(G-S' - \{v_1,x\}\) are either a connected component of \(C-S' = C\) or of \(G-S'-\{v_1,x\}-V(C)\). It is given that C is connected and \(G[V(C) \cup \{v_1,v_5,x\}]\) is outerplanar so then \(G[V(C) \cup \{v_1,x\}]=(G-S')\langle C\rangle \) is also outerplanar. Any other connected component \(C'\) is a connected component of \(G-S'-\{v_1,x\}-V(C)\), so we have that \((G-S')\langle C'\rangle \) is a subgraph of \(G-S'-V(C)\). This is in turn, a subgraph of \(G \setminus xv_3 - S\) which is outerplanar. Hence \((G-S')\langle C'\rangle \) is outerplanar.

    It remains to show that there are at most two induced internally vertex-disjoint \((v_1,x)\)-paths in \((G-S') \setminus v_1x\). Suppose for contradiction that \((G-S') \setminus v_1x\) contains three induced internally vertex-disjoint \((v_1,x)\)-paths. As shown before, C is a connected component of \(G-S'-\{v_1,x\}\) adjacent to \(v_1\) and x, so there exists an induced \((v_1,x)\)-path \(P_1\) in \(G-S' \setminus v_1x\) whose internal vertices all lie in C. Since \(G\langle C\rangle \) is outerplanar and C is connected, by Lemma 2.4 the graph \(G \langle C\rangle \) does not contain two internally vertex-disjoint \((v_1,x)\)-paths with nonempty interiors. Hence there are two induced internally vertex-disjoint \((v_1,x)\)-paths \(P_2, P_3\) in \((G-S' \setminus v_1x)-V(C)\). Observe that \(P_2\) and \(P_3\) are then disjoint from \(S \setminus S' \subseteq V(C)\) and do not contain \(xv_3\). It follows that \(P_1\), \(P_2\) and \(P_3\) are three induced internally vertex-disjoint \((v_1,x)\)-paths in \(G\setminus xv_3 - S\), contradicting its outerplanarity by Lemma 2.3. We conclude also the second condition of Lemma 2.3 holds for \(G-S'\) and the edge \(v_1x\), hence \(G-S'\) is outerplanar. \(\square \)

We now use the properties of the (kcd)-outerplanar decomposition to show that any solution of size at most k contains all but possibly one vertex from \((X_0 \cup X_1) \cap N_G(C)\), where C is a connected component from \(G-(X_0 \cup X_1 \cup Z)\). We use this fact together with the result from Lemma 3.19 to identify an irrelevant edge, which leads to the following reduction rule:

Reduction Rule 3

Given a (kcd)-outerplanar decomposition \((X_0, X_1, Z)\) of a graph G, a vertex \(x \in X_0 \cup X_1\), and five vertices \(v_1, \ldots , v_5 \in N_G(x) \setminus (X_0 \cup X_1)\) that lie, in order of increasing index, on an induced path P in \(G-(X_0 \cup X_1)\) from \(v_1\) to \(v_5\), such that \(N_G(x) \cap V(P) = \{v_1, \ldots , v_5\}\). Let C be the component of \(G - (X_0 \cup X_1) - \{v_1, v_5\}\) containing \(P-\{v_1, v_5\}\). If \(V(C) \cap Z = \emptyset \) remove the edge \(xv_3\).

Lemma 3.20

(Safeness) Suppose that Reduction Rule 3 removes the edge \(e = xv_3\) from a graph G. If \(\mathsf {opd}(G) > k\) then \(\mathsf {opd}(G \setminus e) > k\) and if \(\mathsf {opd}(G) \le k\) then \(\mathsf {opd}(G \setminus e) = \mathsf {opd}(G)\).

Proof

Clearly \(\mathsf {opd}(G \setminus e) \le \mathsf {opd}(G)\) so it suffices to show that \(\mathsf {opd}(G \setminus e) \le k\) implies \(\mathsf {opd}(G \setminus e) = \mathsf {opd}(G)\). Suppose \(G \setminus e - S\) is outerplanar for some \(S \subseteq V(G)\) of size at most k; we prove \(\mathsf {opd}(G) \le \vert S\vert \).

If S contains x or \(v_3\) then the claim is trivial. Otherwise let \(X := X_0 \cup X_1\) and \(X_S := X \cap S\) and note that \(x \notin X_S\). Since C is a connected component of \(G - X - \{v_1, v_5\}\) we have that \(N_G(C) \subseteq X \cup \{v_1, v_5\}\). We first show that \(N_G(C) \subseteq X_S \cup \{v_1, v_5, x\}\). Suppose for contradiction that some \(u \in N_G(C)\) is not contained in \(X_S \cup \{v_1, v_5, x\}\), so that \(u \in X \setminus (S \cup \{v\})\). Since x and u are both neighbor to C, which is connected and does not contain vertices from X or Z, we have that x and u are not \((X \cup Z)\)-separated. It follows from Definition 3.15(2) that there are \(k+4\) internally vertex-disjoint paths, with non-empty interior, connecting x and u in G. At most one of these paths contains the edge e, so in \(G \setminus e\) there are at least \(k+3\) internally vertex-disjoint paths, with non-empty interior, connecting x and u. Since \(x, u \not \in S\), and \(\vert S\vert \le k\) we have that \(G \setminus e - S\) has at least 3 internally vertex-disjoint paths, with non-empty interior, connecting x and v. This contradicts outerplanarity of \(G \setminus e - S\). Hence \(N_G(C) \subseteq X_S \cup \{v_1, v_5, x\}\).

Consider the graph \(G' := G - X_S\). To prove that \(\mathsf {opd}(G) \le \vert S\vert \), it suffices to prove \(\mathsf {opd}(G') \le \vert S\vert - \vert X_S\vert \). Observe that \(x \in V(G')\) and \(v_1, \ldots , v_5 \in N_{G'}(x)\) lie in order of increasing index on the induced path P in \(G'-x\) from \(v_1\) to \(v_5\), such that \(N_{G'}(x) \cap P = \{v_1, \ldots , v_5\}\). Let \(C'\) be the connected component of \(G'-\{v_1, v_5, x\}\) containing \(P - \{v_1, v_5\}\). In order to apply Lemma 3.19 we show that \(G'[V(C') \cup \{v_1, v_5, x\}]\) is outerplanar.

Since C is connected and \(N_G(C) \subseteq X_S \cup \{v_1, v_5, x\}\) we have that C is a connected component of \(G - (X_S \cup \{v_1, v_5, x\}) = G' - \{v_1, v_5, x\}\). As \(C'\) is also a connected component of \(G' - \{v_1, v_5, x\}\) and both C and \(C'\) contain \(P-\{v_1,v_5\}\) they are the same connected component. It follows that \(G[V(C') \cup \{v_1, v_5, x\}] = G[V(C) \cup \{v_1, v_5, x\}]\), which is outerplanar by Definition 3.3 since it only intersects with \(X_0 \cup X_1\) on the single vertex x.

This shows Lemma 3.19 can be applied to \(G'\) with vertex x and the path P. Since \(S \setminus X_S\) forms a size-\((\vert S\vert - \vert X_S\vert )\) outerplanar deletion set for \(G' \setminus e\), it follows there is a size-\((\vert S\vert - \vert X_S\vert )\) outerplanar deletion set \(S'\) for \(G'\). Then \(S' \cup X_S\) forms a size-\(\vert S\vert \) outerplanar deletion set for G. \(\square \)

We now show how this reduction rule can be applied to reduce the number of edges between a vertex \(x \in X_0 \cup X_1\) and a connected component in \(G-(X_0 \cup X_1 \cup Z)\) to a constant. This leads to an \({\mathcal {O}}(k^4)\) bound on the size of \(N_G(X_0 \cup X_1)\); see Fig. 2.

Fig. 2
figure 2

An illustration of Lemma 3.21. Given a (kcd)-outerplanar decomposition \((X_0, X_1, Z)\) of a graph G, a vertex \(x \in X = X_0 \cup X_1\) and a component C of \(G-(X_0 \cup X_1 \cup Z)\), we are guaranteed that \(\vert N(C) \cap Z\vert \le 4\) and we can apply Reduction Rule 3 until \(\vert N(x) \cap V(C)\vert \le 20\). The expressions at the bottom bound the size of X, the number of components of \(G - (X \cup Z)\), and size of Z

Lemma 3.21

There is a polynomial-time algorithm that, given a (kcd)-outerplanar decomposition \((X_0, X_1, Z)\) of a graph G, a vertex \(x \in X_0 \cup X_1\) and a component C of \(G-(X_0 \cup X_1 \cup Z)\), applies Reduction Rule 3 or concludes that \(\vert N_G(x) \cap V(C)\vert \le 20\).

Proof

We first describe the algorithm and then proceed to prove its correctness.

Algorithm If \(x \not \in N_G(C)\) then conclude \(\vert N(x) \cap V(C)\vert \le 20\). Otherwise let \(C^+ := G[V(C) \cup (N_G(C) \cap Z) \cup \{x\}]\). Apply Lemma 3.18 to find an induced path P in \(C^+\) containing all of \(N_{C^+}(x)\) (we will show \(C^+\) is outerplanar). Let the vertices \(N_{C^+}(x) = \{v_1, \ldots , v_\ell \}\) be indexed by the order in which they occur on P. For all \(1 \le i \le \ell -4\) let \(P_i\) be the subpath of P from \(v_i\) to \(v_{i+4}\) and let \(C_i\) denote the connected component of \(C^+ - \{v_i,v_{i+4},x\}\) containing \(P_i - \{v_i, v_{i+4}\}\). If for some \(1 \le i \le \ell -4\) we have \(V(C_i) \cap Z = \emptyset \) then apply Reduction Rule 3 with x and \(P_i\) to remove the edge \(xv_{i+2}\). Otherwise conclude \(\vert N(x) \cap V(C)\vert \le 20\).

All operations can be performed in polynomial time.

Correctness We first show Lemma 3.18 is applicable. Clearly \(C^+ -x = G[V(C) \cup (N_G(C) \cap Z)]\) is connected since C is connected, so it remains to show that \(C^+\) is outerplanar. This follows from the fact that \(C^+\) is a subgraph of \(G - ((X_0 \cup X_1) \setminus \{x\})\), which is outerplanar by Observation 3.4. For the remainder of the proof we first establish a number of properties of the graphs defined in the algorithm.

Claim 3.22

Any connected component of \(C^+ - (V(P) \cup \{x\})\) has at most two neighbors in V(P) and they must be consecutive along P.

Proof

Consider the cycle in \(C^+\) formed by the vertices \(V(P) \cup \{x\}\) (recall the first and last vertices of P are neighbor to x). Since \(C^+\) is outerplanar the claim follows directly from Lemma 2.6. \(\square \)

Observation 3.23

For any \(1 \le i \le \ell -4\), since \(C_i\) is a connected component of \(C^+ - \{v_i, v_{i+4}, x\}\) we have that any connected component of \(C_i -V(P)\) is also a connected component of \(C^+ - \{v_i, v_{i+4}, x\} - V(P) = C^+ - (V(P) \cup \{x\})\).

Claim 3.24

For all \(1 \le i \le \ell -4\) we have \(V(C_i) \cap V(P) = V(P_i - \{v_i, v_{i+4}\})\).

Proof

Let \(u,v \in V(P) \cap C_i\) be distinct vertices. Since \(C_i\) is connected, there exists a path in \(C_i\) connecting u and v. Let \(P'\) be a shortest (uv)-path in \(C_i\). If \(P'\) contains a vertex not in P then this is a vertex in a connected component D in \(C_i - V(P)\). By Observation 3.23 and Claim 3.22 we have that D has at most two neighbors in P and they are consecutive along P. Since the path \(P'\) must enter and leave D, the path visits both these neighbors, however since these neighbors are adjacent we can obtain a shorter (uv)-path by skipping vertices in D. This contradicts that \(P'\) is a shortest (uv)-path. It follows that the shortest path in \(C_i\) between any two vertices from P is a subpath of P. Since \(C_i\) does not contain \(v_i\) and \(v_{i+4}\) by definition, we have \(V(C_i) \cap V(P) = V(P_i - \{v_i, v_{i+4}\})\).

Claim 3.25

For all \(1 \le i \le \ell -4\), if \(V(C_i) \cap Z = \emptyset \) then \(N_G(C_i) \subseteq X_0 \cup X_1 \cup \{v_i, v_{i+4}\}\).

Proof

Suppose for some \(1 \le i \le \ell -4\) that \(V(C_i) \cap Z = \emptyset \) and let \(v \in N_G(C_i)\). We show \(v \in X_0 \cup X_1 \cup \{v_i, v_{i+4}\}\). If \(v \in V(C^+)\) then since \(C_i\) is a connected component of \(C^+ - \{v_i, v_{i+4}, x\}\) we have \(v \in \{v_i, v_{i+4}, x\} \subseteq X_0 \cup X_1 \cup \{v_i, v_{i+4}\}\), so suppose \(v \not \in V(C^+) \supseteq V(C)\). Since \(v \in N_G(C_i)\) there exists a vertex \(u \in N_G(v) \cap V(C_i)\) and note that \(u \not \in Z\) because \(N_G(C_i) \cap Z = \emptyset \). Since \(u \in V(C_i) \subseteq V(C^+ - \{v_i, v_{i+4}, x\}) \subseteq V(C) \cup (N_G(C) \cap Z)\) and \(u \not \in Z\) we have \(u \in V(C)\). Because u and v are neighbors we have \(v \in N_G(C)\) so \(v \in X_0 \cup X_1 \cup Z\) since C is a connected component of \(G-(X_0 \cup X_1 \cup Z)\). Clearly if \(v \in X_0 \cup X_1\) the claim holds, so suppose \(v \in Z\). However since \(v \in N_G(C)\) and \(v \in Z\) we have \(v \in N_G(C) \cap Z\) so by definition of \(C^+\) we have \(v \in V(C^+)\), a contradiction since we assumed \(v \not \in V(C^+)\).

Suppose that for some \(1 \le i \le \ell -4\) we have \(V(C_i) \cap Z = \emptyset \). In order to show that Reduction Rule 3 applies to x and \(P_i\), first note that \((X_0, X_1, Z)\) is a (kcd)-outerplanar decomposition of G and \(x \in X_0 \cup X_1\). The vertices \(v_i, \ldots , v_{i+4}\) lie on \(P_i\), an induced path in \(G - (X_0 \cup X_1)\) from \(v_i\) to \(v_{i+4}\) such that \(N(x) \cap V(P_i) = \{v_i, \ldots , v_{i+4}\}\). We show that \(C_i\) is the connected component of \(G-(X_0 \cup X_1) - \{v_i, v_{i+4}\}\) containing \(P_i - \{v_i , v_{i+4}\}\).

Note that \(C_i\) does not contain any vertices from \(X_0 \cup X_1 \cup \{v_i, v_{i+4}\}\) so \(C_i\) is a (connected) subgraph of \(G-(X_0 \cup X_1) - \{v_i, v_{i+4}\}\). By Claim 3.25 we have \(N_G(C_i) \subseteq X_0 \cup X_1 \cup \{v_1, v_{i+4}\}\). We can conclude that \(C_i\) is a connected component of \(G-(X_0 \cup X_1) - \{v_i, v_{i+4}\}\), and by definition it contains \(P_i - \{v_i, v_{i+4}\}\).

Finally, observe that \(G[V(C_i) \cup \{v_i, v_{i+4}, x\}]\) is outerplanar as it is a subgraph of \(C^+\). So since \(V(C_i) \cap Z = \emptyset \) we have that Reduction Rule 3 applies.

Now suppose that the algorithm was unable to apply Reduction Rule 3, i.e., for all \(1 \le i \le \ell -4\) we have \(V(C_i) \cap Z \ne \emptyset \). We show \(\vert N(x) \cap V(C)\vert \le 20\). Suppose for contradiction that \(\vert N(x) \cap V(C)\vert > 20\). Then \(N_{C^+}(x) > 20\), so the path P contains more than 20 neighbors of x, i.e., \(\ell > 20\) so \(C_1, C_5, C_9, C_{13}, C_{17}\) are defined. Since \(V(C_i) \cap Z \ne \emptyset \) for all \(1 \le i \le \ell -4\) we know \(C_1, C_5, C_9, C_{13}, C_{17}\) all contain a vertex from Z. We show \(C_1, C_5, C_9, C_{13}, C_{17}\) are disjoint.

If \(C_1, C_5, C_9, C_{13}, C_{17}\) are not disjoint, then there exist integers \(i,j \in \{1,5,9,13,17\}\) and a vertex v such that \(i < j\) and \(v \in V(C_i) \cap V(C_j)\). Using Claim 3.24 we find that \(V(P) \cap V(C_i) \cap V(C_j) \subseteq (V(C_i) \cap V(P)) \cap (V(C_j) \cap V(P)) = V(P_i - \{v_i, v_{i+4}\}) \cap V(P_j - \{v_j, v_{j+4}\}) = \emptyset \), so \(v \not \in V(P)\). Then v is a vertex in some connected component D of \(C_i - V(P)\) and a connected component \(D'\) of \(C_j - V(P)\). By Observation 3.23, both D and \(D'\) are connected components of \(C^+ - (V(P) \cup \{x\})\), and since both contain v, they are the same connected component. Since \(C_i\) is connected, D must contain a neighbor \(u_1 \in V(C_i) \cap V(P) = V(P_i - \{v_i, v_{i+4}\})\). Similarly \(D'=D\) must contain a neighbor \(u_2 \in V(C_j) \cap V(P) = V(P_j - \{v_j, v_{j+4}\})\). Since these two sets are disjoint we have \(u_1 \ne u_2\). By Claim 3.22 these neighbors must be the only neighbors of D and they must be consecutive along P. However the vertex \(v_{i+4}\) lies on P between \(u_1\) and \(u_2\) since \(i+4 \le j\) so \(u_1\) and \(u_2\) are not consecutive along P. By contradiction, \(C_1, C_5, C_9, C_{13}, C_{17}\) are disjoint.

Since \(C_1, C_5, C_9, C_{13}, C_{17}\) are disjoint subgraphs of \(C^+\) and each subgraph contains a vertex from Z, we have that \(\vert Z \cap V(C^+)\vert \ge 5\). By definition of \(C^+\) we know \(V(C^+) = V(C) \cup \{x\} \cup (N(C) \cap Z)\). Recall that \(\vert N(C) \cap Z\vert \le 4\) by Definition 3.15(3), so then \((V(C) \cup \{x\}) \cap Z \ne \emptyset \). This is a contradiction since \(x \in X_0 \cup X_1\) and C is a connected component of \(G-(X_0 \cup X_1 \cup Z)\), hence \(\vert N(x) \cap V(C)\vert \le 20\). \(\square \)

We are going to apply Lemma 3.21 to a computed outerplanar decomposition in order to reduce the total neighborhood size of \(X_0 \cup X_1\). This allows us to construct a final modulator L of size \({\mathcal {O}}(k^4)\) with a structure referred to in previous works as a protrusion decomposition. We can now proceed to proving a lemma that encapsulates application of Reduction Rule 3.

Lemma 3.26

There exists a function \(f_5 :\mathbb {N}^2 \rightarrow \mathbb {N}\) and a polynomial-time algorithm that, given a (kcd)-outerplanar decomposition \((X_0, X_1, Z)\) of a graph G, either applies Reduction Rule 2 or Reduction Rule 3, or outputs a set \(L \subseteq V(G)\) such that

  1. 1.

    \(\vert L\vert \le f_5(c,d) \cdot (k+3)^4\),

  2. 2.

    \(\vert E_G(L,L)\vert \le f_5(c,d) \cdot (k+3)^4\),

  3. 3.

    there are at most \(f_5(c,d) \cdot (k+3)^4\) connected components in \(G- L\), and

  4. 4.

    for each connected component C of \(G-L\) the graph \(G \langle C\rangle \) is outerplanar and \(\vert N_G(C)\vert \le 4\).

Furthermore, \(f_5(c,d) = 24 \cdot (20 \cdot f_4(c,d) + d + c + c^2)\) (see Lemma 3.17).

Proof

We first describe the algorithm and then proceed to prove its correctness.

Algorithm For all \(x \in X_0 \cup X_1\) and connected components C in \(G-(X_0 \cup X_1 \cup Z)\) we run the algorithm from Lemma 3.21 to apply Reduction Rule 3 or conclude that \(\vert N_G(x) \cap V(C)\vert \le 20\). If Reduction Rule 3 could not be applied to any x and C, we take \(X = X_0 \cup X_1\) and apply Lemma 3.13 on the graph \(G-X\) with vertex set \(Z \cup N_G(X)\) to obtain a set \(Z' \subseteq V(G) \setminus X\). We set \(L = X \cup Z'\). If some component C of \(G - L\) has at most one neighbor, we apply Reduction Rule 2 to remove C. Otherwise we return L.

Correctness It can easily be seen that Lemma 3.21 applies on all \(x \in X_0 \cup X_1\) and connected components C in \(G-(X_0 \cup X_1 \cup Z)\). If by calling Lemma 3.21 we have applied Reduction Rule 3 we can terminate the algorithm. Otherwise it holds that \(\vert N_G(x) \cap V(C)\vert \le 20\) for each \(x \in X_0 \cup X_1\) and each connected component C of \(G-(X_0 \cup X_1 \cup Z)\). Let us examine \(Z'\) and L given by the execution of the algorithm.

Clearly \(G-X\) is outerplanar as it is a subgraph of \(G-X_0\), which justifies that the algorithm correctly applies Lemma 3.13. To show Condition 1 and 2, we first prove a bound on \(\vert E_G(X,V(G) \setminus (X \cup Z)\vert \).

Consider the component graph \(H = \mathcal {C}(G,X \cup Z)\). For any \(x \in X\) and connected component C of \(G-(X \cup Z)\) if H does not contain an edge between x and the vertex representing C, then \(\vert N_G(x) \cap V(C)\vert = 0\). If H contains an edge between x and the vertex representing C, then our earlier bound applies: \(\vert N_G(x) \cap V(C)\vert \le 20\). By Lemma 3.17 we have that H contains at most \(f_4(c,d) \cdot (k+3)^4\) edges, so \(\vert E_G(X,V(G) \setminus (X \cup Z))\vert \le 20 \cdot f_4(c,d) \cdot (k+3)^4\) and \(\vert N_G(X) \setminus Z\vert \le 20 \cdot f_4(c,d) \cdot (k+3)^4\).

By Lemma 3.13 we have \(\vert Z'\vert \le 6 \cdot \vert Z \cup N_G(X)\vert \) and by Definition 3.15(4) we have \(\vert Z\vert \le d \cdot (k+3)^3\). To show Condition 1 we check that

$$\begin{aligned}&\vert Z'\vert \le 6 \cdot (20 \cdot f_4(c,d) + d)) \cdot (k+3)^4,\text { and}\\&\vert L\vert = \vert Z'\vert + \vert X\vert \le 6 \cdot (20 \cdot f_4(c,d) + d + c)) \cdot (k+3)^4. \end{aligned}$$

Let us now bound the number of edges in \(E_G(L,L)\). We group these edges into four categories: (a) edges within \(X_0\), (b) edges between \(X_0\) and \(X_1 \cup Z\), (c) edges between \(X_0\) and \(L \setminus (X \cup Z)\), and (d) edges within \(L \setminus X_0\). The number of edges in (a) is clearly at most \(\vert X_0\vert ^2 = c^2 \cdot k^2\). Similarly, in case (b) we obtain the bound \(\vert X_0\vert \cdot \vert X_1 \cup Z\vert = ck \cdot (3c \cdot k^2 + d \cdot (k+3)^3) \le (3c^2+d) \cdot (k+3)^4\). To handle case (c), observe that \(E_G(X_0, L \setminus (X \cup Z)) \subseteq E_G(X,V(G) \setminus (X \cup Z))\) and the size of this set has already been bounded by \(20 \cdot f_4(c,d) \cdot (k+3)^4\). Finally, the subgraph of G induced by \(L \setminus X_0\) is outerplanar and by Observation 2.7 we bound the number of edges in case (d) by \(2\cdot \vert L\vert \le 2 \cdot 6 \cdot (20 \cdot f_4(c,d) + d + c)) \cdot (k+3)^4\). By collecting all summands we obtain that \(\vert E_G(L,L)\vert \le 13 \cdot (20 \cdot f_4(c,d) + d + c + c^2)) \cdot (k+3)^4\) and prove Condition 2.

To show Condition 4 note that \(Z \cup N_G(X) \subseteq Z'\) by Lemma 3.13 and so \(Z \cup N_G[X] \subseteq L\). Consider a connected component C of \(G-L\). Since C does not contain neighbors of X we have \(N_G[C] \cap X = \emptyset \). So then \(G\langle C\rangle \) is a subgraph of \(G-X\), hence it is outerplanar. Furthermore, by Lemma 3.13 we know that \(\vert N_{G-X}(C)\vert \le 4\) and so \(\vert N_{G}(C)\vert \le 4\).

If  \(\vert N_G(C)\vert \le 1\) for some connected component C of \(G-L\), we have applied Reduction Rule 2 and terminated the algorithm. If the algorithm is unable to apply this reduction rule, we know that all components of \(G-L\) have at least two neighbors, which must belong to \(L \setminus X\). The vertices representing these components in the component graph \(\mathcal {C}(G-X, L)\) all have degree at least 2. Note also that this graph is bipartite (by definition) and outerplanar since it is a minor of \(G-X\), which is outerplanar. It follows from Proposition 3.7 that \(G-L\) has at most \(4 \cdot \vert L\vert \le 4 \cdot 6 \cdot (20 \cdot f_4(c,d) + d + c)) \cdot (k+3)^4\) components. This shows that Condition 3 holds. \(\square \)

4 Compressing the Outerplanar Subgraphs

4.1 Reducing the Number of Biconnected Components

Once we arrive at the decomposition from Lemma 3.26, it remains to compress outerplanar subgraphs with a small boundary. First, we present a reduction to bound the number of biconnected components in such a subgraph. It will also come in useful later, for reducing the maximum size of a face in a biconnected outerplanar graph with a small boundary. Intuitively, this reduction checks whether an outerplanar subgraph with exactly two non-adjacent neighbors can supply one or two vertex-disjoint paths to the rest of the graph and replaces this subgraph with a minimal gadget with the same property, see also Fig. 3.

Reduction Rule 4

Consider a graph G and vertex set \(C \subseteq V(G)\) such that \(N_G(C) = \{x,y\}\), \(xy \not \in E(G)\), G[C] is connected, and \(G\langle C \rangle \) is outerplanar. Let \(P = (u_1, u_2, \dots , u_m)\), \(u_1 = x\), \(u_m = y\) be any shortest path connecting x and y in \(G\langle C \rangle \) and \(D_1, D_2, \dots , D_\ell \) be the connected components of \(G\langle C \rangle - V(P)\). We consider 3 cases:

  1. 1.

    if there is a component \(D_i\), for which \(N_G(D_i)\) includes two non-consecutive elements of P, replace C with two vertices \(c_1, c_2\), each adjacent to both x and y,

  2. 2.

    if there are two distinct components \(D_i, D_j\), for which \(\vert N_G(D_i) \cap N_G(D_j)\vert \ge 2\), replace C with two vertices \(c_1, c_2\), each adjacent to both x and y,

  3. 3.

    otherwise replace C with one vertex \(c_1\) adjacent to both x and y.

Fig. 3
figure 3

On the left a depiction of Reduction Rule 4, which reduces a connected subgraph to one or two vertices depending on its internal structure. On the right a depiction of Reduction Rule 5 which contracts a connected subgraph to a single vertex if it is outerplanar together with the two adjacent vertices that form its neighborhood

Lemma 4.1

Let \(x, y \in V(G)\) and \(C \subseteq V(G)\) be such that Reduction Rule 4 applies and let \(G'\) be the graph obtained after application of the rule. Then \(G'\) is a minor of G.

Proof

In case (1), there exists a component \(D_i\) adjacent to non-consecutive vertices \(u_j\), \(u_h\) from V(P), \(j<h\). Let \(P_x,P_C,P_y\) denote the non-empty subpaths: \((u_1, \dots , u_j)\) \((u_{j+1}, \dots , u_{h-1})\), \((u_{h}, \dots , u_{m})\). First, we remove all the connected components of \(G[N[C]] - V(P)\) different from \(D_i\). Next, we contract \(P_x\) into x, \(P_y\) into y, \(P_C\) into a vertex denoted \(c_1\), and \(D_i\) into a vertex denoted \(c_2\). By the choice of \(D_i\) we see that each of \(c_1, c_2\) is adjacent to both xy, therefore we have obtained \(G'\) through vertex deletions and edge contractions.

In case (2), there exist distinct components \(D_{i_1}, D_{i_2}\) both adjacent to vertices \(u_j\), \(u_h\) from V(P), \(j<h\). Let \(P_x,P_y\) denote the subpaths \((u_1, \dots , u_j)\) and \((u_{h}, \dots , u_{m})\). Again, we begin by removing all the connected components of \(G[N[C]] - V(P)\) different from \(D_{i_1}, D_{i_2}\). Next, we contract \(P_x\) into x, \(P_y\) into y, \(D_{i_1}\) into a vertex denoted \(c_1\), and \(D_{i_2}\) into a vertex denoted \(c_2\), thus obtaining \(G'\).

In case (3), we simply contract C into a vertex \(c_1\). \(\square \)

In order to show correctness of the reduction rule, we will prove that any outerplanar deletion set in the new instance can be turned into an outerplanar deletion set in the original instance without increasing its size. If we replaced the vertex set C with two vertices, we show that any outerplanar deletion set must break all the connections between the neighbors of C which go outside C. In the other case, when we replaced C with just one vertex, we show that we can undo the graph modification from Reduction Rule 4 while preserving the outerplanarity.

Lemma 4.2

Let \(x, y \in V(G)\) and \(C \subseteq V(G)\) be such that Reduction Rule 4 applies and let \(G'\) be the graph obtained after application of the rule. If \(S' \subseteq V(G')\) is an outerplanar deletion set in \(G'\), then there exists a set \(S \subseteq V(G)\) such that \(\vert S\vert \le \vert S'\vert \) and which is an outerplanar deletion set in G.

Proof

Let \(C' \subseteq V(G')\) consist of the vertices put in place of C, that is, \(c_1\) and, if we replaced C with two vertices, \(c_2\). We naturally identify the elements of \(V(G') \setminus C'\) with \(V(G) \setminus C\). In particular, \(N_{G'}(C') = N_G(C) = \{x,y\}\). We consider four cases:

  • \(S' \cap \{x,y\} \ne \emptyset \). We show that \(G - S'\) is outerplanar. If \(S' \supseteq \{x,y\}\) then this is immediate since G[C] is outerplanar by assumption and forms a connected component of \(G-S'\), while \((G - S') - V(C)\) is a subgraph of \(G' - S'\).

    Otherwise, let \(z = S' \cap \{x,y\}\) and \({\overline{z}} = \{x,y\} \setminus \{z\}\). As before, \((G - S') - V(C)\) is outerplanar since it is a subgraph of \(G' - S'\). The graph \(G - S'\) can be obtained from \((G - S') - V(C)\) by attaching G[C] onto the articulation point \({\overline{z}}\), and is therefore outerplanar by Observation 2.2.

  • \(S' \cap V(C') \ne \emptyset \). We define the set S as \((S' \setminus V(C')) \cup \{x\}\). It clearly holds that \(\vert S\vert \le \vert S'\vert \). Furthermore, y is an articulation point in \(G-S\). The graph \(G - (S \cup C \cup \{x\})\) is isomorphic with \(G' - (S' \cup C' \cup \{x\})\), hence it is outerplanar. On the other hand, \(G[C \cup \{y\}]\) is outerplanar by assumption.

    Therefore, all the components obtained by splitting \(G-S\) at y are outerplanar and thus \(G-S\) is outerplanar by Observation 2.2.

  • \(S' \cap N_{G'}[C'] = \emptyset \) and \(C' = \{c_1, c_2\}\). We can simply write \(S = S'\) as we have identified elements of \(V(G') \setminus C'\) and \(V(G) \setminus C\). Let \(F_1,F_2\dots ,F_\ell \) be the connected components of \(G'-(S' \cup C' \cup \{x,y\})\). Observe that no \(F_i\) can be adjacent to both xy, as otherwise \(x,y,c_1,c_2,F_i\) would form branch sets of a \(K_{2,3}\)-minor in \(G'-S'\). The graph \(G-S\) can be obtained from \(G \langle C\rangle \) by appending the components \(F_1,F_2\dots ,F_\ell \) at x or y. For each \(i\in [\ell ]\) it holds that \(G \langle F_i\rangle \) is a subgraph of \(G'-S'\), so it is outerplanar. From Observation 2.2 we infer that \(G-S\) is outerplanar.

  • \(S' \cap N_{G'}[C'] = \emptyset \) and \(C' = \{c_1\}\). We again set \(S=S'\) via vertex identification and we are going to transform \(G'-S'\) into \(G-S\) while preserving outerplanarity of the graph. Note that the path P contains at least one vertex from C as \(xy \not \in E(G)\). Subdividing a subdivided edge multiple times preserves outerplanarity, and so does replacing \((x, c_1, y)\) with P. Let \(G''\) denote the resulting graph.

    Since P is a shortest (xy)-path in \(G\langle C\rangle \), there are no edges in \(G\langle C\rangle \) connecting non-adjacent vertices of P. Recall that \(D_1, D_2, \dots , D_\ell \) are the connected components of \(G\langle C\rangle - V(P)\). Since \(C' = \{c_1\}\), the conditions from cases (1, 2) in Reduction Rule 4 are not satisfied. Therefore each component \(D_i\) is either adjacent to one vertex from V(P) or to two vertices which are consecutive. Furthermore, for any pair of consecutive vertices on P, there can be only one component \(D_i\) adjacent to both of them.

    For each \(i \in [\ell ]\) it holds that \(N_G[D_i] \subseteq N_G[C]\), so \(G \langle D_i\rangle \) is outerplanar. If \(D_i\) has two neighbors uv in P then any (uv)-path in \(G'' \setminus uv\) includes x or y as an internal vertex, hence there cannot be two induced internally vertex-disjoint (uv)-paths in \(G'' \setminus uv\). By Lemma 2.4 appending \(D_i\) to the edge uv in \(G''\) supplies at most one more induced (uv)-path and no other \(D_j\), \(j \in [\ell ] \setminus \{i\}\), can supply a (uv)-path in \(G'' \setminus uv\), so this preserves outerplanariy due to Lemma 2.3 applied to the edge uv. Next, by Observation 2.2 the graph obtained by appending each component adjacent to a single vertex is still outerplanar. We have replaced \(c_1\) back with C, thus transforming \(G'-S'\) into \(G-S\), while preserving outerplanarity of the graph, hence \(G-S\) is outerplanar.

As \(N_{G'}[C'] = V(C') \cup \{x,y\}\), the case distinction is exhaustive and completes the proof. \(\square \)

Lemma 4.3

Let G be a graph and \(G'\) be obtained from G by applying Reduction Rule 4. Then \(\mathsf {opd}(G') = \mathsf {opd}(G)\).

Proof

By Lemma 4.1 we know that \(G'\) is a minor of G, so \(\mathsf {opd}(G') \le \mathsf {opd}(G)\). On the other hand, if \(G'\) admits an outerplanar deletion set of size at most \(\ell \), then Lemma 4.2 guarantees that the same holds for G. \(\square \)

We are now going to make use of Reduction Rule 4 to reduce the number of biconnected components in an outerplanar graph with a small boundary. Recall that the block-cut tree of a graph H has a vertex for each biconnected component of H and for each articulation point in H. A biconnected component B and an articulation point v are connected by an edge if \(v \in B\). We will show that when the block-cut tree of \(H = G\langle A\rangle \) is large then we can always find either one or two articulation points that cut off an outerplanar subgraph which can be either removed or compressed. Recall that \(\partial _G(B) = N_G(V(G) \setminus B)\) denotes the boundary of vertex set \(B \subseteq V(G)\) in graph G.

Lemma 4.4

Consider a graph G and a vertex set \(A \subseteq {V(G)}\), such that \(\vert N_G(A)\vert \le 4\), G[A] is connected, and \(G\langle A\rangle \) is outerplanar. There is a polynomial-time algorithm that, given G and A satisfying the conditions above, outputs either

  1. 1.

    a block-cut tree of \(G\langle A\rangle \) with at most 25 biconnected components, where each such biconnected component B satisfies \(\vert \partial _G(B)\vert \le 4\), or

  2. 2.

    a vertex set \(C \subseteq A\), to which either Reduction Rule 2 or Reduction Rule 4 applies and decreases the number of vertices in the graph.

Proof

We begin by computing the block-cut tree T of \(G\langle A\rangle \) and rooting it at an arbitrary node [44]. For a node \(t \in V(T)\) let \(\chi (t)\) denote the vertex set represented by t, either a biconnected component, or a single vertex of t that corresponds to an articulation point. Note that each leaf in T must represent a biconnected component. Furthermore, observe that no vertex from \(N_G(A)\) can be an articulation point in \(G\langle A\rangle \), because G[A] is connected. Therefore for each \(v \in N_G(A)\) there is a unique biconnected component containing v. Let \(t_v \in V(T)\) be the node in the block-cut tree representing this component.

First suppose that there exists a biconnected component B of \(G\langle A\rangle \) with \(\vert \partial _G(B)\vert > 4\). The set \(\partial _G(B)\) is a disjoint union of \(N_G(A) \cap B\) and the articulation points of \(G\langle A\rangle \) lying in B. Let \(d = \vert N_G(A) \cap B\vert \). Then there are at least \(5-d\) articulation points of \(G\langle A\rangle \) lying in B, but at most \(4-d\) vertices of \(N_G(A) \setminus B\). By a counting argument, there is one articulation point \(v \in B\) of \(G\langle A\rangle \) which separates \(B \setminus \{v\}\) from a set \(C \subseteq N_G[A]\) which does not contain any vertex from \(N_G(A)\). Hence, \(C \subseteq A\) and it induces a connected outerplanar subgraph of G having exactly one neighbor in G. Therefore, Reduction Rule 2 applies for C and removes it, decreasing the number of vertices in G.

Suppose for the rest of the proof that there are at least 26 biconnected components of \(G\langle A\rangle \). Let \(L \subseteq V(T)\) denote the LCA closure of the set \(\{t_v \mid v \in N_G(A)\}\). By Lemma 2.8 we know that \(\vert L\vert \le 7\) and each connected subtree of \(T - L\) then is adjacent to at most two nodes from L. It follows that if \(t \in V(T) \setminus L\), then \(\chi (t) \cap N_G(A) = \emptyset \).

Suppose that some component \(T_C\) of \(T-L\) is adjacent to just one node from L. It is either an articulation point or its neighbor in \(T_C\) is an articulation point. The set \(C = \bigcup _{t \in T_C} \chi (t)\) has an empty intersection with \(N_G(A)\) and contains a vertex v which separates \(C \setminus \{v\}\) from the rest of the graph G. Therefore we can find a subset \(C' \subseteq C \setminus \{v\}\) which induces a connected subgraph of G, has exactly one neighbor v, and \(C' \cup \{v\} \subseteq N_G[A]\) induces an outerplanar graph. Hence, Reduction Rule 2 applies for \(C'\) and removes it, decreasing the size of the graph.

A similar situation occurs when \(T_C\) has a vertex of degree at least 3. Then there exists a leaf t in \(T_C\) which represents a biconnected component and is not adjacent to L, so it is also a leaf in T. Again, \(\chi (t) \cap N_G(A) = \emptyset \), so \(\chi (t)\) contains a single vertex v which separates \(\chi (t) \setminus \{v\}\) from the rest of the graph G. Analogously as above, Reduction Rule 2 applies and decreases the size of the graph.

Suppose now that the previous cases do not hold. Then each connected component of \(T-L\) is adjacent to exactly two nodes from L and induces a path in T with the endpoints adjacent to L. If we contracted each such component to an edge connecting two nodes from L, we would obtain a tree with vertex set L and \(\vert L\vert -1\) edges. Hence, the number of such components of \(T-L\) is at most 6. Since the total number of biconnected components in \(G\langle A\rangle \) is at least 26, we infer that there exists a connected component \(T_C\) of \(T-L\) containing at least \(\left\lceil \frac{26 - 7}{6}\right\rceil = 4\) nodes representing biconnected components of \(G\langle A\rangle \). The set \(C = \bigcup _{t \in T_C} \chi (t)\) contains two vertices uv which together separate \(C - \{u,v\}\) from the rest of \(G\langle A\rangle \). Note that uv belong to disjoint biconnected components of \(G\langle A\rangle \), so \(uv \not \in E(G)\) and the set \(C - \{u,v\}\) induces a connected subgraph of G. As \(C \cap N_G(A) = \emptyset \), this implies that \(C - \{u,v\}\) is a connected component of \(G - \{u,v\}\). Furthermore, a union of 4 biconnected components has at least 5 vertices (the corner case occurs when they are all single edges), so \(C - \{u,v\}\) has at least 3 vertices. Therefore, Reduction Rule 2 applies for \(C- \{u,v\}\) and replaces it with at most two new vertices, therefore the total number of vertices in the graph decreases. All the described operations on the block-cut tree can be implemented to run in polynomial time. \(\square \)

4.2 Reducing a Large Biconnected Component

We now give the remaining reduction rules to reduce the size of a biconnected component of a protrusion. If a subgraph of a graph is outerplanar and adjacent only to two connected vertices, we can use Lemma 2.3 to argue that the entire subgraph can be replaced by any other outerplanar graph that is adjacent to the same two vertices. The following reduction rule exploits this by replacing such a subgraph with a single vertex, see also Fig. 3.

Reduction Rule 5

Suppose that there is an edge \(e = uv\) in a graph G such that \(G - V(e)\) has a connected component C such that \(G \langle C\rangle \) is outerplanar. Then contract C into a single vertex.

Lemma 4.5

(Safeness) Let G, \(uv \in E(G)\), C satisfy the requirements of Reduction Rule 5 and let \(G'\) be obtained from G by contracting C to a new vertex c. Then \(\mathsf {opd}(G) = \mathsf {opd}(G')\).

Proof

It suffices to prove inequality \(\mathsf {opd}(G) \le \mathsf {opd}(G')\). If \(\vert N_G(C)\vert = 1\), then we obtain the case already considered in Reduction Rule 2, which is safe due to Observation 2.2. Assume for the rest of the proof that \(N_G(C) = \{u,v\}\).

Let \(S' \subseteq V(G')\) be any outerplanar deletion set in \(G'\); we will prove \(\mathsf {opd}(G) \le \vert S'\vert \). We first deal with two easy cases.

If \(S' \cap \{u,v\} \ne \emptyset \), then we argue that \(S = (S' \setminus \{c\})\) is an outerplanar deletion set in G. This follows from the fact that \(G \langle C\rangle \) is outerplanar while C has at most one neighbor in \(G - S'\), so that Observation 2.2 shows \(G-S\) is outerplanar. Hence \(\mathsf {opd}(G) \le \vert S\vert \le \vert S'\vert \).

If \(c \in S'\) but \(S' \cap \{u,v\} = \emptyset \), then \(S = (S' \setminus \{c\}) \cup \{u\}\) is not larger than \(S'\). To see that \(G - S\) is outerplanar, we apply Observation 2.2 to the articulation point v. Since \(G \langle C\rangle \) is outerplanar by assumption, while \((G - S) - V(C)\) is a subgraph of \(G' - S'\) and therefore outerplanar, Observation 2.2 ensures \(G - S\) is outerplanar. Hence \(\mathsf {opd}(G) \le \vert S'\vert \).

Suppose now that \(S' \cap \{u,v,c\} = \emptyset \). We check the requirements of Lemma 2.3 for the graph \(G-S'\) and edge uv. First, each connected component of \(G-S'-\{u,v\}\) is outerplanar when considered together with its neighborhood. It remains to show that \((G-S') \setminus uv\) does not have three induced internally vertex-disjoint paths connecting u and v. Since (ucv) already gives such a path and \(G'-S'\) is outerplanar, the graph \(G' - (S' \cup \{c\}) \setminus uv = (G-(S' \cup C)) \setminus uv\) does not have two induced internally vertex-disjoint (uv)-paths. By Lemma 2.4, there also cannot be two such paths in \(G\langle C\rangle \setminus uv\). Therefore replacing c with C does not increase the number of induced internally vertex-disjoint (uv)-paths and so Lemma 2.3 applies. We have thus shown that \(S'\) is an outerplanar deletion set in G, which concludes the proof. \(\square \)

The next reduction rule addresses high degree vertices within a biconnected component. It uses the same idea as used in Reduction Rule 3, in fact, its safeness follows directly from Lemma 3.19. See also Fig. 4.

Reduction Rule 6

Suppose we are given a graph G, a vertex \(x \in V(G)\), and five vertices \(v_1, \ldots , v_5 \in N_G(x)\) that lie, in order of increasing index, on an induced path P in \(G-x\) from \(v_1\) to \(v_5\), such that \(N_G(x) \cap V(P) = \{v_1, \ldots , v_5\}\). Let C be the component of \(G-\{v_1, v_5, x\}\) containing \(P-\{v_1, v_5\}\). If \(G\langle C\rangle \) is outerplanar, then remove the edge \(xv_3\).

The final reduction rule reduces the number of “internal” edges of an outerplanar biconnected graph. These are the edges whose endpoints form a separator in the graph. The previous rule addresses the case where these edges share an endpoint. The final reduction rule focuses on the case where the edges are disjoint: they form a matching.

Definition 4.6

For a graph G, a sequence of edges \(e_1, \ldots , e_\ell \in E(G)\) is an order-respecting matching if the set of edges is a matching and if for all \(1 \le i<j<k \le \ell \) we have that \(e_i\) and \(e_k\) are in different connected components of \(G - V(e_j)\).

We can now formulate a property of biconnected graphs containing an order-respecting matching. This allows us to identify a number of cycles in the graph that are useful in the proof of the final reduction rule.

Lemma 4.7

For an integer \(\ell > 1\), if G is biconnected and \(e_1, \ldots , e_\ell \) is an order-respecting matching in G then there exist vertex-disjoint paths \(P_x, P_y\) in G, such that each of \(P_x, P_y\) intersects every set \(V(e_i)\), \(i \in [\ell ]\), and these intersections appear in order of increasing index.

Proof

Let \(G'\) be the graph obtained from G by subdividing \(e_1\) and \(e_\ell \) with new vertices a and b. Since subdividing edges preserves biconnectivity, the graph \(G'\) is biconnected. So then there are two internally vertex-disjoint (ab)-paths \(P_1\) and \(P_2\). Take \(P_x := P_1 - \{a,b\}\) and \(P_y := P_2 - \{a,b\}\). Let \(x_1,x_\ell ,y_1\), and \(y_\ell \) be the unique vertices in (respectively) \(V(P_x) \cap V(e_1), V(P_x) \cap V(e_\ell ), V(P_y) \cap V(e_1)\), and \(V(P_y) \cap V(e_\ell )\). Observe that \(P_x\) is an \((x_1, x_\ell )\)-path in G and \(P_y\) is a \((y_1, y_\ell )\)-path in G and both paths are vertex disjoint.

For any \(e_i \in \{e_2, \ldots , e_{\ell -1}\}\) we have by definition of order-respecting matching that \(x_1\) and \(x_\ell \) are in different connected components of \(G-V(e_i)\), hence one of the endpoints of \(e_i\) must lie on \(P_x\). Similarly one of the endpoints of \(e_i\) must lie on \(P_y\). For all \(1< i < \ell \) let \(x_i\) denote the endpoint of \(e_i\) that lies on \(P_x\) and let \(y_i\) denote the endpoint of \(e_i\) that lies on \(P_y\).

By Definition 4.6 we have for all \(1 \le i< j < k \le \ell \) that \(x_i\) and \(x_k\) are in different connected components of \(G-V(e_j)\). So the subpath of \(P_x\) between \(x_i\) and \(x_k\) must contain a vertex of \(V(e_j)\). Since \(y_j\) lies on \(P_y\) which is disjoint from \(P_x\) we must have that \(x_j\) lies on \(P_x\) between \(x_i\) and \(x_k\). Since \(1 \le i< j < k \le \ell \) are arbitrary it follows that \(\{x_1, \ldots , x_\ell \}\) occur in order of increasing index on the path \(P_x\). Similarly, \(\{y_1, \ldots , y_\ell \}\) occur in order of increasing index on the path \(P_y\). \(\square \)

We are now ready to formulate the final reduction rule. It applies within a biconnected outerplanar part of the graph that has multiple “internal” edges. We make use of the definition of order-respecting matching to define an order on the internal edges, so that the endpoints of the first and the last one separate the biconnected outerplanar part from the remainder of the graph. We show that in such a case the edges in the middle can be removed without affecting the outerplanar deletion number of the graph (see Fig. 4). To advocate the safeness of such a graph modification, we observe that if any cycle in the modified outerplanar part is disjoint from a solution, then by Lemma 2.6 the solution must intersect all the paths connecting the endpoints of the first and the last edge of the matching on the “outside”. This allows us to apply the outerplanarity criterion from Lemma 2.3 to an edge on this cycle. In order to simplify the argument that such a cycle exists, we require an order-respecting matching of size 7.

Fig. 4
figure 4

On the left a depiction of Reduction Rule 6 which is able to remove the middle edge of a fan structure in an outerplanar subgraph that is sufficiently isolated from the rest of the graph. On the right a depiction of Reduction Rule 7, which removes the middle edge of an order-respecting matching in an outerplanar subgraph that is sufficiently isolated from the rest of the graph

Reduction Rule 7

Let G be a graph, \(e_1,\ldots ,e_7\) be a matching in G, and let C be a connected component of \(G - (V(e_1) \cup V(e_7))\). If \(\{e_2,\ldots ,e_6\} \subseteq E(C)\), \(N_G(C) = V(e_1) \cup V(e_7)\), \(G\langle C \rangle \) is biconnected and outerplanar, and \(e_1,\ldots ,e_7\) is an order-respecting matching in \(G\langle C \rangle \), then remove \(e_4\).

Lemma 4.8

(Safeness) Let \(e_1, \ldots , e_7\) be a matching in a graph G and let C be a connected component of \(G - (V(e_1) \cup V(e_7))\). If Reduction Rule 7 applies to G\(e_1, \ldots , e_7\), and C, then \(\mathsf {opd}(G \setminus e_4) = \mathsf {opd}(G)\).

Proof

Clearly any solution to G is also a solution to \(G \setminus e_4\) so \(\mathsf {opd}(G \setminus e_4) \le \mathsf {opd}(G)\). To show \(\mathsf {opd}(G \setminus e_4) \ge \mathsf {opd}(G)\) suppose that \(G \setminus e_4 - S\) is outerplanar. We will show that there is a set \(S' \subseteq V(G)\) of size at most \(\vert S\vert \) such that \(G-S'\) is outerplanar. We first formulate the following structural property:

Claim 4.9

If \(i\in \{2,\ldots ,6\}\) then for any induced path P in \(G\setminus e_i\) between the endpoints of \(e_i\), either P is an induced path in \(G\langle C\rangle \setminus e_i\), or P has a subpath disjoint from C connecting an endpoint of \(e_1\) to an endpoint of \(e_7\).

Proof

Let \(i \in \{2,\ldots ,6\}\) be arbitrary. Suppose that P is an induced path in \(G\setminus e_i\) between the endpoints of \(e_i\) that contains a vertex v outside \(G\langle C\rangle \). We show that P contains a subpath disjoint from C connecting an endpoint of \(e_1\) to an endpoint of \(e_7\). Consider the subpath \(P'\) of P from the last vertex x of \(G\langle C\rangle \) before v, to the first vertex y of \(G\langle C\rangle \) after v. By definition xy have neighbors outside \(G\langle C\rangle \) so \(x,y \in N_G(C) = V(e_1) \cup V(e_7)\), showing that \(P'\) is disjoint from C. Since P is induced, so is \(P'\), hence there is no edge between x and y. It follows that one of xy is an endpoint of \(e_1\) and the other an endpoint of \(e_7\), hence \(P'\) is a subpath of P disjoint from C that connects an endpoint of \(e_1\) to an endpoint of \(e_7\). \(\square \)

We apply Lemma 4.7 to \(G\langle C\rangle \) and the matching \((e_1, \dots , e_7)\) to obtain vertex-disjoint paths \(P_x, P_y\) in \(G\langle C\rangle \) which intersect each \(V(e_i)\), \(i \in [7]\), in order of increasing index. For \(i \in [7]\) let \(\{x_i, y_i\}\) be the endpoints of edge \(e_i\), note that these are unrelated to x and y used in the proof of the previous claim. For all \(1 \le p < q \le 7\) let \(C_{p,q}\) denote the cycle in \(G\langle C \rangle \) as obtained by combining the edges \(e_p, e_q\) with the subpaths in \(P_x, P_y\) from \(V(e_p)\) to \(V(e_q)\). Observe that whenever \(p_1< q_1< p_2 < q_2\), then \(V(C_{p_1,q_1}) \cap V(C_{p_2,q_2}) = \emptyset \). For brevity let \(C_i\) denote \(C_{i,i+1}\) for all \(1 \le i \le 6\). We consider the following cases:

  • If \(\vert N_G[C] \cap S\vert \ge 3\) then take \(S' := \{x_1,y_1,x_7\} \cup (S \setminus V(C))\) and observe that \(\vert S'\vert \le \vert S\vert \). We show \(G-S'\) is outerplanar using Observation 2.2. We show for all connected components \(C'\) of \(G-S' -y_7\) that \((G-S')\langle C'\rangle \) is outerplanar. Since \(S' \cap V(C) = \emptyset \) we have that C is a connected component of \(G-S'-V(e_1)-V(e_7)\). Since \((V(e_1) \cup V(e_7)) \setminus S' = \{y_7\}\) this yields that C is a connected component of \(G-S'-y_7\). Clearly \((G-S') \langle C\rangle \) is outerplanar since it is a subgraph of \(G\langle C\rangle \). Any other connected component \(C'\) of \(G-S'-y_7\) clearly is a connected component of \(G-S'-y_7-V(C)\), so then \((G-S')\langle C'\rangle \) is a subgraph of \(G-S'-V(C)\). Since both endpoints of \(e_4\) are in C we have that \(G-S'-V(C) = G\setminus e_4 -S'-V(C)\). This is a subgraph of \(G\setminus e_4-S\) since \(S \subseteq S' \cup V(C)\). Because \(G\setminus e_4 - S\) is outerplanar we can conclude that \((G-S') \langle C'\rangle \) is outerplanar. By Observation 2.2 we have that \(G-S'\) is outerplanar.

  • If \(\vert N_G[C] \cap S\vert = 2\) and at least one of \(\{C_1,C_6\}\) does not intersect S, we may assume without loss of generality (by symmetry) that \(C_6\) does not intersect S. Take \(S' := V(e_1) \cup (S \setminus V(C))\) and observe that \(\vert S'\vert \le \vert S\vert \). We show \(G-S'\) is outerplanar using Lemma 2.3 on the edge \(e_7\).

    We first show for all connected components \(C'\) of \((G-S') - V(e_7)\) that \((G-S')\langle C'\rangle \) is outerplanar. Since \(S' \cap V(C) = \emptyset \) we have that C is a connected component of \(G-S'-V(e_1)-V(e_7) = (G-S')-V(e_7)\). Clearly \((G-S') \langle C\rangle \) is outerplanar since it is a subgraph of \(G\langle C\rangle \). Any other connected component \(C'\) of \(G-S'-V(e_7)\) is a connected component of \(G-S'-V(e_7)-V(C)\), so then \((G-S')\langle C'\rangle \) is a subgraph of \(G-S'-V(C)\). Since both endpoints of \(e_4\) are in C we have that \(G-S'-V(C)\) is a subgraph of \(G\setminus e_4-S\), which is outerplanar. Hence \((G-S') \langle C'\rangle \) is outerplanar.

    It remains to show that there do not exist three induced internally vertex-disjoint paths in \((G-S')\setminus e_7\) connecting the endpoints of \(e_7\). Since \(C_6\) does not intersect S or \(S'\) and \(V(C_6) \cap V(e_4) = \emptyset \) we have that \(C_6 \setminus e_7\) is a path connecting the endpoints of \(e_7\) in \((G-S)\setminus \{e_4,e_7\}\) and in \((G-S')\setminus e_7\). By shortcutting we obtain an induced path \(P^*\) in \((G-S)\setminus \{e_4,e_7\}\) and in \((G-S')\setminus e_7\), so that \(P^*\) connects the endpoints of \(e_7\) and its internal vertices are all contained in \(C_6\). Suppose for a contradiction that \((G-S') \setminus e_7\) contains three induced internally vertex-disjoint paths \(P_1, P_2, P_3\) connecting the endpoints of \(e_7\). Observe that if such a path \(P_i\) in \((G-S') \setminus e_7\) intersects V(C), then its interior vertices belong entirely to V(C), since \(N_G(C) = V(e_1) \cup V(e_7)\) while \(V(e_1) \subseteq S'\). If two paths \(P_i, P_j\) out of \(\{P_1, P_2, P_3\}\) intersect V(C), then we contradict Lemma 2.4 applied to the edge \(e_7\) of the outerplanar subgraph \(G[V(C) \cup V(e_7)]\) since C is a connected component of \(G[V(C) \cup V(e_7)] - V(e_7)\) and would contain the interiors of two internally vertex-disjoint (uv) paths. Hence at most one path \(P_i\) intersects V(C), while the remaining two paths avoid V(C) and therefore also exist in \((G-S) \setminus \{e_4, e_7\}\). But then we can replace \(P_i\) by \(P^*\) to obtain three induced internally vertex-disjoint paths in \((G-S) \setminus \{e_4,e_7\}\) connecting the endpoints of \(e_7\), contradicting the outerplanarity of \((G-S) \setminus e_4\) by Lemma 2.3. This shows also the second condition of Lemma 2.3 is satisfied, hence \(G-S'\) is outerplanar.

  • Otherwise we are in one of the following cases: (1) \(\vert N_G[C] \cap S\vert \le 1\), or (2) \(\vert N_G[C] \cap S\vert = 2\) and S intersects both \(C_1\) and \(C_6\). We show that \(G-S\) is outerplanar.

Claim 4.10

Suppose the preconditions of Reduction Rule 7 hold, \(S \subseteq V(G)\), \(G \setminus e_4 - S\) is outerplanar, and either \(\vert N_G[C] \cap S\vert \le 1\) or \(\vert N_G[C] \cap S\vert = 2\) and S intersects both \(C_1\) and \(C_6\). Then any path in \(G \setminus e_4 - S\) from an endpoint of \(e_1\) to an endpoint of \(e_7\) intersects V(C).

Proof

First we argue that at least one of \(C_{1,3}, C_{3,5}, C_{5,7}\) is disjoint from S. If S intersects \(C_1\) and \(C_6\), then S cannot intersect \(C_{3,5}\) since \(C_1\)\(C_6\), and \(C_{3,5}\) are vertex-disjoint. If \(C_1\) or \(C_6\) does not intersect S then by assumption \(\vert N_G[C] \cap S\vert \le 1\) so S cannot intersect both \(C_{1,3}\) and \(C_{5,7}\) as they are vertex-disjoint. Hence S is disjoint from at least one of \(C_{1,3}\), \(C_{3,5}\), or \(C_{5,7}\).

For the sake of contradiction, suppose that there is a path \(P_z\) in \(G \setminus e_4 - (S \cup C)\) which connects \(z_1 \in V(e_1)\) to \(z_7 \in V(e_7)\). First consider the case \(V(C_{3,5}) \cap S = \emptyset \). Recall the paths \(P_x,P_y\) defined in the beginning of the proof. Let \(P'_x\) (resp. \(P'_y\)) be the subpath of \(P_x\) (resp. \(P_y\)) from \(x_1 \in V(e_1)\) to \(x_3 \in V(e_3)\) (resp. \(y_1 \in V(e_1)\) to \(y_3 \in V(e_3)\)). If \(\vert N_G[C] \cap S\vert = 2\), then S intersects \(C_6\), which is disjoint from \(V(P'_x) \cup V(P'_y)\). We therefore have \(\vert (V(P'_x) \cup V(P'_y)) \cap S\vert \le 1\) and by disjointness of \(P_x,P_y\) we infer that one of the paths \(P'_x, P'_y\) is disjoint from S; assume w.l.o.g. that it is \(P'_x\). Let \(P''_x\) be \(P'_x\) if \(z_1 \in V(P'_x)\) or \(P'_x\) concatenated with \(e_1\) otherwise. Then \(P''_x\) connects \(V(e_3)\) to \(z_1\), it is internally vertex disjoint from \(C_{3,5}\) and, since \(z_1 \not \in S\), it is vertex-disjoint from S. Using a symmetric argument we can construct a path, disjoint from S, which connects \(V(e_5)\) to \(z_7\). By concatenating these paths with \(P_z\) we obtain that there is a connected component of \((G \setminus e_4 - S) - V(C_{3,5})\) which is adjacent to at least two vertices on the cycle \(C_{3,5}\): one from \(V(e_3)\) and the other one from \(V(e_5)\). Since \(V(e_4)\) separates \(V(e_3)\) from \(V(e_5)\) in \(G\langle C\rangle \), these vertices are non-consecutive on the cycle \(C_{3,5}\). By Lemma 2.6, this contradicts the assumption that \(G \setminus e_4 - S\) is outerplanar.

It remains to consider the case \(V(C_{1,3}) \cap S = \emptyset \), as the case \(V(C_{5,7}) \cap S = \emptyset \) is symmetric. We have \(V(C_1) \subseteq V(C_{1,3})\) so \(V(C_1) \cap S =\emptyset \) and by the assumption \(\vert N_G[C] \cap S\vert \le 1\). Let \(P'_x\) (resp. \(P'_y\)) be the subpath of \(P_x\) (resp. \(P_y\)) from \(x_3 \in V(e_3)\) to \(x_7 \in V(e_7)\) (resp. \(y_3 \in V(e_3)\) to \(y_7 \in V(e_7)\)). Recall that neither of \(P_x, P_y\) goes through \(e_4\) as its endpoints lie on each of \(P_x, P_y\). By disjointness of \(P_x,P_y\) we infer that one of the paths \(P'_x, P'_y\) is disjoint from S; assume w.l.o.g. that it is \(P'_x\). Similarly as before, we define \(P''_x\) to be \(P'_x\) if \(z_7 \in V(P'_x)\) or \(P'_x\) concatenated with \(e_7\) otherwise. Then \(P''_x\) connects \(V(e_3)\) to \(z_7\) in \(G\langle C\rangle \setminus e_4 - S\) and it is internally vertex disjoint with \(C_{1,3}\). By concatenating \(P''_x\) with \(P_z\) we obtain that there is a connected component of \((G \setminus e_4 - S) - V(C_{1,3})\) which is adjacent to two non-consecutive vertices on the cycle \(C_{1,3}\) (\(z_1 \in V(e_1)\) and the other one from \(V(e_3)\)). By Lemma 2.6, this contradicts the assumption that \(G \setminus e_4 - S\) is outerplanar.

Using this structural property we complete the proof of the third case. We start by defining two edges \(e_a\) and \(e_b\), whose endpoints are disjoint from S, as follows; see Fig. 5. If S intersects both \(C_1\) and \(C_6\) then take \(e_a = e_3\) and \(e_b = e_5\), otherwise we have \(\vert N_G[C] \cap S\vert \le 1\) so at least one of \(e_a \in \{e_2,e_3\}\) is not hit by S. Similarly there is an edge \(e_b \in \{e_5,e_6\}\) that does not intersect S. Now note that \(\{e_1,e_a,e_4,e_b,e_7\}\) is an order-respecting matching in \(G\langle C\rangle \)\(N_G(V(e_a)) \subseteq N_G[C]\), and \(N_G(V(e_b)) \subseteq N_G[C]\).

To show \(G-S\) is outerplanar we use Lemma 2.3 on the edge \(e_a\), i.e., we show for any connected component H of \(G-S-V(e_a)\) that \((G-S)\langle H\rangle \) is outerplanar and there do not exist three induced internally vertex-disjoint paths in \((G-S) \setminus e_a\) connecting both endpoints of \(e_a\).

To prove the latter, observe that any induced path in \((G-S) \setminus e_a\) is also an induced path in \(G\setminus e_a\) and by Claim 4.10 they cannot contain a subpath from an endpoint of \(e_1\) to an endpoint of \(e_7\). Now by Claim 4.9 we have any such path is an induced path in \(G\langle C\rangle \setminus e_a\). Since \(G \langle C\rangle \setminus e_a\) is outerplanar we have by Lemma 2.3 that there are at most two such paths that are internally vertex-disjoint.

We now show for any connected component H of \(G-S-V(e_a)\) that \((G-S)\langle H\rangle \) is outerplanar. Consider the case that H does not intersect \(C_{a,b}\). Then we know that \((G-S)\langle H\rangle \) does not contain the edge \(e_4\), hence \((G-S)\langle H\rangle \) is a subgraph of \(G\setminus e_4 - S\), which is outerplanar. For the other case, let \(D_1\) be the graph consisting of all connected components of \(G-S-V(e_a)\) intersecting \(C_{a,b}\). It suffices to show that \((G-S)\langle D_1\rangle \) is outerplanar.

We use Lemma 2.3 on the edge \(e_b\) in the graph \(D'_1 := (G-S)\langle D_1\rangle \), i.e., we show for any connected component H of \(D'_1-V(e_b)\) that \(D'_1 \langle H\rangle \) is outerplanar and there are at most two induced internally vertex-disjoint paths in \(D'_1 \setminus e_b\) connecting the endpoints of \(e_b\). Let \(D_2\) be the graph consisting of all connected components of \(D'_1 - V(e_b)\) that intersect \(C_{a,b}\). Since \((e_1,\dots ,e_7)\) is an order-respecting matching in \(G\langle C\rangle \), the graph \(D'_1 \langle D_2\rangle \) is a subgraph of \(G \langle C\rangle \). Hence \(D'_1 \langle D_2\rangle \) is outerplanar.

Any other connected component H of \(D'_1 - V(e_b)\) that does not intersect \(C_{a,b}\) does not contain the edge \(e_4\), hence \(D'_1\langle H\rangle \) is a subgraph of \(G\setminus e_4 - S\), which is outerplanar.

It remains to show that there are at most two induced internally vertex-disjoint paths in \(D'_1 \setminus e_b\) connecting both endpoints of \(e_b\). By Claim 4.10 such paths cannot contain an endpoint of \(e_1\). Since such a path is also an induced path in \(G \setminus e_b\) so then by Claim 4.9 we have that such a path is an induced path in \(G\langle C\rangle \setminus e_b\). Since \(G\langle C\rangle \setminus e_b\) is outerplanar it follows from Lemma 2.3 that there are at most two such internally vertex-disjoint paths. Hence \(D'_1 = (G-S)\langle D_1\rangle \) is outerplanar completing the argument that \(G-S\) is outerplanar.

Fig. 5
figure 5

Illustration of the last case of the proof of Lemma 4.8. The illustration shows a situation to which Reduction Rule 7 is applicable to remove \(e_4\). A solution S in \(G \setminus e_4\) consisting of a singleton vertex is visualized by a cross, leading to choices for \(e_a=e_2\) and \(e_b=e_6\). On the right, the induced subgraph \(D'_1\) and its subgraph \(D'_2\) are highlighted

We have shown in all cases that there exists a set \(S'\) of size at most \(\vert S\vert \) such that \(G - S'\) is outerplanar. \(\square \)

This concludes our final reduction rule. What remains is how they can be applied in polynomial time to reduce the protrusions to a constant size. Since the number of biconnected components can be bounded by a constant (see Lemma 4.4), we proceed to show how to reduce the size of these biconnected components to a constant.

4.3 Reducible Structures in Biconnected Outerplanar Graphs

In this section we use the weak dual of a biconnected outerplanar graph to argue that a large biconnected outerplanar graph contains a structure to which a reduction rule is applicable. We therefore need some terminology to relate objects in a biconnected outerplanar graph G with those in its weak dual \({\widehat{G}}\). The following properties are well-known.

Observation 4.11

[21, Corollary 6] Any biconnected outerplanar graph on at least three vertices has a unique Hamiltonian cycle.

Observation 4.12

[20] The weak dual of a biconnected outerplanar graph is a tree.

It is justified to speak of the weak dual of a biconnected outerplanar graph, since all embeddings in which all vertices lie on the outer face have exactly the same set of faces. This can easily be seen by noting that the unique Hamiltonian cycle has a unique outerplanar embedding up to reversing the ordering, and that all remaining edges are chords of this cycle drawn in the interior. For a biconnected outerplanar graph G we can therefore uniquely classify its edges into exterior edges which lie on the outer face of an outerplanar embedding, and interior edges which bound two interior faces and are chords of the Hamiltonian cycle formed by the outer face.

For a biconnected outerplanar graph G we use \({\widehat{G}}\) to denote its weak dual. For an interior edge \(e \in E(G)\) we use \({\widehat{e}}\) to denote its dual in \({\widehat{G}}\). Note that exterior edges, which lie on the outer face, do not have a dual in \({\widehat{G}}\) since we work with the weak dual. Each bounded face f of an outerplanar embedding of G corresponds to a vertex \({\widehat{f}}\) of \({\widehat{G}}\). For a vertex \({\widehat{f}}\) of \({\widehat{G}}\), we use \(V_G({\widehat{f}})\) to denote the vertices of G incident on face f. We extend this notation to vertex sets and subgraphs of \({\widehat{G}}\), so that \(V_G(\widehat{G'}) = \bigcup _{{\widehat{f}} \in \widehat{G'}} V_G({\widehat{f}})\). Similarly, for an edge \({\widehat{e}}\) of \({\widehat{G}}\) we use \(V_G({\widehat{e}})\) or simply V(e) to denote the endpoints of the edge in G for which \({\widehat{e}}\) is the dual. For \({\widehat{Y}} \subseteq E({\widehat{G}})\) we define \(V_G({\widehat{Y}}) := \bigcup _{{\widehat{e}} \in Y} V_G({\widehat{e}})\).

It is insightful to think about the weak dual \({\widehat{G}}\) of a biconnected outerplanar graph G as prescribing a way in which to build graph G as follows: starting from the disjoint union of the induced cycles forming the interior faces corresponding to \(V({\widehat{G}})\), for each edge \(\widehat{f'}\widehat{f''} = {\widehat{e}} \in E({\widehat{G}})\) glue together the induced cycles for \(f'\) and \(f''\) at the edge e that is common to both cycles. Since each interior face is an induced cycle and therefore biconnected, while gluing biconnected subgraphs along edges preserves biconnectivity, we observe the following.

Observation 4.13

If G is a biconnected outerplanar graph and \({\widehat{R}}\) is a nonempty connected subtree of its weak dual \({\widehat{G}}\), then \(G[V_G({\widehat{R}})]\) is biconnected.

Suppose we have a connected subtree \({\widehat{R}}\) of the weak dual \({\widehat{G}}\) of a biconnected outerplanar graph G. In the process of constructing G from the induced cycles formed by its faces, the subgraph \(G[{\widehat{R}}]\) only becomes adjacent to vertices outside the subgraph by gluing faces outside \({\widehat{R}}\) onto faces of \({\widehat{R}}\). Since these are glued along edges whose dual has one endpoint inside and one endpoint outside \({\widehat{R}}\), we observe the following.

Observation 4.14

Let G be a biconnected outerplanar graph and let \({\widehat{R}}\) be a connected subtree of its weak dual \({\widehat{G}}\). Let \({\widehat{Y}} \subseteq E({\widehat{G}})\) denote those edges which have exactly one endpoint in \({\widehat{R}}\). The only vertices of \(V_G({\widehat{R}})\) which have a neighbor outside \(V_G({\widehat{R}})\) are those in \(V_G({\widehat{Y}})\).

From these observations, we deduce the following lemma stating how a subtree of \({\widehat{G}}\) that is attached to the rest of \({\widehat{G}}\) at a single edge, represents a connected subgraph.

Lemma 4.15

Let G be a biconnected outerplanar graph, let \({\widehat{e}} \in E({\widehat{G}})\), and let \({\widehat{R}}\) be one of the two trees in \({\widehat{G}} \setminus {\widehat{e}}\). For \(C = V_G({\widehat{R}}) \setminus V_G({\widehat{e}})\) the graph G[C] is connected and \(N_G(C) = V_G({\widehat{e}})\).

Proof

By Observation 4.13, the graph \(G[V_G({\widehat{R}})]\) is biconnected, so by Observation 4.11 it has a Hamiltonian cycle. It is easy to see that \({\widehat{R}}\) is the weak dual of \(G[V_G({\widehat{R}})]\). The latter graph contains edge e, since it is incident on both faces represented by the endpoints of \({\widehat{e}}\), one of which has its dual vertex in \({\widehat{R}}\). Since \({\widehat{e}} \notin E({\widehat{R}})\), the edge e is an exterior edge of \(G[{\widehat{R}}]\). So e is an edge of the unique Hamiltonian cycle of \(G[{\widehat{R}}]\), which implies that the removal of V(e) leaves that subgraph connected. Hence \(V_G({\widehat{R}}) \setminus V_G({\widehat{e}})\) is a connected subgraph of G. By Observation 4.14 the only vertices of \(V_G({\widehat{R}})\) which have neighbors in G outside \(V_G({\widehat{R}})\) are those in \(V_G({\widehat{e}})\), which proves that \(G[{\widehat{R}}] - V_G({\widehat{e}})\) is a connected component of \(G - V_G({\widehat{e}})\). Its neighborhood in G is equal to \(V_G({\widehat{e}})\) since the predecessor and successor of the vertices of \(V_G({\widehat{e}})\) on the Hamiltonian cycle of \(G[{\widehat{R}}]\) are contained in \(G[{\widehat{R}}] - V_G({\widehat{e}})\). \(\square \)

The following lemma gives a condition under which removing the endpoints of a matching of two edges preserves connectivity. Recall the definition of order-respecting matching (Definition 4.6).

Lemma 4.16

If G is a biconnected outerplanar graph and \(M = \{e_1, e_2, e_3\}\) is an order-respecting matching in G such that \(e_1\) and \(e_3\) are exterior edges while \(e_2\) is an interior edge, then the subgraph \(G' := G - V(\{e_1, e_3\})\) is connected and \(N_G(G') = V(\{e_1, e_3\})\).

Proof

Consider the unique Hamiltonian cycle C of G. The exterior edges \(e_1\) and \(e_3\) lie on C while the interior edge \(e_2\) is a chord of C. Since M is an order-respecting matching, the vertex sets \(V(e_1)\) and \(V(e_3)\) lie in different connected components of \(G - V(e_2)\). Partition the cycle C into two vertex-disjoint \((V(e_1), V(e_3))\)-paths \(C_1, C_2\), and let \(C'_1, C'_2\) be the paths formed by the interior vertices of \(C_1\) and \(C_2\). Since \(V(e_2)\) separates \(V(e_1)\) and \(V(e_3)\), the paths \(C'_1,C'_2\) are nonempty and both contain a vertex of \(V(e_2)\). This implies that the graph \(G[C'_1 \cup C'_2]\) is connected, since the edge \(e_2\) connects the two paths. Since \(C'_1 \cup C'_2\) span all vertices of G except \(V(\{e_1, e_3\})\) we have \(G' = G[V(C'_1) \cup V(C'_2)]\), and since each vertex of \(V(\{e_1, e_3\})\) is adjacent to an endpoint of \(C'_1\) or \(C'_2\), the lemma follows. \(\square \)

The following shows that the order-respecting property of a matching can be deduced from its path-like structure in the dual.

Lemma 4.17

Let G be a biconnected outerplanar graph. If \({\widehat{P}}\) is a path in \({\widehat{G}}\) and \(M = \{e_1, \ldots , e_\ell \}\) is a matching in G such that the dual edges \({\widehat{e}}_1, \ldots , {\widehat{e}}_\ell \) appear on \({\widehat{P}}\) in the order as given by the indices, but not necessarily consecutively, then M is an order-respecting matching in G.

Proof

For \(1< i < \ell \) let \({\widehat{G}}_i\) denote the tree in \({\widehat{G}} \setminus \widehat{e_i}\) that contains \({\widehat{e}}_1\). Since the edges \({\widehat{e}}_i\) lie on \({\widehat{P}}\) in order of increasing index, tree \({\widehat{G}}_i\) contains \(\{{\widehat{e}}_j \mid j < i\}\) but no edge of \(\{{\widehat{e}}_j \mid j > i\}\). Since the edges in the matching M are vertex-disjoint, this implies that \(V_G({\widehat{G}}_i)\) contains \(V_G({\widehat{e}}_j)\) for \(j < i\) but contains no vertex of \(V_G({\widehat{e}}_j)\) for \(j>i\).

By Lemma 4.15, we have \(N_G(V_G({\widehat{G}}_i) \setminus V_G({\widehat{e}}_i)) = V_G({\widehat{e}}_i)\) for all \(1< i < \ell \), which implies that the only vertices of \(V_G({\widehat{G}}_i)\) which have neighbors outside that set are those in \(V_G({\widehat{e}}_i)\). Hence the removal of \(V_G({\widehat{e}}_i)\) breaks all paths from endpoints of \(V_G({\widehat{e}}_j)\) to endpoints of \(V_G({\widehat{e}}_r)\) for \(j< i < r\). This establishes that the matching M is order-respecting. \(\square \)

The previous observation leads to the following lemma. Intuitively, it gives a property similar to that of a tree decomposition, saying that the vertices of \({\widehat{G}}\) representing faces containing a fixed vertex \(t \in V(G)\) form a connected subtree of \({\widehat{G}}\).

Lemma 4.18

Let G be a biconnected outerplanar graph and let \(t \in V(G)\). If interior faces f and \(f'\) both contain t, then \(t \in V(e)\) for each edge \({\widehat{e}}\) on the unique \(({\widehat{f}}, \widehat{f'})\)-path \({\widehat{P}}\) in \({\widehat{G}}\).

Proof

Let \({\widehat{e}}\) be an edge on \({\widehat{P}}\) and consider the two trees \({\widehat{G}}_1,{\widehat{G}}_2\) of \({\widehat{G}} \setminus {\widehat{e}}\). Since \({\widehat{e}}\) lies on the path between \({\widehat{f}}\) and \({\widehat{f}}'\), with \(t \in V_G({\widehat{f}}) \cap V_G({\widehat{f}}')\), we have \(t \in V_G({\widehat{G}}_1) \cap V_G({\widehat{G}}_2)\). By applying Observation 4.14 twice, once for \({\widehat{G}}_1\) and once for \({\widehat{G}}_2\), the graph \(G - V_G({\widehat{e}})\) has one connected component on vertex set \(V_G({\widehat{G}}_1) \setminus V_G({\widehat{e}})\) and one connected component on vertex set \(V_G({\widehat{G}}_2) \setminus V_G({\widehat{e}})\), which implies \(V_G({\widehat{G}}_1) \cap V_G({\widehat{G}}_2) \subseteq V_G({\widehat{e}}) = V(e)\). Since t belongs to \(V_G({\widehat{G}}_1) \cap V_G({\widehat{G}}_2)\), we have \(t \in V(e)\). \(\square \)

The next lemma analyzes how a star of edges incident on a common vertex x are represented in the weak dual.

Lemma 4.19

Let G be a biconnected outerplanar graph and let \({\widehat{P}}\) be a path in \({\widehat{G}}\) consisting of consecutive vertices and edges \({\widehat{f}}_0, {\widehat{e}}_1, {\widehat{f}}_1, {\widehat{e}}_2, {\widehat{f}}_2, \ldots , {\widehat{e}}_\ell , {\widehat{f}}_{\ell }\) of \({\widehat{G}}\), such that \(x \in V(e_1) \cap V(e_\ell )\). Then \(x \in V(e_i)\) for all \(i \in [\ell ]\), and letting \(v_i\) denote the endpoint of \(e_i\) other than x for each i, the vertices \(\{v_i \mid i \in [\ell ]\}\) lie in order of increasing index on an induced \((v_1,v_\ell )\)-path P in \(G[V_G(\{{\widehat{f}}_1, \ldots , {\widehat{f}}_{\ell -1}\})]-x\) that contains no other neighbors of x.

Proof

Since \({\widehat{f}}_0\) (respectively \({\widehat{f}}_{\ell }\)) is incident on \({\widehat{e}}_1\) (\({\widehat{e}}_\ell \)) and \(x \in V(e_1) \cap V(e_\ell )\), we have \(x \in V_G({\widehat{f}}_0) \cap V_G({\widehat{f}}_{\ell })\). By Lemma 4.18, this implies that \(x \in V(e_i)\) for all \(i \in [\ell ]\).

Since G is a simple graph without parallel edges, the fact that \(x \in V(e_i)\) for all \(i \in [\ell ]\) implies that the other endpoints of the edges \(e_i\) are all distinct. Let \(\{v_i\} = V(e_i) \setminus \{x\}\) for each i. Since \({\widehat{P}}\) is a path in \({\widehat{G}}\), we can construct the graph \(G' := G[V_G(\{{\widehat{f}}_1, \ldots , {\widehat{f}}_{\ell -1}\})]\) from disjoint induced cycles for the faces \(f_1, \ldots , f_{\ell -1}\) by gluing them back-to-back along the edges \(e_1, \ldots , e_\ell \), all of which are incident on x. Note that we do not use the faces \(f_0\) and \(f_\ell \). Since in this construction we glue disjoint cycles together at distinct edges in a path-like sequence, and all edges along which we glue are incident on x, it follows that \(G' - x\) is an induced path. It contains \(v_1, \ldots , v_\ell \) in this order and no other neighbors of x. \(\square \)

The last property of a weak dual we need states how removing two nonadjacent vertices incident on a common interior face separates the graph.

Lemma 4.20

Let G be a biconnected outerplanar graph and let \({\widehat{G}}\) be its weak dual. Let \({\widehat{f}} \in V({\widehat{G}})\) and let \(u,v \in V(G)\) be nonadjacent vertices incident on f. Let \(E_1, E_2\) be the edge sets of the two (uv)-subpaths along the boundary of f, respectively. Let \({\widehat{G}}_i\) for \(i \in [2]\) denote the union of all trees \({\widehat{R}}\) of \({\widehat{G}} - {\widehat{f}}\) for which the unique edge connecting \({\widehat{R}}\) to \({\widehat{f}}\) is the dual of an edge in \(E_i\). Then the connected components of \(G - \{u,v\}\) are \(G[(V(E_i) \cup V_G({\widehat{G}}_i)) \setminus \{u,v\}]\) for \(i \in [2]\).

Proof

Consider the process of constructing G from the disjoint cycles bounding its interior faces as dictated by the weak dual \({\widehat{G}}\). Since any interior face is an induced cycle, removing the nonadjacent vertices uv from the induced cycle bounding f separates the cycle into exactly two paths \(P_1, P_2\). Since weak dual witnesses that G can be constructed by gluing the subgraphs \(G[{\widehat{R}}]\) for \({\widehat{R}}\) a tree of \({\widehat{G}} - {\widehat{f}}\) onto an edge of the cycle bounding f, the interior vertices of the paths \(P_1,P_2\) belong to different connected components of \(G - \{u,v\}\). Since each subgraph \(G[{\widehat{R}}]\) is glued onto at least one interior vertices of a path \(P_1,P_2\), the graph \(G - \{u,v\}\) has exactly two connected components and their contents are as claimed; note that \(V(E_i) \setminus \{u,v\}\) are exactly the interior vertices of path \(P_i\). \(\square \)

Using these properties we can now prove that a large biconnected outerplanar graph contains a reducible structure. Each of the three types of structures below can be reduced by one of our reduction rules.

Lemma 4.21

Let G be a biconnected outerplanar graph and let \(T \subseteq V(G)\) be a nonempty subset of vertices with \(\vert T\vert \le 4\). If \(\vert V(G)\vert > 6288\), then in polynomial time we can identify one of the following reducible structures in G:

  • two (possibly adjacent) vertices uv such that there is a component C of \(G- \{u,v\}\) that does not contain any vertex of T, for which \(\vert V(C)\vert > 2\),

  • a matching \(e_1,\ldots ,e_7\) in G, such that there is a single connected component C of \(G - (V(e_1) \cup V(e_7))\) which contains \(\{e_2, \ldots , e_6\}\) but no vertex from T, such that \(N_G(C) = V(e_1) \cup V(e_7)\), the graph \(G\langle C\rangle \) is biconnected, and \(e_1,\ldots ,e_7\) is an order-respecting matching in \(G \langle C\rangle \), or

  • a vertex \(x \in V(G)\) and five vertices \(v_1, \ldots , v_5 \in N_G(x)\) that lie, in order of increasing index, on an induced path P in \(G-x\) from \(v_1\) to \(v_5\), such that \(N_G(x) \cap V(P) = \{v_1, \ldots , v_5\}\), and such that the connected component of \(G - \{v_1, v_5, x\}\) which contains \(P - \{v_1, v_5\}\) contains no vertex from T.

Proof

We will refer to vertices from T as terminals. For each \(t \in T\), fix an interior face f(t) of G incident on t and define \(\widehat{f(T)} := \{ \widehat{f(t)} \mid t \in T\}\). Let \({\widehat{G}}_T\) be the minimal subtree of the weak dual \({\widehat{G}}\) spanning \(\widehat{f(T)}\). We say a vertex of \({\widehat{G}}_T\) is important if it belongs to \(\widehat{f(T)}\) or has degree unequal to two in the graph \({\widehat{G}}_T\). By minimality of \({\widehat{G}}_T\) each leaf of \({\widehat{G}}_T\) belongs to \(\widehat{f(T)}\), from which it easily follows that the edges of \({\widehat{G}}_T\) can be partitioned into at most five paths between important vertices, such that no interior vertex of such a path is important. The number five corresponds to the fact that any tree on at most four leaves without vertices of degree two has at most two internal vertices, so at most six vertices and hence five edges in total. The following claim shows the relevance of the set of important vertices.

Claim 4.22

Let \({\widehat{R}}\) be a connected subtree of \({\widehat{G}}\) and let

$$\begin{aligned} S = \{V(e) \mid {\widehat{e}} \text { has exactly one endpoint in }{\widehat{R}}\}. \end{aligned}$$

If \({\widehat{R}}\) contains no important vertex of \({\widehat{G}}_T\), then \(V_G({\widehat{R}}) \setminus S\) contains no vertex of T.

Proof

Suppose there exists \(t \in T\) with \(t \in V_G({\widehat{R}})\), so t lies on a face f whose dual \({\widehat{f}}\) is in \({\widehat{R}}\). Since \({\widehat{R}}\) contains no important vertex, some tree \({\widehat{R}}'\) of \({\widehat{G}} - V({\widehat{R}})\) contains the chosen face \(\widehat{f(t)}\) representing t. The edge \({\widehat{e}}\) connecting \({\widehat{R}}\) to \({\widehat{R}}'\) lies on the path between \({\widehat{f}}\) and \(\widehat{f(t)}\) in \({\widehat{G}}\) and has exactly one endpoint in \({\widehat{R}}\). By Lemma 4.18, we have \(t \in V(e)\) and therefore \(t \in S\).

We derive a number of claims showing how to find a reducible structure under certain conditions. After presenting these claims, we show that at least one of them guarantees the existence of a reducible structure if G is sufficiently large. The first claim shows that if any subtree of \({\widehat{G}}\) attaches to \({\widehat{G}}_T\) at a single edge and represents more than two vertices other than the attachments, we find a reducible structure of the first type.

Claim 4.23

Let \({\widehat{R}}\) be a connected component of \({\widehat{G}} - V({\widehat{G}}_T)\), which is a tree, and let \({\widehat{e}}\) be the unique edge of \({\widehat{G}}\) connecting \({\widehat{R}}\) to \({\widehat{G}}_T\). If \(\vert V_G({\widehat{R}}) \setminus V(e)\vert > 2\), then G contains a reducible structure.

Proof

By Lemma 4.15 we know that \(V_G({\widehat{R}}) \setminus V(e)\) is the vertex set of a connected component of \(G - V(e)\), and by Claim 4.22 this component contains no terminals since \({\widehat{G}}_T\) spans all important vertices. As the number of vertices in the connected component is larger than two, this yields a reducible structure of the first type for \(\{u,v\} = V(e)\).

Next we show that if \({\widehat{G}}_T\) contains a long path of non-important vertices, we find a reducible structure of the second or third type.

Claim 4.24

Let \({\widehat{P}}\) be a subpath of \({\widehat{G}}_T\) such that no vertex of \({\widehat{P}}\) is important. If \(\vert V({\widehat{P}}')\vert > 6 \cdot 4 + 1\), then G contains a reducible structure.

Proof

Consider such a subpath \({\widehat{P}}\) of \({\widehat{G}}_T\). Let \({\widehat{e}}_0, \ldots , {\widehat{e}}_{24}\) be the first 25 edges on \({\widehat{P}}\). Partition these into sets \({\widehat{E}}_1, \ldots , {\widehat{E}}_6\) of four consecutive edges each, and let \({\widehat{E}}_7\) be a singleton set with the next edge. Observe that for any two edges \({\widehat{e}}_i, {\widehat{e}}_j\) on \({\widehat{P}}\) with \(i < j-1\), the subtree \({\widehat{R}}\) of \({\widehat{G}} \setminus \{{\widehat{e}}_i, {\widehat{e}}_j\}\) containing \({\widehat{e}}_{i+1}\) contains no important vertex since the only vertices of \({\widehat{G}}_T\) it contains belong to \({\widehat{P}}\); here we exploit the fact that all vertices of degree three or more in \({\widehat{G}}_T\) are important. Hence by Claim 4.22 the set \(V_G({\widehat{R}}) \setminus V(\{e_i, e_j\})\) contains no vertex of T. We will use this property below to find a reducible structure of the second or third type via a case distinction.

Suppose first that there exists \(i \in [6]\) such that \(V_G({\widehat{e}}_{4i}) \cap V_G({\widehat{e}}_{4 (i+1)}) \ne \emptyset \), that is, some vertex \(x \in V(G)\) is a common endpoint of \(e_{4i}\) and \(e_{4 (i+1)}\). Let \({\widehat{E}}'_i := {\widehat{E}}_i \cup \{{\widehat{e}}_{4(i+1)}\}\) and let \(E'_i := \{e \mid {\widehat{e}} \in {\widehat{E}}'_i\}\). Let \({\widehat{P}}'\) be the four vertices of \({\widehat{G}}\) which are incident on two edges of \({\widehat{E}}_i\), that is, the four internal vertices of the path formed by the five edges \({\widehat{E}}_i\). By applying Lemma 4.19 to the path formed by \({\widehat{E}}_i\) we find \(x \in V(e)\) for each \(e \in E'_i\) while the other endpoints \(v_1, \ldots , v_5\) of the edges in \(E'_i\) are all distinct and lie on an induced \((v_1,v_5)\)-path P in \(G[V_G({\widehat{P}}')] - x\) containing no other neighbors of x. Let \({\widehat{R}}\) be the tree of \({\widehat{G}} \setminus \{{\widehat{e}}_{4i}, {\widehat{e}}_{4(i+1)}\}\) containing \({\widehat{e}}_{4i+1}\) and note that \(V_G(\{{\widehat{e}}_{4i}, {\widehat{e}}_{4(i+1)}\}) = \{v_1, v_5, x\}\) and \(V_G({\widehat{R}}) \supseteq V_G({\widehat{P}}')\). By Observation 4.14, the only vertices of \(V_G({\widehat{R}})\) which have neighbors outside \(V_G({\widehat{R}})\) are those in \(V_G(\{{\widehat{e}}_{4i}, {\widehat{e}}_{4(i+1)}\}) = \{v_1, v_5, x\}\). Consider the connected component C of \(G - \{v_1, v_5, x\}\) that contains \(P - \{v_1, v_5\}\). By the previous argument, \(V(C) \subseteq V_G({\widehat{R}})\) while the construction ensures \(V(C) \cap \{v_1, v_5, x\} = \emptyset \). By the argument in the first paragraph of this claim, \(V_G({\widehat{R}}) \setminus V(\{e_i, e_j\}) = V_G({\widehat{R}}) \setminus \{v_1, v_5, x\}\) contains no vertex of T, implying that no vertex of T belongs to C. Hence G contains a reducible structure of the third type.

Now suppose the previous case does not apply; then the set \(M = \{e_{4i} \mid 0 \le i \le 6\}\) is a matching in G. Since \({\widehat{M}}\) lies on the path \({\widehat{P}}\) in \({\widehat{G}}\) in the relative order given by the indices, by Lemma 4.17 the set M is an order-respecting matching in G, which implies it is order-respecting in all subgraphs containing this matching. Let \({\widehat{R}}\) be the tree of \({\widehat{G}} \setminus \{{\widehat{e}}_{0}, {\widehat{e}}_{24}\}\) containing the rest of \({\widehat{M}}\). By Observation 4.13, the graph \(G[V_G({\widehat{R}})]\) is biconnected. Since for each \(0 \le i \le 6\) the tree \({\widehat{R}}\) contains a vertex incident on \({\widehat{e}}_{4i}\), which corresponds to a face in G incident on \(e_{4i}\), it follows that \(G[V_G({\widehat{R}})]\) contains all edges of M. Since \({\widehat{R}}\) is the weak dual of \(G[V_G({\widehat{R}})]\), while \({\widehat{R}}\) does not contain the edges \({\widehat{e}}_0\) and \({\widehat{e}}_{24}\), the edges \(e_0, e_{24}\) are exterior edges of \(G[V_G({\widehat{R}})]\); since \({\widehat{e}}_4 \in E({\widehat{R}})\) the edge \(e_4\) is an interior edge of \(G[V_G({\widehat{R}})]\). By applying Lemma 4.16 to the order-respecting matching \(\{e_0, e_4, e_{24}\}\) in the biconnected graph \(G[V_G({\widehat{R}})]\), we find that \(C = G[V_G({\widehat{R}})] - V(\{e_0, e_{24}\})\) is connected and contains a vertex adjacent to each member of \(V(\{e_0, e_{24}\})\), so that \(G \langle C\rangle = G[V_G({\widehat{R}})]\) is biconnected and contains the order-respecting matching M. By the argument in the first paragraph, the set \(V_G({\widehat{R}}) \setminus V(\{e_0, e_{24}\})\) contains no vertex of T, so that C contains no vertex of T. Since Observation 4.14 shows that no vertex of C has a neighbor outside \(V(\{e_0, e_{24}\})\) it follows that C is a connected component of \(G - V(\{e_0, e_{24}\})\). Hence we find a reducible structure of the second type.

As the last ingredient, we show that if any interior face of G contains more than 16 vertices, we find a reducible structure.

Claim 4.25

If G contains an interior face f that is incident on more than 16 vertices, then G contains a reducible structure of the first type.

Proof

Let f be a bounded face in G and consider the cycle bounding f on the edge set E(f). We call an edge e that lies on f a portal if the tree in \({\widehat{G}} \setminus \{{\widehat{e}}\}\) that does not contain \({\widehat{f}}\) contains a vertex of \(\widehat{f(T)}\). Since \(\vert f(T)\vert \le 4\) at most four edges on f are portals. By Lemma 4.18, if a terminal t lies on f but \(f(t) \ne {\widehat{f}}\), then the edge e for which \({\widehat{e}}\) lies on the path from \({\widehat{f}}\) to \(\widehat{f(t)}\) is a portal.

Let \(T' := (T \cap V(f)) \cup \{ V(e) \mid e \in E(f) \text { is a portal} \}\). Since each terminal t for which \(\widehat{f(t)} \ne {\widehat{f}}\) contributes two adjacent vertices to \(T'\), while each terminal t with \(\widehat{f(t)} = {\widehat{f}}\) contributes one vertex, it follows that \(T'\) can be partitioned into at most four sets of two vertices each, such that the vertices in each subset are consecutive along the face. Since f is incident on more than 16 vertices, this implies that there is a subpath P of the boundary of f consisting of five vertices, whose three interior vertices do not belong to \(T'\). Let \(\{u,v\}\) be the endpoints of P. Let \({\widehat{G}}_P\) denote the union of all trees \({\widehat{R}}\) of \({\widehat{G}} - {\widehat{f}}\) for which the unique edge \({\widehat{e}}\) connecting \({\widehat{R}}\) to \({\widehat{f}}\) satisfies \(e \in E(P)\). By Lemma 4.20 there is a connected component C of \(G - \{u,v\}\) on vertex set \((V(P) \cup V_G({\widehat{G}}_P)) \setminus \{u,v\}\). This implies that all three interior vertices of P belong to C.

We conclude the proof by showing that C contains no vertex of T. To see this, note first that \(V(P) \setminus \{u,v\}\) contains no vertex of T by choice of P. Since all endpoints of portals belong to \(T'\), while no interior vertex of P belongs to \(T'\), it follows that no edge of P is a portal. Consequently, for each edge \(e \in E(P)\) the tree of \({\widehat{G}} \setminus {\widehat{e}}\) that does not contain \({\widehat{f}}\) does not contain any vertex of \(\widehat{f(T)}\). We exploit this in the following argument. Suppose there exists \(t \in T\) with \(t \in V_G({\widehat{G}}_P)\), and let e be the edge of P such that \({\widehat{G}} \setminus {\widehat{e}}\) contains a tree \({\widehat{R}}\) with \(t \in V_G({\widehat{R}})\). Since e is not a portal, \(\widehat{f(t)}\) does not belong to \({\widehat{R}}\). Hence \(\widehat{f(t)}\) is either equal to \({\widehat{f}}\), or belongs to some tree \({\widehat{R}}'\) of \({\widehat{G}} - {\widehat{f}}\) for which the edge \({\widehat{e}}'\) connecting \(\widehat{R'}\) to \({\widehat{f}}\) satisfies \(e' \notin E(P)\). We consider these cases separately.

  • If \(\widehat{f(t)} = {\widehat{f}}\), then \(t \in V(f)\) and therefore \(t \in T'\). By construction, no interior vertex of P belongs to \(T'\). Since all vertices that belong both to V(f) and to \(V_G({\widehat{G}}_P)\) belong to P, it follows that t is an endpoint of P, so \(t \in \{u,v\}\). This shows that t does not belong to the component C on vertex set \((V(P) \cup V_G({\widehat{G}}_P)) \setminus \{u,v\}\), as required.

  • If \(\widehat{f(t)} \ne {\widehat{f}}\), then \(\widehat{f(t)}\) lies in some tree \({\widehat{R}}'\) of \({\widehat{G}} - {\widehat{f}}\) for which the edge \({\widehat{e}}'\) connecting \({\widehat{R}}'\) to \({\widehat{f}}\) satisfies \(e' \in E(f) \setminus E(P)\), where E(f) are the edges of G bounding face f. Since both \({\widehat{e}}\) and  \({\widehat{e}}'\) lie on the path in \({\widehat{G}}\) between \(\widehat{f(t)}\) and a vertex of \({\widehat{R}}\) representing a face containing t, by Lemma 4.18 we have \(t \in V(e') \cap V(e)\). So t is simultaneously an endpoint of the edge e that lies on P and the edge \(e'\) that lies on face f but not in P. Consequently, t is an endpoint of P and therefore \(t \in \{u,v\}\), showing that t does not belong to the component C on vertex set \((V(P) \cup V_G({\widehat{G}}_P)) \setminus \{u,v\}\).

The preceding argument established that there is a component of \(G - \{u,v\}\) containing at least three vertices and no terminals, which forms a reducible structure of the first kind and completes the proof.

We can now complete the proof of Lemma 4.21 by combining the claims above. Recall from the beginning of the proof that \({\widehat{G}}_T\) is a tree containing at most six important vertices, such that each vertex of \(\widehat{f(T)}\) and each vertex whose degree in \({\widehat{G}}_T\) is unequal to two is important. Removing the important vertices from \({\widehat{G}}_T\) splits it into at most five paths \({\widehat{P}}_1, \ldots , {\widehat{P}}_\ell \) of non-important vertices. If any of these paths has more than 25 vertices, we find a reducible structure via Claim 4.24. Assume that this is not the case; then \({\widehat{G}}_T\) consists of at most \(5 \cdot 25\) non-important and 6 important vertices. If there exists \({\widehat{f}} \in {\widehat{G}}_T\) such that face f contains more than 16 vertices, we find a reducible structure via Claim 4.25. If not, then the faces represented by \({\widehat{G}}_T\) span at most \((5\cdot 25 + 6) \cdot 16\) edges. All remaining vertices of G lie on faces whose duals are not contained in \({\widehat{G}}_T\), and therefore each such vertex lies on a face f for which \({\widehat{f}}\) belongs to some tree \({\widehat{R}}\) of \({\widehat{G}} - V({\widehat{G}}_T)\). When \({\widehat{e}}\) is the edge connecting \({\widehat{R}}\) to \({\widehat{G}}_T\) then e lies on a face represented by \({\widehat{G}}_T\). If for any such tree \({\widehat{R}}\) the number of vertices \(\vert {\widehat{R}} \setminus V(e)\vert \) which are not already accounted for is larger than two, then Claim 4.23 yields a reducible structure. If not, then since the number of attachment edges is bounded by \((5 \cdot 25+6) \cdot 16\), while each attached tree contributes at most two additional vertices, the total number of vertices in G is bounded by \((5 \cdot 25+6) \cdot 16 + 2 \cdot (5 \cdot 25+6) \cdot 16 = 3 (5 \cdot 25 + 6) \cdot 16 = 6288\). Hence any biconnected outerplanar graph with more than this number of vertices contains a reducible structure. The proof above easily turns into a polynomial-time algorithm to find such a structure. \(\square \)

5 Wrapping Up

Finally, we combine the decomposition from Claim 3.26 with the rules that reduce protrusions. If A is sufficiently large, \(G\langle A\rangle \) is outerplanar, and \(\vert N_G(A)\vert \le 4\), we explicitly detect a reducible structure within \(G\langle A\rangle \). First, we use Reduction Rule 4 to reduce the number of biconnected components in \(G \langle A\rangle \). Next, we apply Lemma 4.21 to a biconnected component B of \(G\langle A\rangle \) and the set \(T = \partial _G(B)\). It provides us with one of several reducible structures which match our reduction rules. It is crucial that when C is a subgraph of B and \(C \cap \partial _G(B) = \emptyset \), then the neighborhood of C in both B and G is the same.

We remark that the following lemma can be turned into an iterative procedure that maintains the decomposition from Lemma 3.26 without the need to recompute the set L. However, we state it in the simplest form as our analysis does not keep track of the polynomial in the running time.

Lemma 5.1

Consider a graph G and a vertex set \(A \subseteq {V(G)}\), such that \(\vert A\vert > 25 \cdot 6288\), \(\vert N_G(A)\vert \le 4\), G[A] is connected, and \(G\langle A\rangle \) is outerplanar. There is a polynomial-time algorithm that, given G and A satisfying the conditions above, outputs a proper minor \(G'\) of G, so that \(\mathsf {opd}(G') = \mathsf {opd}(G)\).

Proof Within this proof, we say that replacing graph G with \(G'\) is safe when \(\mathsf {opd}(G') = \mathsf {opd}(G)\). With G and A as specified, we can execute the algorithm from Lemma 4.4. Suppose that it outputs a vertex set \(C \subseteq S\) to which either Reduction Rule 2 or Reduction Rule 4 applies and shrinks the graph. They are safe due to Observation 2.2 and Lemma 4.3. In this case we can terminate the algorithm.

Otherwise Lemma 4.4 provides us with a block-cut tree of \(G\langle A\rangle \) with at most 25 biconnected components, where each such biconnected component B satisfies \(\vert \partial _G(B)\vert \le 4\). By a counting argument we can choose one biconnected component B with more than \(6288\) vertices. We execute the algorithm from Lemma 4.21 for the graph B and the set \(T = \partial _G(B)\). Note that B is a subgraph of \(G \langle A\rangle \), which is outerplanar by the assumption. Depending on the type of returned structure, we select an appropriate reduction rule.

  • Case 1. We find two (possibly adjacent) vertices uv such that there is a component C of \(B - \{u,v\}\) that does not contain any vertex of \(\partial _G(B)\), for which \(\vert V(C)\vert > 2\). Clearly \(N_G(C) \subseteq \{u,v\}\) and \(G \langle C\rangle \) is outerplanar as a subgraph of B. If \(uv \in E(G)\), then we apply Reduction Rule 5 to contract C into a single vertex. This reduction is safe due to Lemma 4.5.

    If \(uv \not \in E(G)\), we apply Reduction Rule 4. The criterion in the statement of the rule can be easily checked in polynomial time. By Lemma 4.1, the replacement operation is equivalent to a series of edge contractions. The safeness follows from Lemma 4.3. Since \(\vert V(C)\vert > 2\), we always perform at least one contraction.

  • Case 2. We obtain a matching \(e_1,\ldots ,e_7\) in B, such that there is a single connected component C of \(B - (V(e_1) \cup V(e_7))\) which contains \(\{e_2, \ldots , e_6\}\) but no vertex from \(\partial _G(B)\), such that \(N_B(C) = V(e_1) \cup V(e_7)\), the graph \(B\langle C\rangle \) is biconnected, and \(e_1,\ldots ,e_7\) is an order-respecting matching in \(B \langle C\rangle \). Since \(C \cap \partial _G(B) = \emptyset \), we get that \(N_G(C) = N_B(C) = V(e_1) \cup V(e_7)\). This allows us to apply Reduction Rule 7 and remove the edge \(e_4\). This is safe thanks to Lemma 4.8.

  • Case 3. We find a vertex \(x \in V(B)\) and five vertices \(v_1, \ldots , v_5 \in N_B(x)\) that lie, in order of increasing index, on an induced path P in \(B-x\) from \(v_1\) to \(v_5\), such that \(N_B(x) \cap V(P) = \{v_1, \ldots , v_5\}\), and such that the connected component C of \(B - \{v_1, v_5, x\}\) which contains \(P - \{v_1, v_5\}\) contains no vertex from \(\partial _G(B)\). This means that C is also the connected component of \(G - \{v_1, v_5, x\}\) which contains \(P - \{v_1, v_5\}\). Furthermore, the path P is also induced in the graph \(G-x\) because B is an induced subgraph of G. The graph \(G\langle C\rangle \) is outerplanar as a subgraph of B and thus Reduction Rule 6 applies so we can remove the edge \(xv_3\). This operation is safe due to Lemma 3.19.

In each case we are able to perform a contraction or removal operation while preserving the outerplanar deletion number of the graph. The claim follows. \(\square \)

It is important that the graph is guaranteed to shrink at each step, so after polynomially many invocations of Lemma 5.1 we must arrive at an irreducible instance. We are now ready to prove the main theorem with the final bound on the size of compressed graph \(2 \cdot (25 \cdot 6288+ 5) \cdot f_5(c,f_3(c))\cdot (k_2+3)^4\) (see Lemmas 3.16 and 3.26), where \(c=40\). Recall that instances (Gk) and \((G',k')\) are equivalent if \(\mathsf {opd}(G) \le k \Leftrightarrow \mathsf {opd}(G') \le k'\).

Theorem

(1.1, restated) The Outerplanar Deletion problem admits a polynomial-time kernelization algorithm that, given an instance (Gk), outputs an equivalent instance \((G',k')\), such that \(k' \le k\), graph \(G'\) is a minor of G, and \(G'\) has \({\mathcal {O}}(k^4)\) vertices and edges. Furthermore, if \(\mathsf {opd}(G) \le k\), then \(\mathsf {opd}(G') = \mathsf {opd}(G) - (k - k')\).

Proof of Theorem 1.1

We use Lemma 3.16 to either conclude that \(\mathsf {opd}(G) > k\) or to find an equivalent instance \((G_1,k_1)\), where \(G_1\) is a subgraph of G and \(k_1 \le k\). In the first case, either \(K_4\) or \(K_{2,3}\) must be a minor of G. We check it in polynomial time and depending on the result we output an instance (H, 0), where \(H = K_4\) or \(H = K_{2,3}\), which is then equivalent to (Gk). Otherwise we are guaranteed that \(\mathsf {opd}(G) \le k\) implies \(\mathsf {opd}(G_1) = \mathsf {opd}(G) - (k - k_1)\) and we also obtain a \((k_1,c,d)\)-outerplanar decomposition of \(G_1\), where \(d = f_3(c)\), which we supply to the algorithm from Lemma 3.26. In the first scenario, it applies Reduction Rule 3 or Reduction Rule 2 to the instance \((G_1,k_1)\). These rules may remove vertices or edges, but do not change the value of the parameter and transform the instance into an equivalent one due to Lemma 3.20 and Observation 2.2. Moreover, when \(\mathsf {opd}(G_1) \le k_1\), then the outerplanar deletion number also stays intact. If this is the case, we shrink the graph and rerun the algorithm from scratch on the smaller graph, starting from recomputing the outerplanar decomposition.

Since the graph shrinks at each step, at some point the routine from Lemma 3.26 terminates with the set L as the outcome. Let \((G_2, k_2)\) be the instance equivalent to (Gk) obtained so far. Then for the returned set \(L \subseteq V(G_2)\) we have that \(f_5(c,d)\cdot (k_2+3)^4\) upper bounds each of: \(\vert L\vert \), \(\vert E_G(L,L)\vert \), and the number of connected components in \(G_2 - L\). Furthermore, for each connected component A of \(G_2-L\) it holds that \(G_2 \langle A\rangle \) is outerplanar and \(\vert N_{G_2}(A)\vert \le 4\). If any of these components has more than \(25 \cdot 6288\) vertices, then Lemma 5.1 applies and produces an equivalent instance \((G_3, k_2)\), where \(G_3\) is a proper minor of \(G_2\). This reduction does not affect the parameter nor the outerplanar deletion number. We can thus again rerun the algorithm from scratch on the smaller graph.

Otherwise, each connected component of \(G_2-L\) has bounded size and \((G_2,k_2)\) is the outcome of the kernelization algorithm. We check that \(G_2\) has at most \((25 \cdot 6288+ 1) \cdot f_5(c,d)\cdot (k_2+3)^4\) vertices. The number of edges in \(G_2\) can be upper bounded by \(\vert E_G(L,L)\vert \) plus the sum of edges in each \(G\langle A\rangle \), where A is connected component of \(G_2-L\). Note that this also takes into account the edges with just one endpoint in L. We estimate \(\vert V(G \langle A\rangle )\vert \le 25 \cdot 6288+ 4\) and by Observation 2.7 we have that \(\vert E(G \langle A\rangle )\vert \le 2 \cdot \vert V(G \langle A\rangle )\vert \). Therefore, \(\vert E(G_2)\vert \) is at most \(2 \cdot (25 \cdot 6288+ 5) \cdot f_5(c,d)\cdot (k_2+3)^4\). \(\square \)

As a consequence of the theorem above, we obtain the first concrete bounds on the sizes of minor-minimal obstructions to having an outerplanar vertex deletion set of size k.

Corollary

(1.2, restated) If G is a graph such that \(\mathsf {opd}(G) > k\) but each proper minor \(G'\) of G satisfies \(\mathsf {opd}(G') \le k\), then G has \({\mathcal {O}}(k^4)\) vertices and edges.

Proof of Corollary 1.2

Let \(p :\mathbb {N} \rightarrow \mathbb {N}\) be a function such that for each instance (Gk) of Outerplanar Deletion there is an equivalent instance \((G',k')\) where \(G'\) is a minor of G on at most p(k) vertices and at most p(k) edges. Theorem 1.1 provides such a function with \(p(k) \in {\mathcal {O}}(k^4)\). In the remainder of the proof, we refer to a vertex set S whose removal makes a graph outerplanar as a solution, regardless of its size.

Let (Gk) be a pair satisfying the preconditions to the corollary. Note that \(\mathsf {opd}(G) \le k+1\) since the graph \(G'\) obtained after removing an arbitrary vertex v satisfies \(\mathsf {opd}(G') \le k\) and therefore has a solution S of size at most k, so that \(S \cup \{v\}\) is a solution in G of size at most \(k+1\).

Next, we argue that for each vertex \(v \in V(G)\) there is a solution of size \(k+1\) in G without v. If v is an isolated vertex in G then this is trivial. Otherwise, let \(uv \in E(G)\) be an arbitrary edge incident on v. Since \(G' := G \setminus uv\) is a proper minor of G, it has a solution \(S'\) of size k by assumption. We have \(v \notin S'\): if \(v \in S'\), then \(G' - S = G-S\) which would imply that G has a solution of size k, contradicting \(\mathsf {opd}(G) > k\). Now observe that \(S' \cup \{u\}\) is a solution in G, because the graph \(G - (S' \cup \{u\})\) is a minor of \(G' - S\), as removing vertex u also removes the edge uv. Hence \(S' \cup \{u\}\) is a solution of size \(k+1\) in G that does not contain v.

Consider the effect of applying the kernelization algorithm of Theorem 1.1 to the instance \((G,k+1)\), resulting in an instance \((G',k')\). Since \(\mathsf {opd}(G) = k+1\), we have that \(\mathsf {opd}(G') = \mathsf {opd}(G) - (k + 1 - k')\). We also know that \(G'\) is a minor of G and the number of vertices and edges in \(G'\) is at most \(p(k+1)\). We are going to show that \(G' = G\). Suppose otherwise and consider the series of graph modifying reductions applied by the kernelization algorithm, resulting in successive instances \((G,k+1) = (G_1,k_1), (G_2, k_2), \dots , (G_\ell , k_\ell ) = (G', k')\). We consider two cases: \(k_2 < k_1\) and \(k_2 = k_1\). In the first case, the only reduction rule that may decrease the value of the parameter is the one from Lemma 3.5. However, as \(k_1 = k+1\) and for each vertex \(v \in V(G)\) there is a solution of size \(k+1\) in G without v, this reduction must produce a new instance with \(k_2 = k_1\); a contradiction. In the second case, the graph \(G_2\) is a proper minor of \(G_1 = G\) and \(\mathsf {opd}(G_2) = \mathsf {opd}(G) = k+1\) because no reduction can change the outerplanar deletion number unless it is greater than \(k_1\) or \(k_2 < k_1\). But each proper minor of G has a solution of size at most k by assumption, which again leads to a contradiction. This implies that \(G' = G\) and hence the number of vertices and edges in G is at most \(p(k+1) \in {\mathcal {O}}(k^4)\). \(\square \)

6 Conclusion

We presented a number of elementary reduction rules for Outerplanar Deletion that can be applied in polynomial time to obtain a kernel of \({\mathcal {O}}(k^4)\) vertices and edges. This kernel does not use protrusion replacement and the constants hidden by the \({\mathcal {O}}\)-notation can be derived easily. This is the first concrete kernel for Outerplanar Deletion, and a step towards more concrete kernelization bounds for Planar-\({\mathcal {F}}\)  DELETION. We hope it inspires new kernelization bounds for Planar Deletion.

In earlier work Dell and Van Melkebeek [45,  Theorem 3] have shown that there is no kernel for Outerplanar Deletion of bitsize \({\mathcal {O}}(k^{2-\varepsilon })\) unless \(\mathsf {NP} \subseteq \mathsf {coNP/poly}\). This naturally leads to the question, can these two bounds be brought closer together?

Another interesting direction for further research is to obtain concrete kernelization bounds for other Planar-\({\mathcal {F}}\)  DELETION problems. Our work exploits the fact that \(K_{2,3}\)-minor-free graphs cannot have many disjoint paths between two vertices. Previous work [4] used a similar observation to derive a kernel for \(\theta _c\)-MINOR-FREE Deletion. An interesting next case would be a Planar-\({\mathcal {F}}\)  DELETION problem where \({\mathcal {F}}\) does not contain \(K_{2,c}\) or \(\theta _c\) for some c.