1 Introduction

For a graph H, can we find many (vertex-)disjoint subgraphs that contain H as a minor in a graph G? If not, can we find a bounded (vertex) set S in G, called the hitting set, such that \(G - S\) does not contain H as a minor? If at least one of those statements holds for every \(k\in {\mathbb {N}}\) and every graph G, then we say that H has the Erdős–Pósa property. When we replace vertices with edges and search for edge-disjoint graphs and an edge hitting set, we arrive at the edge-Erdős–Pósa property.

This field owes its name to a result for cycles by Erdős and Pósa in 1965 [8]. Since then, the vertex version has been well researched. Robertson and Seymour [15] have shown as early as 1986 that H has the (vertex-)Erdős–Pósa property if and only if H is a planar graph. The edge-Erdős–Pósa property, however, behaves quite differently. It is still true that non-planar graphs do not have the edge-Erdős–Pósa property, as stated by Raymond and Thilikos in 2017 [14], but the edge version fails even for some very simple planar graphs: Bruhn, Heinlein and Joos [4] have shown in 2018 that subcubic trees with large enough pathwidth and also ladders (see Fig. 1) with 71 rungs or more do not have the edge-Erdős–Pósa property.

Fig. 1
figure 1

A ladder with 5 rungs

For positive results, as far as we know, the only graphs that are known to have the edge-Erdős–Pósa property are cycles [3, 18] (in particular \(K_3\) [7]), \(K_4\) [1] and \(\varTheta _r\) [14] (the multigraph on two vertices with r parallel edges between them). The results on cycles and \(\varTheta _r\) are not that hard to come by. However, these graphs are also one of the simplest types of graphs there are. In contrast to that, the proof for \(K_4\) is a lot of work even though a \(K_4\) is just a slightly more complex graph than a 4-cycle or a \(\varTheta _3\). As there are only few results, we speculate that positive results for the edge version are just that much harder to obtain. The complexity of the proof of the following result of ours supports this claim.

Theorem 1

The ladder with 3 rungs has the edge-Erdős-Pósa property.

From the proof of Theorem 1 we can deduce that the house graph (see Chapter 4) has the edge-Erdős–Pósa property as well. Again, both of these graphs are just 6-cycles respectively 5-cycles with a chord (and both of them are small expansions of \(\varTheta _3\)), but the proof takes quite some effort. As a byproduct, we see that (Am)-trees, that is trees that contain m vertices of a given vertex set A, have the edge-Erdős–Pósa property, too. These can be seen as a generalization of A-paths.

To clarify what happens for larger ladders, we improve upon the negative result by Bruhn, Heinlein and Joos [4] mentioned above.

Theorem 2

Ladders with 14 rungs or more do not have the edge-Erdős–Pósa property.

The key ingredient for the negative proofs is a gadget that Bruhn et al. call condensed wall (see Fig. 2). As of now, all planar graphs that have the edge-Erdős–Pósa property are minors of the condensed wall and all that do not have it are not minors of it. Therefore, the condensed wall might play a key role in trying to characterize the graphs that have the edge-Erdős–Pósa property. This leads to the following conjecture by Bruhn et al. [4]

Conjecture 1

(Bruhn, Heinlein and Joos [4]) Let H be a planar graph such that there is an integer r such that the condensed wall of size r contains H as a minor. Then H has the edge-Erdős–Pósa property.

Fig. 2
figure 2

A condensed wall of size 5

Theorem 2 is optimal in the sense that every counterexample based on a condensed wall (and recall, we do not know others) will not work for ladders with fewer than 14 rungs: Indeed such ladders are minors of the condensed wall, see Proposition 1.

Do ladders with 4 to 13 rungs have the edge-Erdős–Pósa property? We do not know, but this question can be seen as a test for the condensed wall gadget. If it is proven that ladders with 13 rungs still do not possess the edge-Erdős–Pósa property, then clearly there is a counterexample graph not based on a condensed wall. However, if it is shown that ladders with 13 rungs have the edge-Erdős–Pósa property, then this is yet another strong indication that the condensed wall plays a key role for this property.

For an overview and a comparison of the ordinary Erdős–Pósa property and its edge counterpart, we recommend the appendix of [2] and [13]. A large list of Erdős–Pósa results can be found on Raymond’s webpage [12].

The structure of this article is as follows: In Sect. 2, we define the objects we work with, such as the edge-Erdős–Pósa property, ladders and the condensed wall. Section 3 then contains the construction and proof that shows that long ladders do not have the edge-Erdős–Pósa property, that is, the proof of Theorem 2. We will then move on to the small ladder and prove Theorem 1 in Sect. 4. In the same section, we also show that the House Graph has the edge-Erdős–Pósa property. Finally, we close by discussing our results in Sect. 5.

2 Definitions

In this section, we will state the basic definitions needed for this paper. Throughout, we will use standard notation as introduced in Diestel’s textbook [6].

A class of graphs \(\mathcal {H}\) has the edge-Erdős–Pósa property if there exists a function \(f: {\mathbb {N}}\rightarrow {\mathbb {R}}\) such that for every graph G and every integer k, there are k edge-disjoint graphs in G each isomorphic to a member of \(\mathcal {H}\) or there is an edge set X of G of size at most f(k) meeting all subgraphs in G that are isomorphic to members of \(\mathcal {H}\). We call f an edge-Erdős–Pósa function for \(\mathcal {H}\). To simplify notation, we say that a graph H has the edge-Erdős–Pósa property if the set of all graphs that contain a minor isomorphic to H has the edge-Erdős–Pósa property. Note that for a graph H with a maximum degree of 3, a graph G contains H as a minor if and only if it contains a subdivision of H [4].

Very shortly we also need to deal with the (vertex-)Erdős–Pósa property: just replace all occurrences of ‘edge/edges’ by ‘vertex/vertices’

Next, we define an elementary ladder L as a simple graph consisting of a vertex set \(V(L) = \{u_1, u_2, \ldots , u_n, v_1, v_2, \ldots , v_n\}\) and edge set \(E(L) = \{u_{i}u_{i+1} | i \in [n - 1] \} \cup \{v_{i}v_{i+1} | i \in [n - 1] \} \cup \{u_{i}v_{i} | i \in [n] \}\) for some \(n \in {\mathbb {N}}, n \ge 1\). The n paths (of length one) \(u_{i} v_{i}, i \in [n]\) are called rungs of L, where the two paths (of length \(n-1\)) \(u_1 u_2 u_3 \ldots u_n\) and \(v_1 v_2 v_3 \ldots v_n\) are called stringers of L. The size or length of a ladder is given by its number of rungs, i.e. the size of L is n. A ladder is a subdivision of an elementary ladder. We adapt the notion of rungs, stringers and size for ladders from their counterparts in elementary ladders. A subladder \(L'\) a subgraph \(L' \subseteq L\), where both \(L'\) and L are ladders and every rung R of \(L'\) is also an entire rung of L.

The main gadget used for proving that long ladders do not have the edge-Erdős–Pósa property is a wall-like structure called a condensed wall introduced by Bruhn et. al. [4]. A condensed wall W of size \(r \in {\mathbb {N}}\) is the graph consisting of the following:

  • For every \(j \in [r]\), let \(P^j = {u^j}_1, \ldots , {u^j}_{2r}\) be a path of length \(2r - 1\) and for \(j \in \{0\} \cup [r]\), let \(z_j\) be a vertex. Moreover, let a, b be two further vertices.

  • For every \(i, j \in [r]\), add the edges \(z_{j-1} {u^j}_{2i - 1}, z_{j} {u^j}_{2i}, z_{i-1} {z_i}, a {u^j}_{1}\) and \(b {u^j}_{2r}\).

We define \(c = z_0\) and \(d = z_r\) and refer to

$$\begin{aligned} W_j = W[ \{ {u^j}_1, \ldots , {u^j}_{2r}, z_{j - 1}, z_j \} ] \end{aligned}$$

as the j-th layer of W. Note that the layers of W are precisely the blocks of \(W - \{a, b\}\). We will refer to the vertices ab quite often, and whenever we write a or b in this article, we refer to those vertices in a condensed wall. The vertices connecting the layers of W are \(z_i, i \in \{0\} \cup [r]\), and we will call those bottleneck vertices. This includes the vertices c and d. The edges \(z_{i-1} z_i, i \in [r]\) are called jump-edges.

For vertices abcd, an (ab, cd)-linkage is the vertex-disjoint union of an ab-path with a cd-path.

3 Long Ladders

To show that a ladder L does not have the edge-Erdős–Pósa property, we explicitly construct a counterexample graph \(G^*\) for every given length l of the ladder and size \(r-1\) of the hitting set. So let \(r \ge 2\) and \(l \ge 14\) be some integers. Then we construct \(G^*\) in the following way:

  • Let \(l_A \ge 7\) and \(l_C \ge 4\) such that \(l_A + l_C + 3 = l\).

  • Let \(L_A\) be an elementary ladder of length \(l_A\) and let \(L_C\) be an elementary ladder of length \(l_C\).

  • Let \(G^*\) be the union of \(L_A\) and \(L_C\), where every edge is replaced by r internally disjoint paths of length 2.

  • Add a condensed wall W of size 2r to \(G^*\).

  • Connect the stringers at one end of \(L_A\) and \(L_C\) to W with r internally disjoint paths of length 2 each as in Fig. 3.

A depiction of \(G^*\) can be found in Fig. 3. Let A be the component of \(G^* - W\) that contains a ladder with \(l_A\) rungs, and let C be the other component of \(G^* - W\).

Fig. 3
figure 3

Construction in Theorem 2 for a ladder with 14 rungs. Note that all edges drawn represent r internally disjoint paths of length 2

To show that a ladder L does not have the edge-Erdős–Pósa property, we first show that we can always find a ladder of length l in our counterexample graph \(G^*\), even with \(r - 1\) edges being deleted. This implies there can be no edge hitting set regardless of its size, as r was arbitrary. Afterwards, we will show that there can never be two edge-disjoint ladders of length l in \(G^*\), implying that the edge-Erdős–Pósa property fails even for \(k = 2\). The first part will be relatively easy.

3.1 Finding One Ladder

For our embedding in W, we introduce a graph called an X-wing. An X-wing is a subgraph \(G = L_1 \cup P_1 \cup \cdots \cup P_4\), where \(L_1\) is a ladder with 3 rungs whose first and last rung we call \(R_1\) and \(R_3\), respectively, and \(P_1, P_2, P_3, P_4\) are pairwise (vertex-)disjoint paths such that \(P_1\) is a \(R_1\)a path, \(P_2\) is a \(R_1\)b path, \(P_3\) is a \(R_3\)c path and \(P_4\) is a \(R_3\)d path. Furthermore, we require the interior of \(P_1, P_2, P_3\) and \(P_4\) to be (vertex-)disjoint from \(L_1\). For an illustration, see Fig. 4.

Fig. 4
figure 4

An (ab, cd)-linkage in an X-wing

Lemma 1

In every condensed wall W of size 2r, there exists an X-wing, even when \(r-1\) edges of W are deleted.

Proof

After the deletion of \(r-1\) edges, there are still two complete adjacent layers \(W_{i-1}\) and \(W_i\) of W whose edges to a and b are still present. There, we can embed a graph X as in Fig. 5. In W, there were 2r edge-disjoint paths connecting \(z_{i-2}\) to c and another 2r edge-disjoint paths, disjoint from the first set, connecting \(z_i\) to d without using a or b. So with \(r-1\) edges being deleted, there is still at least one (in fact \(r+1\)) of each kind left. Together with X, they form an X-wing. \(\square \)

Fig. 5
figure 5

An X-wing (thick edges) in a condensed wall of size 2. Edges belonging to rungs are labelled and red

The following lemma yields one part of the proof of Theorem 2.

Lemma 2

For every integer \(l \ge 14\) and every function \(f: {\mathbb {N}}\rightarrow {\mathbb {R}}\), there exists an \(r \in {\mathbb {N}}\) such that the graph \(G^*\) (as defined in the beginning of the section) contains no set B of at most f(2) edges such that \(G - B\) does not contain a ladder with l rungs as a minor.

Proof

We choose r such that \(r-1 = f(2)\). Recall \(G^*\) as defined in the beginning of Sect. 3. Let \(B \subseteq E(G)\) contain at most f(2) edges. By construction of \(G^*\), there are r edge-disjoint ladders of size \(l_A\) in A. Thus in \(G^* - B\), we can find a ladder \(L_1\) with \(l_A\) rungs in \(A-B\). Similarly, there is a ladder \(L_2\) with \(l_C\) rungs in \(C-B\). Lemma 1 yields an X-wing X in \(W-B\). As there are r disjoint connections between each stringer of \(L_1, L_2\) and W, we can connect \(L_1, L_2\) and X to form a ladder with \(l_A + 3 + l_C = l\) rungs in \(G^*-B\). \(\square \)

3.2 Excluding Two Ladders

The tactic for the proof of Theorem 2 will be to show that every ladder U in \(G^*\) must contain an X-wing and thus an (ab, cd)-linkage in W, which can be only present once (see Lemma 3). However, to prove that U contains an X-wing, we must exclude every other possibility of an embedding of U in \(G^*\). Therefore, we will need several technical lemmas to get an upper bound for how large a ladder in W can be without containing an X-wing.

Lemma 3

(Bruhn et al. [4]) A condensed wall W (of any size) does not contain two edge-disjoint (ab, cd)-linkages.

When considering how large a ladder in a condensed wall can be, the two vertices a and b will be of great importance. Without them, we cannot form large ladders, as the next lemma will show:

Lemma 4

Let W be a condensed wall. In \(W - \{a, b\}\), the following holds:

  1. (i)

    Every ladder L in \(W - \{a, b\}\) has at most 5 rungs. (Bruhn et al. [4])

  2. (ii)

    There is no embedding of a graph as in Fig. 6 in \(W - \{a, b\}\) such that the branch vertex corresponding to \(v_1\) or \(v_2\) is a bottleneck vertex.

  3. (iii)

    There is no embedding of a graph as in Fig. 7 or in Fig. 8 in \(W - \{a, b\}\) such that the branch vertices corresponding to one of \(v_1\) and \(v_2\) and one of \(v_3\) and \(v_4\) are bottleneck vertices.

Fig. 6
figure 6

A ladder with 5 rungs and a path

Fig. 7
figure 7

A ladder with 4 rungs and two paths

Fig. 8
figure 8

A ladder with 3 rungs and two paths at the same end

Proof

  1. (i)

    Every cycle in \(W - \{a, b\}\) must contain either \(z_i\) or \(z_{i-1}\) (or both). When considering the smallest cycles in a ladder (those that contain two adjacent rungs), every vertex can only be part of two of them. Therefore, there can be at most four of those small cycles, which implies L has size at most 5. (The same result has also been proven in Lemma 9 in Bruhn et al. [4].)

  2. (ii) + (iii)

    Let \(W_i\) be the layer of W that contains L. \(W_i\) is connected to \(W - W_i\) by only four vertices: \(a, b, z_{i - 1}\) and \(z_i\). Therefore, each ladder stringer that is continued outside of \(W_i\) without using a or b must use one of \(z_{i - 1}\) and \(z_i\).

Now when a ladder stringer of L leaves \(W_i\) (more precisely, when there is a path connected to the end of the ladder stringer that leaves \(W_i\)) through a vertex z, z must necessarily lie on the end of L (or not on L at all). When \(z_{i - 1}\) or \(z_i\) lie at the end of L, this implies that L is actually shorter than 5, as every cycle in a layer \(W_i\) of W must contain either \(z_i\) or \(z_{i-1}\) (or both).

Therefore, L has length at most 4 if \(z_i\) or \(z_{i - 1}\) lies on one of its ends. If both \(z_i\) and \(z_{i-1}\) lie on (different) ends of the ladder, L is reduced to have a length of at most 3. Finally, L has at most 2 rungs if both \(z_i\) and \(z_{i-1}\) were on the same end. \(\square \)

The following lemma will already yield a useful (and tight, see Proposition 1) upper bound on the size of a ladder L in a condensed wall W.

Lemma 5

In every condensed wall W, every ladder L contains at most 13 rungs.

Proof

Suppose there were a ladder L in W with \(l \ge 14\) rungs. Then \(L - \{a, b\}\) contains at most three (disjoint) inclusion-maximal subladders. By construction, each of them contains neither a nor b. Additionally, as a and b were part of at most 2 rungs of L, those subladders must together contain at least \(l - 2 \ge 12\) rungs.

First, suppose there were at most two such subladders \(L_1, L_2\). Then by Lemma 4 (i), each may only contain up to 5 rungs, which sums up to \(5 + 5 = 10 < 12\) rungs, a contradiction.

So we can assume that there are exactly three (disjoint inclusion-maximal) subladders \(L_1, L_2\) and \(L_3\) of \(L - \{a, b\}\). Then two of them (say \(L_1\) and \(L_3\)) must contain the ends of L, while one of them (say \(L_2\)) lies in between. Via the stringers of L, \(L_2\) has four disjoint paths connecting it to \(L_1\) and \(L_3\). By Lemma 4 (iii), \(L_2\) can therefore only contain up to 3 rungs. (Note that only two paths may contain a or b.)

Similarly, \(L_1\) and \(L_3\) have each two (disjoint) paths connecting them to \(L_2\). One of them must contain a or b for each of \(L_1\) and \(L_3\), which implies that the other cannot contain a or b. By Lemma 4 (ii), we conclude that \(L_1\) and \(L_3\) may therefore contain at most 4 rungs. This sums up to \(4 + 3 + 4 = 11 < 12\) rungs for the three of them, a contradiction. \(\square \)

In the following, we will prove a series of lemmas that deal with ladders and connecting paths in a couple of special cases. They will be used for the proof of Theorem 2.

Lemma 6

Let L be a ladder in a condensed wall W. Let R be a rung at the end of L, with endvertices \(v_1, v_2\). Let \(P_1\) be a \(v_1\)a-path and let \(P_2\) be a \(v_2\)b-path (both in W). Furthermore, let the interior of \(P_1\) and \(P_2\) be disjoint from each other and disjoint from L (see Fig. 9).

Fig. 9
figure 9

A ladder with 6 rungs and paths to a and b

Let \(L'\) be the union of \(L, P_1\) and \(P_2\). Then \(L'\) contains at most 6 rungs.

Note that in this lemma and all following ones, we allow the paths \(P_i\) to have a length of zero, i.e. to consist only of a single vertex (e.g. \(v_1 = a\)).

Proof

Let \(L_1\) be the maximum subladder of \(L - R\). Then \(L_1\) cannot contain a and b. By Lemma 4 (i), \(L_1\) can therefore contain at most 5 rungs. Together with R, this implies at most 6 rungs for L. \(\square \)

Lemma 7

Let L be a ladder in a condensed wall W. Let R be a rung at the end of L, with endvertices \(v_1, v_2\). Let \(P_1\) be a \(v_1\)a-path and let \(P_2\) be a \(v_2\)z-path (both in W), where z is a bottleneck vertex. Furthermore, let the interior of \(P_1\) and \(P_2\) be disjoint from each other and disjoint from L (see Fig. 10).

Finally, let \(L'\) be the union of \(L, P_1\) and \(P_2\) and let \(L'\) not contain b.

Then L contains at most 5 rungs.

Fig. 10
figure 10

A ladder with 5 rungs and paths to a and a bottleneck vertex z

Proof

Let \(L_1\) be the maximum subladder of \(L - R\). Then \(L_1\) cannot contain a and b. If \(L_1\) contains at least 2 rungs, it must be entirely contained in a single layer \(W_i\) of W by Lemma 4 (i). Furthermore, the stringers connecting \(L_1\) to R and the paths \(P_1\) and \(P_2\) form two disjoint paths continuing the stringers of \(L_1\) to vertices outside of \(W_i\). By Lemma 4 (ii), \(L_1\) can therefore contain at most 4 rungs. Together with R, this implies at most 5 rungs for L. \(\square \)

Lemma 8

Let \(L_1, L_2\) be disjoint ladders in a condensed wall W. Let \(R_1\) be a rung at the end of \(L_1\), with endvertices \(v_1, v_2\). Similarly, let \(R_2\) be a rung at the end of \(L_2\), with endvertices \(v_3, v_4\). Let \(P_1\) be a \(v_1\)a-path and let \(P_2\) be a \(v_4\)z-path (both in W), where z is some vertex in a layer that is not occupied by \(L_1\). Additionally, let \(P_3\) be a \(v_2\)\(v_3\)-path in W. Furthermore, let the interior of \(P_1, P_2\) and \(P_3\), as well as \(L_1\) and \(L_2\), be pairwise disjoint (see Fig. 11).

Then the sum of the number of rungs in \(L_1\) and \(L_2\) is at most 12 rungs.

Fig. 11
figure 11

Two ladders with paths to a and a bottleneck vertex z

Proof

Let \(L'_1\) be the maximum subladder of \(L_1 - R_1\). Then both \(L_2\) and \(L'_1\) cannot contain a.

Now suppose neither of them would contain b, either. Then by Lemma 4 (i), each of \(L_2\) and \(L'_1\) can contain at most 5 rungs. Together with \(R_1\), this means up to 11 rungs for \(L_1\) and \(L_2\).

Now suppose b would be contained in \(L_2\). If b is contained in \(R_2\), we define \(L'_2\) as the (unique) maximal subladder of \(L_2 - R_2\). Again, we apply Lemma 4 (i) to see that \(L'_1\) and \(L'_2\) can have at most 5 rungs each. This implies at most 6 rungs each for \(L_1\) and \(L_2\), which sums up to at most 12 rungs in total.

If b is contained in \(L_2 - R_2\), there is a (maximal) proper subladder \(L'_2\) of \(L_2 - b\) that contains \(R_2\) and has four disjoint paths continuing its stringers to vertices outside of its layer: \(P_2\), \(P_3\) and the parts of the stringers of \(L_2\) that connect \(L'_2\) with the rungs of \(L_2 - L'_2\). However, as a is contained in neither of them (as a is on \(P_1\)), at least three of them contain neither a nor b. This is a contradiction.

Finally, we can suppose b is contained in \(L'_1\). Then \(L_2\) contains at most 2 rungs due to Lemma 4 (iii).

Now \(L'_1 - b\) contains at most two disjoint maximal subladders. If it would contain only one such maximal subladder \(L_3\), then \(L_3\) can contain at most 5 rungs by Lemma 4 (i) as it contains neither a nor b. This implies up to 7 rungs for \(L_1\), which sums up to at most \(7 + 2 = 9\) rungs for \(L_1\) and \(L_2\).

So let us suppose \(L'_1 - b\) contains exactly two disjoint maximal subladders \(L_3\) and \(L_4\), where \(L_3\) is the subladder adjacent to \(R_1\). Then \(L_4\) can contain at most 4 rungs by Lemma 4 (ii), and \(L_3\) can contain at most 3 rungs by Lemma 4 (iii). Together with at most 1 rung that can be incident with b and \(R_1\), this implies up to \(4 + 1 + 3 + 1 = 9\) rungs for \(L_1\). With 2 rungs in \(L_2\), we get a sum of rungs of at most 11. \(\square \)

Lemma 9

Let L be a ladder in a condensed wall W. Let R be a rung at the end of L, with endvertices \(v_1, v_2\). Let \(P_1\) be a \(v_1\)c-path and let \(P_2\) be a \(v_2\)d-path (both in W). Furthermore, let the interior of \(P_1\) and \(P_2\) be disjoint from each other and disjoint from L.

Let \(Q = (P_1 - v_1) + (P_2 - v_2)\) (see Fig. 12).

  1. (i)

    If both L and Q contain neither a nor b, L has at most 2 rungs.

  2. (ii)

    If L contains neither a nor b, and there is exactly one of a and b on Q, L has at most 4 rungs.

  3. (iii)

    If L contains neither a nor b, and there are both a and b on Q, L has at most 5 rungs.

  4. (iv)

    If L contains exactly one of a and b, but Q contains neither of them, L has at most 5 rungs.

  5. (v)

    If L contains exactly one of a and b, and there is exactly one of a and b on Q, too, L has at most 8 rungs.

  6. (vi)

    If L contains both a and b (which implies Q contains neither of them), L has at most 9 rungs.

Fig. 12
figure 12

A ladder with paths to c and d

Proof

  1. (i)

    This follows from Lemma 4 (iii).

  2. (ii)

    As L contains neither a nor b, if L has more than one rung, it must be entirely contained in a single layer of W. Additionally, as Q is allowed to contain only one of a and b, either \(P_1\) or \(P_2\) must not contain a and b. This implies L has a stringer continued to c or d without using a and b. By Lemma 4 (ii), L can thus have at most 4 rungs.

  3. (iii)

    As in (ii), L must be contained in a single layer of W. By Lemma 4 (i), L can therefore have at most 5 rungs.

Before we continue with the proof of (iv), we make some observations that will prove useful for the next three cases. Let P be the path in \(L \cup Q\) formed by \(P_1, P_2\) and R.

Claim 1 If P uses neither a nor b, P must use all the vertices \(z_i, i \in \{0\} \cup [r]\), where \(z_0 = c\) and \(z_r = d\).

By definition, P uses \(z_0 = c\) and \(z_r = d\). Furthermore, ab and \(z_i\) disconnect c from d for every \(i \in \{1, \ldots , n-1\}\).

Claim 2 If P contains neither a nor b, and L contains at most one of them, then L has at mostrungs.

Without using a bottleneck vertex, all cycles in W must contain both a and b. As \(L \cup Q\) contains at most one of a and b, if L has more than one rung, all rungs of L must be on a cycle with a bottleneck vertex. As R is the only rung of L that contains bottleneck vertices, all cycles of L must contain R. As R is required to be on the end of L, L cannot have more than 2 rungs, no matter whether we use a or b or not.

Claim 3 If P contains neither a nor b, but L contains both, then L has at mostrungs.

Now there can be additional cycles that use no bottleneck vertex, but those must then contain both a and b. When considering the smallest cycles on L (those that use two adjacent rungs), there can be only two cycles that contain both a and b. Together with the single cycle that may be incident with a bottleneck vertex that we also got in the upper case, we are left with at most 3 smallest cycles in L. This mean we get an upper bound of 4 rungs for L.

Now, we can continue with the last three proofs:

(iv) If P uses neither a nor b as in (i), L has at most 2 rungs as seen in Claim 2. Therefore, we must only consider the case where P uses \(v \in \{a, b\}\). As we know that v is not a part of Q, we can conclude that v lies on r. Then we can apply Lemma 7 to see that L contains at most 5 rungs.

(v) Again, there is \(v \in \{a, b\}\) contained in L. If v were contained in R, \(L - R\) would contain neither a nor b. Therefore, \(L - R\) could only contain a subladder with at most 5 rungs due to Lemma 4 (i). This would imply at most \(5 + 1 = 6\) rungs for L.

Now suppose v is not in R. Then it is not a part of \(P_1\) and \(P_2\), either. As in (ii), since Q is allowed to contain only one of a and b, either \(P_1\) or \(P_2\) must not contain a and b. Let \(L_1, L_2\) be the two maximal subladders of \(L - v\), where \(L_2\) is the one that is incident with \(P_1\) and \(P_2\). The stringers of L form two disjoint paths connecting \(L_1\) and \(L_2\), where only one of them can contain v. If \(L_1\) or \(L_2\) contains more that one rung, it is entirely contained in a single layer of W. We can therefore apply Lemma 4 (ii) and (iii) to see that \(L_1\) can only contain up to 4 rungs, while there are at most 3 rungs in \(L_2\). Together with at most one rung that is incident with v, we get a total of \(4 + 1 + 3 =8\) rungs as un upper bound for L.

(vi) If P uses neither a nor b, L has at most 4 rungs as seen at the beginning of the proof. Therefore, we can conclude P uses at least one of a and b. Thus, \(L - R\) contains exactly one maximal subladder \(L_1\) with only rung less that L, but only one of a or b can be contained in \(L_1\). As in the proof of (v), we can argue that \(L_1\) can only contain at most 8 rungs as it has two stringers continued via disjoint paths to c and d, but only one of the paths may contain a or b. This implies there are at most \(8 + 1 = 9\) rungs in L. \(\square \)

Lemma 9 can also be used when there are two ladders, as in the following lemma:

Lemma 10

Let \(L_1, L_2\) be two disjoint ladders in a condensed wall W. Let \(R_1\) be a rung at the end of \(L_1\) with endvertices \(v_1, v_2\). Similarly, let \(R_2\) be a rung at the end of \(L_2\) with endvertices \(v_3, v_4\).

Now, let \(P_1\) be a \(v_1\)c-path in W and let \(P_2\) be a \(v_4\)d-path in W. Additionally, let \(P_3\) be a \(v_2\)\(v_3\)-path in W. Finally, let the interior of \(P_1, P_2\) and \(P_3\), as well as \(L_1\) and \(L_2\), be pairwise disjoint (see Fig. 13).

Then the sum of the number of rungs in \(L_1\) and \(L_2\) is at most 13.

Fig. 13
figure 13

Two ladders with paths to c and d

Proof

When the sum of rungs in \(L_1\) and \(L_2\) is more than 13, we can conclude that at least one of them (say \(L_1\), as the situation is symmetric) must contain at least 7 rungs. Then \(L_1 - R_1\) must contain a subladder \(L'_1\) with at least 6 rungs. Due to Lemma 4 (i), this is only possible if \(L'_1\) contains a or b. Say \(L'_1\) contains a, as the situation is again symmetric. Now \(P_3, R_2\) and \(P_2\) form together a path P that continues a ladder stringer of \(L_1\) to d. Additionally, \(L_1\) has its other stringer continued at the same end via \(P_1\) to c. Let \(Q_1 = (P_1 - v_1) \cup (P - v_2)\).

Now, we observe that \(L_2\) is in a similar situation. \(P_3, R_1\) and \(P_1\) form a path \(P'\) that continues a stringer of \(L_2\) to c. Additionally, \(L_2\) has its other stringer continued at the same end via \(P_2\) to d. Let \(Q_2 = (P_2 - v_4) \cup (P' - v_3)\). As a is part of \(L_1 - R_1\), we note that \(Q_2\), \(L_2\) and \(Q_1\) cannot contain a. Next, we take a look at where b might be situated. We divide three cases:

First, b might be a part of \(L_1\). Then \(L_1\) contains both a and b. By Lemma 9 (vi), \(L_1\) can contain at most 9 rungs. In this case, b cannot be part of \(L_2\) anymore. However, it could be a part of \(R_1 \subset Q_2\). In this case, \(L_2\) can contain up to 4 rungs by Lemma 9 (ii). This sums up to \(9 + 4 = 13\) rungs in total, which was what we wanted. Alternatively, b could not be part of \(R_1\). Then b is not a part of \(Q_2\), which implies that \(L_2\) can only contain two rungs by Lemma 9 (i). This implies up to \(9 + 2 = 11\) rungs in total.

Second, b might be a part of \(L_2\). Then \(Q_2\) contains neither a nor b. Using Lemma 9 (iv), \(L_2\) can have at most 5 rungs. Similar to the first case, b might lie on \(R_2 \subset Q_1\), which implies that \(L_1\) can contain at most 8 rungs due to Lemma 9 (v). This means we get at most \(8 + 5 = 13\) rungs in total. Alternatively, b might not lie on \(R_2\), implying it is not on \(Q_1\), either. Then we use Lemma 9 (iv) to see that \(L_1\) could only contain 5 rungs, which implies up to \( 5 + 5 = 10\) rungs in total.

Third and finally, b might be a part of neither \(L_1\) nor \(L_2\). If it is on \(P_1, P_2\) or \(P_3\), it is part of both \(Q_1\) and \(Q_2\). We can therefore conclude that \(L_1\) contains at most 8 rungs by Lemma 9 (v), while \(L_2\) contains at most 4 rungs by Lemma 9 (ii). This sums up to \(8 + 4 = 12\) rungs in total. Alternatively, b could not be part of \(P_1, P_2\) or \(P_3\). Then, it is neither in \(L_1, L_2, Q_1\) nor in \(Q_2\). Therefore, we use Lemma 9 (iv) to see that \(L_1\) can contain only 5 rungs. Similarly, Lemma 9 (i) implies that \(L_2\) can only contain 2 rungs. In total, this means at most \(5 + 2 = 7\) rungs in total.

As we have seen that an upper bound of 13 rungs in total hold true for all three cases, we have proven the lemma. \(\square \)

Lemma 11

Let L be a ladder where the pairs \(\{a, b\}\) and \(\{c, d\}\) are situated on the stringers of L between different rungs, but both vertices of each pair lie between the same two rungs and on the same stringer of L.

Except for the part of the stringers that is between the two vertices of each pair, all of L is situated in a condensed wall W. An example for the part of L in W is depicted in Fig. 14.

Then L has at most 11 rungs.

Fig. 14
figure 14

A ladder with \(\{a, b\}\) and \(\{c, d\}\) on its stringers

Proof

Let the maximal subladders of L be named as in Fig. 14. We begin by observing that \(L_1\) and \(L_2\) can only contain at most 5 rungs each by Lemma 7. Additionally, we get an upper bound of 3 rungs for \(L_3\) with Lemma 4 (iii). Therefore, if one of \(L_1\) or \(L_2\) had less than 3 rungs, or if \(L_3\) had only one single rung, we get an upper bound of 11 rungs in total, which was what we wanted.

We can therefore assume that each of \(L_1\) and \(L_2\) contains at least 4 rungs, while \(L_3\) must contain at least two rungs. This implies that \(L_3\) is situated in a single layer of W as it contains neither a not b. Let \(R_2\) be the rung of \(L_2\) which is closest to b. We conclude \(L_2 - R_2\) has a proper maximal subladder \(L'_2\) with at least three rungs that contains neither a nor b. It must therefore be also entirely contained in a single layer of W. The same holds true for a maximal subladder \(L'_1\) of \(L_1 - R_1\), where \(R_1\) is the rung of \(L_1\) closest to a. But then \(L'_2\) has four disjoint paths to vertices outside of its own layer, with only one of them containing a or b. This is a contradiction. \(\square \)

3.3 Proof of Theorem 2

Theorem 1

Ladders with 14 rungs or more do not have the edge-Erdős–Pósa property.

Proof

Consider a ladder with lgeq14 rungs. As a counterexample, we use the graph \(G^*\) as introduced in the beginning of Sect. 3. In Lemma 2, we have seen that there exists no upper bound on the size of the hitting set.

It remains to show that there are no two edge-disjoint ladders in \(G^*\) with at least l rungs each. Suppose a ladder would contain an X-wing in W. Then this X-wing would contain an (ab, cd)-linkage in W. By Lemma 3, there are no two edge-disjoint (ab, cd)-linkages in W. Thus there can be no two edge-disjoint ladders in \(G^*\) that contain an X wing in W.

Thus it only remains to show that every ladder in \(G^*\) with at least l rungs must contain an X-wing in W. So let U be a ladder in \(G^*\) with l rungs. First of all, we observe that U cannot be entirely contained in W due to Lemma 5. Even more clearly, it cannot be entirely contained in \(G^* - W\) as there is only room for \(l_A\) or \(l_C\) rungs there.

We call \(U_{in}\) the maximal subgraph of U in W, while we call the one in \(G^* - (W - \{a, b, c, d\})\) \(U_{out}\). \(U_{in}\) and \(U_{out}\) are edge-disjoint, \(U_{in} \cup U_{out} = U\) and both are non-empty as seen above.

Claim 1 \(U \cap C \ne \varnothing \)

Suppose U would be disjoint from C. Then U is entirely contained in \(G^* - C\). We have seen before that in this case, it cannot be disjoint from A or W. As U is two-connected, it must therefore use both a and b to connect \(U_{in}\) and \(U_{out}\). Now we distinguish three cases:

First, a and b could be on the same ladder stringer. Then either \(U_{in}\) or \(U_{out}\) must contain two subladders which together contain all l rungs and are connected at one stringer via a path. Clearly, they cannot be entirely contained in A. If they were in W instead, we can use Lemma 7 to conclude that each of them can only contain 5 rungs, which sums up to \(10 < l\) rungs in total, a contradiction.

Second, one of \(U_{in}\) and \(U_{out}\) might contain only (a part of) a single rung, while the other contains a ladder with \(l - 1\) rungs. So many rungs cannot be contained in A. If they were contained in W instead, we observe that this ladder can be split into (at most) two (inclusion-)maximal subladders where both have paths connecting their stringers to a and b. By Lemma 6, each of those subladders can only contain up to 6 rungs. Therefore, \(U_{in}\) can only contain up to \(12 \le l - 2 < l - 1\) rungs, a contradiction.

Finally, a and b could split U into two subladders, where one is contained in \(U_{in}\) and the other in \(U_{out}\). Together, they must contain all l rungs. In \(U_{out}\), there can be only \(l_A\) rungs. In \(U_{in}\), we use again Lemma 6 to see there can be only 6 rungs. Together, this yields an upper bound of \(l_A + 6 \le l - 1 < l\) rungs for U, a contradiction.

As we arrived at a contradiction in all cases, we know that U cannot be disjoint from C. Next, we want to see that the same holds true for A.

Claim 2 \(U \cap A \ne \varnothing \)

Suppose U would be disjoint from A. Then U is entirely contained in \(G^* - A\). Again, we can conclude that U must use both c and d to connect \(U_{in}\) in W and \(U_{out}\) in C. As before, we divide the same three cases:

First, c and d could be on the same ladder stringer. Then \(U_{in}\) or \(U_{out}\) must contain two subladders \(L_1, L_2\) which together contain all l rungs and are connected at one stringer via a path. Again, it cannot be entirely contained in C. We conclude it is in W instead. We apply Lemma 10 to see that there can be only 13 rungs in W in this case, a contradiction.

Second, one of \(U_{in}\) and \(U_{out}\) might contain only a single rung, while the other contains a ladder with \(l - 1\) rungs. Again, so many rungs cannot be contained in C. If they were contained in W instead, we observe that this ladder can be split into (at most) two (inclusion-)maximal subladders \(L_1, L_2\), where both have paths connecting their stringers to c and d.

This time, we need to distinguish where a and b lie. As the situation is symmetric, suppose that \(L_1\) contains at least as many vertices of a and b as \(L_2\) does.

If \(L_1\) contains both a and b, we conclude that they cannot lie in \(L_2\) or its paths to c and d. Therefore, we can apply Lemma 9 (i) to see that \(L_2\) can only contain 2 rungs, while \(L_1\) has at most 9 by Lemma 9 (vi) in this case. This sums up to at most 11 rungs in total.

If \(L_1\) contains exactly one of a and b (say a), then b might lie on \(L_2\) or the paths to c and d. If b is in \(L_2\), we get at most 5 rungs for each of \(L_1\) and \(L_2\) by Lemma 9 (iv), which sums up to 10 rungs in total. If b is not in \(L_2\), it may lie on the paths to c and d for both of \(L_1\) and \(L_2\). Even so, we get at most 8 rungs for \(L_1\) by Lemma 9 (v) and at most 4 rungs for \(L_2\) by Lemma 9 (ii), which sums up to 12 rungs in total. In every case, we got an upper bound of \(12 < l - 1\) rungs or less for \(U_{in}\), a contradiction.

Finally, c and d could split U into two subladders, where one is contained in \(U_{in}\) and the other in \(U_{out}\). Again, they must together contain all l rungs. In \(U_{out}\), there can be only \(l_C\) rungs. In \(U_{in}\), we use Lemma 9 (vi) to see there can be only 9 rungs. Together, this yields an upper bound of \(l_C + 9 \le l - 1\) rungs for U, a contradiction. We conclude:

U has edges in each of A, C and W.

As A and C are different (and therefore disconnected) components of \(G^* - W\), we can conclude that \(U_{out}\) consists of at least two components, where at least one is in each of A and C.

Claim 3 At least one of A and C must contain at least one edge of a rung of U.

Suppose A and C do not contain a single edge of any rung of U. Our last conclusion shows that there must be some edges of U in both A and C, so those must be part of a ladder stringer. As there are only two vertices each (ab and cd) separating the parts of \(U_{out}\) from \(U_{in}\), these parts of a ladder stringer of U must each be between two adjacent rungs.

Now there are two cases:

First, the parts of the ladder stringers in \(U_{out}\) could lie between the very same rungs of U.

Now they could lie on the same ladder stringer, meaning that \(U_{in}\) contains two (inclusion-) maximal subladders with l rungs in total, connected via a path at one stringer. Furthermore, each subladder has one more stringer continued via a path. One of them contains a or b, the other contains c or d. By Lemma 8, the subladders can only have \(12 \le l - 2 < l\) rungs in total, a contradiction.

Otherwise, ab and cd must lie on different ladder stringers. Then \(U_{in}\) is disconnected into two components, each containing an (inclusion-) maximal subladder that has one ladder stringer continued to one of a and b and the other to c or d. The sum of rungs of both subladders is again l. By Lemma 7, each of those subladders can contain at most 5 rungs. This results in an upper bound of \(10 \le l - 4\) rungs for U, a contradiction.

Second, the ladder stringer parts in \(U_{out}\) could lie between different rungs, resulting in \(U_{in}\) being still connected. Moreover, \(U_{in}\) will then contain exactly three (inclusion-) maximal subladders that together contain all l rungs of U. By Lemma 11, we get at most \(11 \le l - 3\) rungs for this collection, a contradiction.

Claim 4 A must contain at least one edge of a rung of U.

Suppose A only contains part of a ladder stringer. As we have proven Claim 3, we know that C must then contain some edge of a rung of U. Now there are two cases:

First, C might only contain part of a single rung of U. Then all other \(l - 1\) rungs must be contained in \(U_{in}\). \(U_{in}\) must then contain exactly two subladders which are connected at one stringer via a path. We apply Lemma 7 to see that each subladder contains at most 5 rungs, which means \(U_{in}\) can only contain \(10 \le l - 4 < l - 1\) rungs, a contradiction.

Second, C might contain part of several rungs of U. This is only possible if c and d are situated on the ladder stringers of U and C contains a proper subladder of U. Now \(U_{out}\) can contain up to \(l_C\) rungs. Then \(U_{in}\) must again contain exactly two (inclusion-) maximal subladders \(L_1, L_2\) which are connected via a path at one ladder stringer. This time, however, one of them (say \(L_1\)) also has both of its ladder stringers continued to c and d at the other end of \(L_1\). Moreover, each of them also has one stringer continued via a path to a or b.

Let \(L'_1\) be the (unique) maximal subladders of \(L_1 - \{a, b\}\). If \(L'_1\) contains more than one rung, it is situated in a single layer of W. But \(L'_1\) has four paths continuing its stringers, where only one of them may contain a or b. This is a contradiction. Therefore, \(L'_1\) may only contain 1 rung, which implies at most 2 rungs for \(L_1\). By Lemma 7, \(L_2\) has at most 5 rungs. This sums up to at most \(2 + 5 = 7\) rungs for \(U_{in}\). Together with \(l_C\) rungs in \(U_{out}\), we get at most \(7 + l_C \le l - 3\) rungs for U, a contradiction.

Claim 5 Both A and C must each contain at least one edge of a rung of U.

We have seen that the claim is true for A. Therefore, assume it would not hold for C. Similar to Claim 4, there are two cases:

First, A might only contain part of a single rung of U. Then all other \(l - 1\) rungs must be contained in \(U_{in}\). \(U_{in}\) must then contain exactly two (inclusion-) maximal subladders \(L_1, L_2\) which are connected at one stringer via a path. As a and b are incident with the same rung R of U and R is not a rung of \(L_1\) or \(L_2\), we can conclude that a and b are either both in \(L_1\) (or both in \(L_2\)), but not on the rung that is incident with the paths to c and d, or a and b are both not on \(L_1\) or \(L_2\) at all.

If a and b are both in \(L_1\) or \(L_2\), then each of \(L_1\) and \(L_2\) has two disjoint paths continuing their stringers to c and d. Furthermore, none of those paths contains a or b. (One path goes through the other ladder, and we use that a and b are not on the first rung.) This implies that one of \(L_1\) and \(L_2\) contains at most 9 rungs by Lemma 9 (vi), while the other can contain only 2 rungs by Lemma 9 (i). This sums up to at most \(11 < l - 1\) rungs for \(U_{in}\), a contradiction.

If a and b were not in \(L_1\) or \(L_2\), each of the ladders con contain at most 5 rungs by Lemma 4 (i). This sums up to at most \(10 < l - 1\) rungs for U, which is again a contradiction.

Second, A might contain part of several rungs of U, resulting in A containing a proper subladder of U. This subladder can contain up to \(l_A\) rungs. \(U_{in}\) now contains exactly two (inclusion-) maximal subladders \(L_1, L_2\) which are connected at one stringer via a path. Furthermore, one of the subladders (say \(L_1\)) has stringers continued to a and b.

We use the argument from the first case again to see that each of \(L_1, L_2\) has a path connecting it to c and another to d, both starting at its ladder stringers at the same end of the subladder. Furthermore, \(L_2\) cannot contain a or b. In \(L_1\), a and b are used to continue its stringers at the same end, so \(L_1 - a - b\) contains a subladder \(L'_1\) which has at most one rung less than \(L_1\) and contains neither a nor b. We can therefore apply Lemma 9 (i) to see that \(L'_1\) and \(L_2\) can only contain up to 2 rungs each. This means \(L_1\) can only contain up to 3 rungs, which implies an upper bound of \(3 + 2 = 5\) rungs for \(U_{in}\). Together with \(l_A\) rungs in \(U_{out}\), we arrive at an upper bound of \(5 + l_A \le l - 2\) rungs for U, a contradiction.

For our next claim, we pick among all possible rungs \(R_A\) that are (at least partly) contained in A and among all possible rungs \(R_C\) that are (at least partly) contained in C those two that are closest to each other (measured in the number of rungs between them).

Let \(L_W\) be the subladder of U that contains exactly all rungs between \(R_A\) and \(R_C\). Let \(L_{R_A}\) be the (inclusion-) maximal subladder of \(U - L_W\) that contains \(R_A\), and let \(L_{R_C}\) be the (inclusion-) maximal subladder of \(U - L_W\) that contains \(R_C\). Then all rungs of U are contained in exactly one of \(L_{R_A}, L_W\) and \(L_{R_C}\).

Claim 6 \(L_W\) contains at least 3 rungs.

First, we will see how many rungs there can be situated in \(L_{R_A}\) and \(L_{R_C}\). If A contains (a part of) more than one rung, it must contain all rungs completely. Furthermore, all rungs of \(L_{R_A}\) must then be in A, resulting in \(l_A\) rungs. Alternatively, A might contain part of only one rung. Then the rest of \(L_{R_A}\) must be contained in W. There, it contains exactly one (inclusion-) maximal subladder \(L_1\) that must contain all but one rung of \(L_{R_A}\). Furthermore, \(L_1\) has both stringers at one end continued by one path each to a and b. By Lemma 6, there can be only 6 rungs of \(L_{R_A}\) in W, resulting in up to \(6 + 1 = 7 \le l_A\) rungs for \(L_{R_A}\).

The same argumentation also holds for C: C might contain all rungs of \(L_{R_C}\), resulting in \(l_C\) rungs. The only alternative would be that C only contains part of a single rung of \(L_{R_C}\). But then all other rungs of \(L_{R_C}\) must be part of a single subladder \(L_2\). At one end of \(L_2\), both stringers are continued via one path each to c and d, respectively. Furthermore, \(L_2\) is nor allowed to contain a or b as those vertices are somewhere on the border of \(L_{R_A}\) and \(L_W\). We can therefore conclude that \(L_2\) can only contain up to 2 rungs by Lemma 9 (i). This results in an upper bound of \(2 + 1 = 3 < l_C\) rungs for \(L_{R_C}\).

Now, we can conclude that \(L_{R_A}\) can only contain up to \(l_A\) rungs, while \(L_{R_C}\) can contain at most \(l_C\) rungs. This means there must be at least 3 rungs left for \(L_W\), proving Claim 6.

Claim 7 U contains an X-wing in W.

Let \(v_1, v_2\) be the endvertices of the part of \(R_A\) that is contained in A. Similarly, let \(v_3, v_4\) be the endvertices of the part of \(R_C\) that is contained in C. In \(L_{R_A}\), \(v_1\) has two (internally) disjoint paths to the ladder stringers \(S_1, S_2\) of U. One of them crosses \(v_2\), so we pick the other path \(Q_1\). Say \(Q_1\) connects \(v_1\) to \(S_1\). Similarly, there is a path \(Q_2\) on \(L_{R_A}\) that does not cross \(v_1\) and connects \(v_2\) to \(S_2\).

\(S_1\) is connected to all rungs of U, so in particular, we can find a path \(T_1\) on \(S_1\) that connects \(Q_1\) with the first rung of \(L_W\) (the one that is closest to \(L_{R_A}\)). Together the paths \(Q_1\) and \(T_1\) form a path \(P'_1\) that connects \(v_1\) to a stringer of \(L_W\). Thereby, \(P'_1\) needs to enter W via a or b. Therefore, \(P'_1\) contains a or b. This means that \(P'_1\) contains a subpath \(P_1\) in W connecting a or b to the end of a stringer of \(L_W\). Similarly, we can find a path \(P_2\) in W connecting the other vertex of a and b to the other end of a stringer of \(L_W\) (situated at the same end of \(L_W\)).

On the other side of \(L_W\), we apply the same approach to \(v_3\) and \(v_4\) to find a path \(P_3\) in W connecting c to the end of a stringer of \(L_W\), and another path \(P_4\) connecting d to the last stringer end of \(L_W\). Note that by construction, \(P_1, P_2, P_3, P_4\) and \(L_W\) are internally disjoint and lie in W. Together, they form an X-wing. \(\square \)

4 Small Ladder

In this section, we will prove that the elementary ladder with three rungs has the edge-Erdős–Pósa property. With that end in view, from now on, a ladder is always supposed to be a subdivision of an elementary ladder with three rungs.

The proof goes as follows: We start with an arbitrary 2-connected graph G that contains a single vertex v intersecting all ladders in said graph. We choose a tree in \(G-v\) that contains all neighbours of v that has certain properties. Then, if T is large in some sense, we find many edge-disjoint ladders inside the union of T and v. Otherwise, G has a very simple structure (after removing some edges), which we can exploit to either find many edge-disjoint ladders or a bounded edge set intersecting all ladders.

This implies that the edge-Erdős–Pósa property holds whenever G is a 2-connected graph that contains a single vertex intersecting all ladders. We take advantage of a few useful techniques when dealing with the edge-Erdős–Pósa property, to see that then the edge-Erdős–Pósa property also holds in general, that is when G is an arbitrary graph.

Almost the same proof can be used to prove that the house graph (Fig. 15) has the edge-Erdős–Pósa property as well.

Fig. 15
figure 15

The house graph

4.1 Useful Techniques

We start by proving that it is sufficient to only check the edge-Erdős–Pósa property in graphs that are 2-connected and contain a single vertex intersecting all ladders. Furthermore, we may assume that such graphs do not contain a ladder with a bounded number of edges. Essentially, we only need to check whether the edge-Erdős–Pósa property holds in a specific subset of all graphs to deduce that it holds in general. These techniques have been used before (see for example in [1]) and may be useful in many different settings.

In the following, let \(\mathcal {H}\) be any class of graphs. We say that \(\mathcal {H}\) has the edge-Erdős-Pósa property in a family of graphs \(\mathcal {G}\) if there is a function \(f:{\mathbb {N}}\rightarrow {\mathbb {N}}\) such that for every \(k \in {\mathbb {N}}\) every graph \(G \in \mathcal {G}\) either contains k edge-disjoint members of \(\mathcal {H}\) or an edge hitting set for those of size at most f(k).

If we want to show that \(\mathcal {H}\) has the edge-Erdős–Pósa property, then the first lemma tells us that we may specify an integer m at the beginning of the proof and then only check the edge-Erdős–Pósa property in graphs that do not contain a member of \(\mathcal {H}\) with at most m edges.

Lemma 12

Let \(\mathcal {G}_\mathcal {H}^m\) be the family of graphs that do not contain a member of \(\mathcal {H}\) with at most m edges. If \(\mathcal {H}\) has the edge-Erdős–Pósa property in \(\mathcal {G}_\mathcal {H}^m\) then it already has the edge-Erdős–Pósa property in the family of all graphs. If g is an edge-Erdős–Pósa function in \(\mathcal {G}_\mathcal {H}^m\) that satisfies \(g(k)\ge g(k-1)+m\) for all \(k\ge 2\) then g is also an edge-Erdős–Pósa function in the family of all graphs.

Proof

We know that the edge-Erdős–Pósa property holds in the class \(\mathcal {G}_\mathcal {H}^m\). Hence, we only need to check the edge-Erdős–Pósa property for all graphs that contain a member of \(\mathcal {H}\) with at most m edges. This, however, is very easy. For any such graph, just remove that member and do induction on k. \(\square \)

With the next lemma, we may only look at graphs that contain a single vertex intersecting all members of \(\mathcal {H}\), provided \(\mathcal {H}\) has the vertex-Erdős–Pósa property. Such a vertex is also called 1-vertex-hitting-set.

Lemma 13

(1-vertex-hitting-set [1]) Let \(\mathcal {G}_\mathcal {H}^*\) be the family of graphs that contain a vertex that intersects all members of \(\mathcal {H}\) and let \(\mathcal {H}\) have the vertex-Erdős-Pósa property. If \(\mathcal {H}\) has the edge-Erdős-Pósa property in \(\mathcal {G}_\mathcal {H}^*\), then it has the edge-Erdős-Pósa property in the family of all graphs. Furthermore, if f is a vertex-Erdős–Pósa function and g is an edge-Erdős–Pósa function in \(\mathcal {G}_\mathcal {H}^*\), then \(f \cdot g\) is an edge-Erdős–Pósa function in the family of all graphs.

Proof

Let k be a positive integer and let G be any graph. Let X be a minimal vertex hitting set in G. By induction on the size of X, we can show that there are either k edge-disjoint subgraphs of G that belong to \(\mathcal {H}\) or a set of at most |X|g(k) edges that intersect all subgraphs of G that belong to \(\mathcal {H}\) (this is not obvious but not very hard to prove either). Note that G belongs to \(\mathcal {G}_\mathcal {H}^*\) if \(|X|=1\) which implies the induction start.

Since the class \(\mathcal {H}\) has the vertex-Erdős–Pósa property, there are either k disjoint subgraphs of G that belong to \(\mathcal {H}\), which are also edge-disjoint, or a vertex hitting set of size at most f(k). In the latter case together with the previous observation, we find an edge hitting set of size at most f(k)g(k). \(\square \)

The last lemma tells us that we may disregard all graphs that are not connected if all members of \(\mathcal {H}\) are connected. On top of this, we may also disregard all graphs that are not 2-connected if all members of \(\mathcal {H}\) are 2-connected.

Lemma 14

For \(i\in \{1,2\}\), let \(\mathcal {G}_i\) be the family of i-connected graphs. Fix \(i\in \{1,2\}\) and let \(\mathcal {H}\) be a class of graphs such that each member is i-connected. If \(\mathcal {H}\) has the edge-Erdős–Pósa property in \(\mathcal {G}_i\) then it has the edge-Erdős–Pósa property in the family of all graphs. If g is an edge-Erdős–Pósa function in \(\mathcal {G}_i\) and either

  1. (i)

    it is a linear function of the form \(g(k) = c(k-1)\) for some \(c > 0\) or

  2. (ii)

    it is a polynomial with non-negative coefficients such that all terms with non-zero coefficients have degree at least 2

then it is also an edge-Erdős–Pósa function in the family of all graphs.

Proof

Let \(\mathcal {H}\) have the edge-Erdős–Pósa property in \(\mathcal {G}_1\) with hitting set bound g. Let G be a graph with multiple components and let \(k\in {\mathbb {N}}\). Since all members of \(\mathcal {H}\) are connected, we can deal with the components separately. First, remove all components that do not contain a member of \(\mathcal {H}\) as they are not needed. Let \(\ell _j\) be the maximum number of edge-disjoint members of \(\mathcal {H}\) in the j-th component of G. If the sum of the \(\ell _j\) is at least k, then we find k edge-disjoint members of \(\mathcal {H}\). So we may assume that the sum of the \(\ell _j\) is smaller than k. Now each component is 1-connected and we can use the assumptions to find an edge-hitting set of size at most \(g(\ell _j+1)\) in the j-th component. One can check that if g satisfies one of the conditions in the statement, that the sum of \(g(\ell _j+1)\) over all components is at most g(k).

If all members of \(\mathcal {H}\) are 2-connected, one can do the same by looking at the blocks of G instead of the components. \(\square \)

Technically, as these lemmas are stated, we cannot use them together. However it is possible to apply Lemmas 14 and 12 iteratively after Lemma 13.

4.2 (Am)-Trees

Throughout this section, A will be assumed to be a subset of the vertices of a graph. By Mader’s theorem [11], A-paths have the edge-Erdős–Pósa property, that is paths whose endvertices lie in A and which are otherwise disjoint from A. These paths are trees that contain exactly two vertices of the vertex set A. For the proof of the main theorem, we need to generalize this notion to trees that contain more than two vertices of the vertex set A. An (Am)-tree is a tree that contains m vertices of A. In this section, we will prove that these trees have the edge-Erdős–Pósa property. The proof relies on A-Steiner-trees, which are trees that contain all vertices of A. Kriesell [9] conjectured that if no edge set of size at most \(2k-1\) separates two vertices of A in a graph G, then there are k edge-disjoint A-Steiner-trees in G. In other words, the A-Steiner-trees have the edge-Erdős–Pósa property with edge-Erdős–Pósa function \(2k-1\). There have been multiple advances on this conjecture. First, Lau [10] proved Kriesell’s conjecture when there is no edge set of size at most \(26k-1\) that separates A. West and Wu [19] improved this bound to \(6.5k-1\). Finally as of now, the best known bound is \(5k+3\), which was proven by DeVos, McDonald and Pivotto [5].

Theorem 3

(DeVos, McDonald and Pivotto [5]) A-Steiner-trees have the edge-Erdős–Pósa property with edge-Erdős–Pósa function \(5k+3\).

In order to prove that the (Am)-trees have the edge-Erdős–Pósa property, a lemma is necessary. For that we define, a mark in a graph G as a function \(f:V(G)\rightarrow \{0,1\}\); a vertex \(v\in V(G)\) is marked if \(f(v)=1\). When we decompose G into edge-disjoint subgraphs \(G_1,\ldots ,G_k\) such that \(G=\bigcup _{i=1}^kG_i\), we say that this decomposition is m-good if for \(i\in [n]\), there is a mark \(f_i\) for \(G_i\) such that at least m vertices in \(G_i\) are marked and additionally, for any \(v\in V(G)\), it holds that \(\sum _{i=1}^n f_i(v)=f(v)\). The last condition means that each marked vertex of G is marked in exactly one graph \(G_i\).

Raymond, Sau and Thilikos [13] showed that for any \(m\in {\mathbb {N}}\) and any tree T with sufficiently many marked vertices, there is an m-good decomposition of T into two subtrees. Through an induction, one obtains a generalization of this.

Lemma 15

Let \(k, m \in {\mathbb {N}}\), let T be a tree and let \(f:V(T)\rightarrow \{0,1\}\) be a mark in T. Suppose there are at least 2mk marked vertices in T. There exist edge-disjoint subtrees \(T_1, \ldots , T_k\) of T with \(T=\bigcup _{i=1}^k T_i\) such that this decomposition is m-good.

Note that a marked vertex of T may be contained in multiple subtrees \(T_i\) but it counts as a marked vertex only for one of those subtrees.

Now we are ready to prove that the (Am)-trees have the edge-Erdős–Pósa property.

Theorem 4

Let \(m\ge 2\) be an integer. The (Am)-trees have the edge-Erdős–Pósa property with edge-Erdős–Pósa function \(f(k)=2m^2k^2\).

Proof

Let \(k\in {\mathbb {N}}\) and let G be a graph and \(A\subseteq V(G)\). By Lemma 14, we may assume that G is a connected graph. We do induction on the size of A to show that

$$\begin{aligned}{} & {} G\, \text { contains either }\, k\, \text {edge-disjoint}\, (A,m)\text {-trees or an edge hitting set of size at most }\nonumber \\{} & {} \quad \, (m-1)k|A| \,\text {for these trees}. \end{aligned}$$
(1)

If \(|A|<m\), the empty set intersects all (Am)-trees since there are no (Am)-trees in G. Thus, the induction start is true. Now assume that \(|A|\ge m\) and let \(a\in A\). For each vertex \(v\in A{\setminus }\{a\}\), add a vertex set \(A_v\) of k new vertices to G such that each vertex in \(A_v\) is adjacent only to v. Let \(G'\) be the resulting graph.

Suppose there is a set \(\mathcal {P}\) of \((m-1)k\) edge-disjoint paths in \(G'\) from a to the vertices in \(A^*=\bigcup _{v\in A{\setminus }\{a\}} A_v\). Order the vertices \(v\in A\) by the number of paths that end in \(A_v\), that is, let \(v_1\in A\) such that the most paths of \(\mathcal {P}\) end in \(A_{v_1}\), \(v_2\in A\) the second most and so on. By construction, at most k paths of \(\mathcal {P}\) may end in any given set \(A_v\). Therefore, there are at least \(m-1\) distinct sets \(A_v\) such that a path of \(\mathcal {P}\) ends in \(A_v\). Thus, for \(i\in [m-1]\), at least one path \(P_i\in \mathcal {P}\) ends in \(A_{v_i}\). Since all paths in \(\mathcal {P}\) contain a, the union \(\bigcup _{i=1}^{m-1}P_i\) is a connected graph and moreover, it contains the vertices \(a,v_1,\ldots , v_{m-1}\). Any spanning tree of this union restricted to G is a tree that contains at least m vertices of A and, therefore, contains an (Am)-tree \(T_1\). Remove the paths \(P_1,\ldots ,P_n\) from \(\mathcal {P}\) and observe that at most \(k-1\) of the remaining paths in \(\mathcal {P}\) end in any given set \(A_v\). Inductively, we can deduce that there are \(k-1\) edge-disjoint (Am)-trees \(T_2,\ldots ,T_k\) in the union of the remaining paths of \(\mathcal {P}\). Together with \(T_1\), these are k edge-disjoint (Am)-trees in G and we are done.

Therefore by the edge-version of Menger’s theorem, there is an edge hitting set of size at most \((m-1)k-1\) for the paths from a to \(A^*\) in \(G'\); let \(X'\) be an edge hitting set of minimum size. Note that for \(v\in A\) and \(u\in A_v\), if \(uv\in X'\), then all edges incident to \(A_v\) lie in \(X'\). Indeed, as \(X'\) is minimum, \(X'\setminus \{e\}\) is not an edge hitting set for each edge \(e \in X'\). Thus, there is a path from a to u in \(G'-(X'\setminus \{e\})\), in particular, there is a path P from a to v in \(G'-X'\). If there was an edge \(f\notin X'\) incident to \(A_v\), then \(P\cup f\) would be a path in \(G'\) from a to \(A_v\) that is not met by \(X'\). This would be a contradiction.

It follows that either all edges incident to a given set \(A_v\) lie in \(X'\) or none. As the number of edges incident to \(A_v\) is k and as the size of \(X'\) is less than \((m-1)k\), there is a set \(A'\subseteq A\) of size at most \(m-2\) that contains the vertices v such that the edges incident to \(A_v\) are contained in \(X'\). Let \(X=X'\cap E(G)\); clearly, \(|X|\le |X'|\). In \(G-X\), only the vertices in \(A'\) may lie in the same component as a, however, as \(|A'\cup \{a\}|<m\), there is no (Am)-tree in \(G-X\) that contains a or any vertex in \(A'\).

Apply induction on \(G-X\) with vertex set \(A^*=A{\setminus } (A'\cup \{a\})\). There are either k edge-disjoint \((A^*,m)\)-trees in \(G-X\) or a set Y of at most \((m-1)k|A^*|\) edges that intersect all (Am)-trees in \(G-X\). Observe in the first case that any \((A^*,m)\)-tree is an (Am)-tree and in the latter case that \(X\cup Y\) is an edge hitting set for the (Am)-trees of size at most \((m-1)k+(m-1)k|A^*|\le (m-1)k|A|\). This concludes the proof of (1).

This almost finishes the proof of the theorem, we just need to bound the size of A. Suppose the size of A is at least 2mk. Since G is connected, there is a spanning tree T in G, which contains all vertices of A. Introduce a mark f on T such that exactly the vertices in A are marked. Apply Lemma 15 to T to find an m-good decomposition \(T_1,\ldots ,T_k\) of T. Since each tree \(T_i\) contains at least m marked vertices, it is an (Am)-tree (or rather contains one). As the trees \(T_1,\ldots , T_k\) are edge-disjoint, we are done.

Therefore, we may assume that the size of A is bounded by 2mk. Together with (1) this implies that the size of an edge hitting set may be bounded by \(2m^2k^2\). This concludes the proof of the Theorem. \(\square \)

When we choose \(m=2\), this is actually a very simple proof that shows that the A-paths have the edge-Erdős–Pósa property, admittedly, with a worse edge-Erdős–Pósa function than Mader obtained.

4.3 Graphs Without Ladders (or Houses)

In this section, we are going to characterize the graphs that do not contain a ladder. Recall that \(\varTheta _r\) is the multigraph on two vertices with r parallel edges between them. We call a graph that is a subdivision of \(\varTheta _r\) where each edge has been subdivided at most once a short \(\varTheta _r\) or just short \(\varTheta \), see Fig. 16a. Note that, as short \(\varTheta \)’s are graphs, all but at most one edge have to be subdivided. Let H be a short \(\varTheta \). The endvertices of H are the two vertices that are not inside a subdivided edge. We call the other vertices of H interior vertices and the order of H is the number of its interior vertices, that is, \(|V(H)|-2\). For technical reasons, we also call a diamond (see Fig. 16b) a short \(\varTheta _2\), where the endvertices are the vertices of degree 2.

Fig. 16
figure 16

a A short \(\varTheta _6\) of order 5. b The diamond graph, a short \(\varTheta _2\) of order 2 with endvertices on top and bottom

For \(i \in [m]\), let \(\varTheta ^i\) be a short \(\varTheta \) with endvertices \(v_1^i\) and \(v_2^i\) such that \(\varTheta ^1, \ldots , \varTheta ^m\) are disjoint. We now identify \(v_2^i\) and \(v_1^{i+1}\) for \(i\in [m-1]\) and also \(v_2^m\) and \(v_1^1\). We call the obtained graph a circular ordering of short \(\varTheta \)’s, see Fig. 17. Circular orderings of \(\varTheta \)’s are exactly the 2-connected graphs that do not contain a ladder.

Fig. 17
figure 17

A circular ordering of short \(\varTheta \)’s

Lemma 16

Let G be a 2-connected graph with at least six vertices. Then G does not contain a ladder if and only if G is a circular ordering of short \(\varTheta \)’s. Additionally, if the length of a longest cycle in G is at most 4, then if G does not contain a ladder, the graph G is also a short \(\varTheta _r\).

Proof

Assume that G is a circular ordering of short \(\varTheta \)’s and suppose that G contains a ladder L. The ladder L contains a cycle C of length at least 6. Since the longest cycle in any short \(\varTheta \) has length at most 4, C has to intersect all the endvertices of the short \(\varTheta \)’s in G. Moreover, in L there is a path between two vertices at distance at least 3 on C and whose interior is disjoint from C. However, any path that is disjoint from C in G connects two vertices at distance at most 2 on C (the endvertices of a short \(\varTheta \) or any two vertices in a diamond). This is a contradiction, which means that G does not contain a ladder.

Now assume that G is a graph on at least six vertices that does not contain a ladder. During the proof we will find several ladders if G does not satisfy certain requirements. As G does not contain any ladders, this would be a contradiction, which immediately implies that G does have to satisfy those requirements. Usually, when we say that there is a ladder, we will only specify which the two vertices of degree 3 are. One only has to check that there are three disjoint paths between these two vertices, two of which have length at least 3. The following observation is useful for finding ladders.

$$\begin{aligned}{} & {} A\, \text { cycle }\, C\, \text { of length at least }\, 5\, \text { together with a }\, V(C)\text {-path of length at least }\,\nonumber \\{} & {} \quad 3\, \text { is a ladder.} \end{aligned}$$
(2)

Let C be a longest cycle in G. We start by proving a few structural properties of G. We say that a vertex v lies outside of C if \(v\notin V(C)\).

Claim 1 All neighbours of a vertex outside of C lie in C.

Suppose otherwise. Let \(w_1,w_2\notin V(C)\) be adjacent vertices in G. As G is 2-connected, for \(i\in [2]\), there is a path \(P_i\) from \(w_i\) to \(c_i\in V(C)\) such that \(P_1\) and \(P_2\) are disjoint. The path \(P=P_1 \cup w_1w_2 \cup P_2\) has length at least 3. If the length of C is at most 4, then there is a path in C between \(c_1\) and \(c_2\) of length at most 2. Replacing this path by P, yields a cycle of length at least 5, which is a contradiction to the maximality of C. If the length of C is at least 5, then by (2), \(P\cup C\) is a ladder. This is a contradiction, which proves Claim 1.

Claim 2 The degree of every vertex outside of C is exactly 2. Additionally, any vertex outside of C is adjacent to two vertices at distance 2 in C.

Let u be a vertex outside of C. As G is 2-connected, the degree of u has to be at least 2 and by Claim 1, all of its neighbours have to be in C. Let vw be two neighbours of u. If the distance in C between v and w is 1, that is, \(vw\in E(C)\), it is possible to increase the length of C by additionally visiting u. This is a contradiction. If the distance between v and w is at least 3, then C together with the two edges uvuw is a ladder. Here the two vertices of degree 3 are v and w. Again, we obtain a contradiction, which implies that the distance in C between each pair of neighbours of u is exactly 2.

Suppose u has three neighbours \(v_1,v_2,v_3\) in C. Take any path P in C that contains these three vertices and without loss of generality assume that \(v_2\) is in inbetween \(v_1\) and \(v_3\). Then P together with \(uv_1,uv_2,uv_3\) is a ladder where the vertices of degree 3 are u and \(v_2\); a contradiction. Note that we use here that any path in C between the neighbours of u has length at least 2. This finishes the proof of Claim 2.

Claim 3 All chords of C are between vertices at distance exactly 2 in C.

An edge between two vertices at distance at least 3 in C together with C is a ladder and hence, not present. This implies Claim 3.

Claim 4 If \(v_1,v_2,v_3,v_4\) are vertices in C and occur in this order in C (after picking any orientation on C), then there are no vertices \(z_1,z_2\) outside of C such that \(z_1\) is adjacent to \(v_1\) and \(v_3\) while \(z_2\) is adjacent to \(v_2\) and \(v_4\).

Otherwise, this would yield a ladder with \(v_2\) and \(v_3\) as the vertices of degree 3.

Now we are ready to prove the statement of the lemma. Let \(v_1v_2\ldots v_n\) be an ordering of the vertices of C in some direction of C. Let E be the set of chords of C. We want to show that \(G'=G-E\) is a circular ordering of short \(\varTheta \)’s. For now we will work in \(G'\).

If there is no vertex of degree at least 3 in \(G'\), then \(G'\) is a cycle and therefore, a circular ordering of short \(\varTheta \)’s (each short \(\varTheta \) is a \(\varTheta _1\) of order 0). Hence, we may assume that there is a vertex of degree 3, which by Claim 2, has to be contained in C, say \(v_1\). By Claim 2 again, the neighbourhood of \(v_1\) can be partitioned into vertices that are adjacent to only \(v_1\) and \(v_3\) and into vertices that are adjacent to only \(v_1\) and \(v_{n-1}\). Without loss of generality assume that \(v_1\) and \(v_3\) have at least one common neighbour outside of C. By Claim 2 and Claim 4, \(v_2\) cannot be adjacent to vertices other than \(v_1\) and \(v_3\) in \(G'\). Now the vertices \(v_1,v_3\) and their common neighbours induce a short \(\varTheta \) that is separated from the rest of \(G'\) by \(v_1\) and \(v_3\).

We proceed with \(v_3\). All neighbours of \(v_3\) outside of C are adjacent only to \(v_1\) and \(v_3\) or only to \(v_3\) and \(v_5\). If \(v_3\) and \(v_5\) have any common neighbours, then by the same argument as before, we obtain a short \(\varTheta \) between \(v_3\) and \(v_5\) that is separated from the rest of \(G'\) by \(v_3\) and \(v_5\). Otherwise, if \(v_3\) and \(v_5\) do not have any common neighbours there is a short \(\varTheta _1\) of order 0 between \(v_3\) and \(v_4\). In any case, continue with \(v_5\) or \(v_4\) respectively until we get back to \(v_1\). Note that as \(v_2\) is adjacent only to \(v_1\) and \(v_3\), there cannot be a short \(\varTheta \) such that \(v_1\) is in its interior. Therefore, we obtain that \(G'\) is a circular ordering of \(\varTheta \)’s. By construction, this circular ordering contains no short \(\varTheta _1\) of order 1.

Now we need to deal with the chords of C. First, suppose the length of C is 3. Then \(G=C\) since every vertex outside of C would allow us to increase the length of C. This means that G contains fewer than six vertices, which is a contradiction. Now suppose the length of C is 4. By Claim 2, all vertices outside of C are adjacent to either \(v_1\) and \(v_3\) or \(v_2\) and \(v_4\). By Claim 4, all vertices outside of C have the same neighbourhood, say \(v_1\) and \(v_3\). As \(|V(G)|\ge 6\), there is at least one vertex u outside of C. If the chord \(v_2v_4\) exists, we obtain the cycle \(v_1v_2v_4v_3u\) whose length is 5, which is a contradiction to the maximality of C. It follows that G is a short \(\varTheta \) between \(v_1\) and \(v_3\). Note that any short \(\varTheta _r\) where \(r\ge 2\) is also a circular ordering of short \(\varTheta \)’s.

Hence, we may assume that the length of C is at least 5. Let e be a chord of C. By Claim 3, the distance of the endvertices of e in C is exactly 2, say \(e=v_iv_{i+2}\). We add the edge e to \(G'\). First, suppose that \(v_i\) and \(v_{i+2}\) are endvertices of short \(\varTheta \)’s (possibly the same one). The vertices \(v_i\) and \(v_{i+2}\) cannot simultaneously also lie in the interior of a short \(\varTheta \) and therefore, \(v_{i+1}\) is adjacent only to \(v_i\) and \(v_{i+2}\). After adding the edge \(v_iv_{i+2}\) to the graph, there is a short \(\varTheta \) between \(v_i\) and \(v_{i+2}\) with interior vertex \(v_{i+1}\). The resulting graph still is a circular ordering of short \(\varTheta \)’s where no short \(\varTheta \) is a short \(\varTheta _1\) of order 1.

Now suppose that one endvertex of e, say \(v_i\), is a vertex in the interior of a short \(\varTheta \) of order at least 2. By construction, there is a short \(\varTheta \) of order at least 2 between \(v_{i-1}\) and \(v_{i+1}\) with interior vertex \(v_i\). Then there is a ladder with \(v_{i-1}\) and \(v_i\) as vertices of degree 3, which is a contradiction.

Next suppose that exactly one of the endvertices of e, again say \(v_i\), is in the interior of a short \(\varTheta \) of order 1. The endvertices of this short \(\varTheta \) are \(v_{i-1}\) and \(v_{i+1}\) and since this short \(\varTheta \) cannot be a short \(\varTheta _1\), the vertices \(v_{i-1}\) and \(v_{i+1}\) are adjacent. Moreover, \(v_{i+2}\) is the endvertex of some short \(\varTheta \); otherwise we land in the last case, which resulted in a contradiction. Hence, there is a short \(\varTheta \) between \(v_{i+1}\) and \(v_{i+2}\), which means it is a short \(\varTheta _1\) of order 0. We obtain a diamond between \(v_{i-1}\) and \(v_{i+2}\), which is a short \(\varTheta _2\). The resulting graph is still a circular ordering of short \(\varTheta \)’s and any short \(\varTheta _1\) has order 0.

Lastly, suppose that both endvertices of e are vertices in the interior of a short \(\varTheta \) of order 1. Again we deduce that \(v_{i-1}\) and \(v_{i+1}\) are adjacent as well as \(v_{i+1}\) and \(v_{i+3}\). If the length of C is at least 6, then we obtain a ladder where the vertices of degree 3 are \(v_{i-1}\) and \(v_{i+1}\) (\(v_{i+1}\) and \(v_{i+3}\) is also a possible choice). So suppose the length of C is exactly 5. The graph induced by the vertices in C contains a 4-wheel with center vertex \(v_{i+1}\) (a cycle of length 4 together with a center vertex that is adjacent to all vertices on that cycle). There is a Hamiltonian path between any two vertices in the 4-wheel. Suppose there is a vertex u outside of C, then u has two neighbours vw on C. However, the edges uvuw together with a Hamiltonian path between vw in G[C] yield a cycle of length 6. This is a contradiction. Now we obtain another contradiction as \(|V(G)|=|V(C)|<6\).

We have now dealt with all possible cases for the chord e. Inductively, add all chords of C to \(G'\). Observe that after adding a chord we either obtained a contradiction or the resulting graph was still a circular ordering of short \(\varTheta \)’s where no short \(\varTheta \) is a short \(\varTheta _1\) of order 1. This finishes the proof. \(\square \)

Using a similar approach it is not that hard to see that the following characterization is also true. We say that a graph G is an H-expansion if and only if it contains H as a minor.

Lemma 17

Let G be a 2-connected graph with at least five vertices. Then G does not contain a house-expansion if and only if G is a cycle or a short \(\varTheta \).

4.4 Proof of Theorem 1

We need just one more very basic lemma which as far as we know, has not been written down anywhere else. A segment of a tree T is a non-trivial path P in T between two vertices whose degree in T is distinct from 2 and such that all the interior vertices of P have degree 2 in T.

Lemma 18

The number of segments of a tree is at most 2 times the number of its leaves.

Proof

Through a simple induction, we obtain that the number of branch vertices in a tree, that is, vertices of degree at least 3, is bounded from above by the number of its leaves. Let T be a tree with \(\ell \) leaves and r branch vertices; it follows that \(r\le \ell \). Clearly, we may assume that T contains at least two vertices and thus, a segment. Contract all segments of T to single edges and denote by \(T'\) the resulting tree. Observe that the number of segments of T coincides with the number of edges in \(T'\) and that the vertex set of \(T'\) is exactly the set of leaves and branch vertices of T. We deduce that \(|E(T')|=|V(T')|-1=r+\ell -1<2\ell .\) \(\square \)

Finally, we can prove that the house graph and the ladder with three rungs have the edge-Erdős–Pósa property. As there is a significant overlap in the two proofs, we start with a common lemma.

Lemma 19

Let H be either the house graph or the ladder with three rungs. Let G be a 2-connected graph that contains a vertex v that intersects all H-expansions and each H-expansion contains at least eight edges. Additionally, assume that there are no k edge-disjoint H-expansions in G. Then there is an edge set \(E \subseteq E(G)\) of size at most 104k such that in \(G-E\) all neighbours of v are of degree 2. Moreover, there are at most 6k vertices at distance 2 from v.

Proof

Note that, whenever we find k edge-disjoint ladders or a ladder with less than eight edges, that these are also k edge-disjoint house-expansions or a house-expansion with less than eight edges.

For a tree T, define a pre-leaf as a vertex that is adjacent to at least one leaf. The order of a pre-leaf is the number of leaves it is adjacent to. Let \(P_T\) be the set of pre-leaves and \(P^1_T\subseteq P_T\) the set of pre-leaves of order 1 in T. A leaf \(\ell \) belongs to the unique pre-leaf p it is adjacent to. We also say that \(\ell \) is a leaf of p.

Since G is 2-connected, we immediately obtain that \(G-v\) is connected and therefore, we know that there is a tree in \(G-v\) that contains all neighbours of v and such that all of its leaves are neighbours of v. Indeed, take any spanning tree of \(G-v\) and gradually remove leaves of this tree that are not neighbours of v. Consider all trees in \(G-v\) with this property and let T be the one that maximizes \(|P_T|\) and then minimizes \(|P^1_T|\). First we want to bound the size of \(P_T\).

Claim 1 The size of \(P_T\) is bounded by 6k, that is, \(|P_T|\le 6k\).

Suppose otherwise. Define a mark on T such that exactly the vertices in \(P_T\) are marked; there are at least \(2\cdot 3k\) marked vertices in T. Use Lemma 15 to find a 3-good partition of T into k edge-disjoint trees \(T_1,\ldots , T_k\). Thus, there are distinct marked vertices \(a_i^j\in V(T)\) where \(i\in [3]\) and \(j\in [k]\) such that \(a_i^j\) is marked in \(T_j\).

For \(j\in [k]\), let P be the unique path in \(T_j\) from \(a_1^j\) to \(a_2^j\) and let Q be the unique path in \(T_j\) from \(a_3^j\) to V(P). Let the endvertex of Q on P be r. By construction, the paths in \(T_j\) from r to \(a_1^j\), to \(a_2^j\) and to \(a_3^j\) are disjoint outside of r. At least two of those paths have length at least 1 since the vertices \(a_1^j,a_2^j\) and \(a_3^j\) are distinct, say the paths from r to \(a_1^j\) and \(a_3^j\). As each marked vertex in T is a pre-leaf, each vertex \(a_i^j\) is adjacent to a leaf of T. The graph induced by the vertices V(P), V(Q)v and one leaf of each vertex \(a_i^j\) is a ladder, see Fig. 18. Recall that all leaves of T are neighbours of v.

Fig. 18
figure 18

This graph is a ladder even if \(r=a_2^j\)

As the vertices \(a_i^j\) are distinct, also the leaves of T that belong to them are distinct. Since the trees \(T_1,\ldots , T_k\) are edge-disjoint, we obtain k edge-disjoint ladders from these k trees, which is a contradiction. This proves Claim 1.

Claim 2 For \(n\in {\mathbb {N}}\), if P is a path in \(G-v\) that contains 5n neighbours of v, then there are n ladders in \(G[P\cup \{v\}]\).

Let \(p_1,\ldots ,p_5\) be the first five neighbours of v on P (starting in any endvertex of P). Let \(Q=p_1Pp_{5}\). In \(G[Q\cup \{v\}]\) there is a ladder, as seen in Fig. 19. We proceed with the next five neighbours of v on P to find another ladder that is edge-disjoint from the first one since they intersect only in v. As there are 5n neighbours of v on P, we inductively obtain n edge-disjoint ladders in \(G[P\cup \{v\}]\), which proves Claim 2.

Fig. 19
figure 19

A ladder where v and \(p_3\) are the vertices of degree 3

Claim 3 The number of neighbours of v that are not leaves of T is less than 80k.

Let \(T'\) be the subtree of T that we obtain by removing all leaves of T. We immediately deduce that all leaves of \(T'\) are pre-leaves of T. Hence by Claim 1, the number of leaves of \(T'\) is bounded by 6k and by Lemma 18, the tree \(T'\) contains at most 12k segments. If there are any edges from v to endvertices of segments of \(T'\), remove them; these are at most 24k edges. For each segment S of \(T'\), let \(\ell _S\) be the number of remaining neighbours of v on S and let \(n_S=\lfloor \frac{\ell _S}{5}\rfloor \) be the number of full sets of five neighbours of v on S. If the sum of the \(n_S\) over all segments S is at least k, then applying Claim 2 to each segment of T yields at least k ladders. These ladders are edge-disjoint since no two segments share a neighbour of v. Therefore, we may assume that the sum of the \(n_S\) is smaller than k. The number of edges from v to \(T'\) is at most

$$\begin{aligned} 24k+\sum _{\begin{array}{c} S \text { segment}\\ \text { of } T' \end{array}}\ell _S\le 24k+\sum _{\begin{array}{c} S \text { segment}\\ \text { of } T' \end{array}}(5n_S+4)< 24k+5k+4\cdot 12k<80k. \end{aligned}$$

As \(T'\) contains all neighbours of v that are not leaves of T, this proves Claim 3.

Let \(E_1\) be the set of edges from v to vertices of T that are not leaves. From now on assume that \(E_1\) has been removed from G. All remaining edges incident to v are incident to leaves of T. Note that \(G-E_1\) is still 2-connected. Indeed, the graph \(G[T\cup \{v\}]\) is 2-connected and so is \(G[T\cup \{v\}]-E_1\). Then also \(G-E_1\) has to be 2-connected as \(E_1\subseteq G[T\cup \{v\}]\).

The next thing we want to prove is that leaves of T belonging to pre-leaves of order at least 4, collectively, do not have many neighbours in G.

Claim 4 There are at most 6k leaves of T belonging to pre-leaves of order at least 4 that are adjacent to vertices other than v and their pre-leaf.

First we show that:

$$\begin{aligned}{} & {} \text {If a leaf }~\ell \, \text { of a pre-leaf }~w\, \text { of order at least }~4\, \text { has a neighour }~x\notin \nonumber \\{} & {} \{v,w\}, \,\text { then there is a path from }~x \,\text { to }\,T \,\text { that does not meet }~\ell .\nonumber \\{} & {} \text { All paths from }\,x \,\text { to }\,T \,\text { that are disjoint from }\,\ell \,\text { end in a leaf of }\nonumber \\{} & {} a \,\text { pre-leaf of order }\,1 \,\text { and do not intersect }~v. \end{aligned}$$
(3)

We start by proving that there is a path from x to T that is disjoint from \(\ell \). Clearly, we are done if \(x \in V(T)\) already. If \(x \notin V(T)\), by 2-connectedness of \(G-E_1\), there are two paths from x to T that meet only in x and, hence, at most one of them may contain \(\ell \). Note that no path from x to T may intersect v as all neighbours of v lie in T.

Now let P be a path from x to a vertex \(t\in V(T)\) that does not contain \(\ell \). Add P and the edge \(x\ell \) to T and remove the edge \(w\ell \). It is easy to see that this yields again a tree \(T'\) that contains all neighbours of v such that all its leaves are neighbours of v. Note that w is still a preleaf in \(T'\) as it had leaves other than \(\ell \). We want to prove that t has to be a leaf of a pre-leaf of order 1 by doing a case analysis, which then proves (3).

If \(t=x\) was a preleaf, then we find a ladder with at most 7 edges, see Fig. 20. This is a contradiction.

Fig. 20
figure 20

This is the ladder with seven edges we find

Now suppose that t is not a leaf of T and suppose that x is no pre-leaf of T. The vertex x now becomes the pre-leaf of \(\ell \) in \(T'\) while it was no pre-leaf in T. Note that all pre-leaves of T are still pre-leaves of \(T'\) and hence, \(T'\) has more pre-leaves than T, which is a contradiction to the choice of T.

Lastly, suppose that t is a leaf of T that belongs to a pre-leaf \(w_0\) of order at least 2. The vertex \(w_0\) is still a pre-leaf in \(T'\) (even if \(w_0=w\)) while x again becomes a pre-leaf of \(T'\). Hence, \(T'\) has more pre-leaves than T, which is a contradiction. This finishes the proof of (3).

The next thing we want to do is to bound the number of paths that go into a leaf of a pre-leaf of order 1. The paths that we look at are constructed as in (3).

$$\begin{aligned}{} & {} \text {There are no two distinct leaves }\,\ell _1, \,\ell _2 \,\text { of pre-leaves of order at }\nonumber \\{} & {} \text { least }\,4 \,\text { such that there is a leaf }\,\ell ^* \,\text { of a pre-leaf }\,w_0 \,\text { of order }~1 \nonumber \\{} & {} \text { and for }\,i\in \,[2], \,\text { a path }\,P_i \,\text { from }\,\ell _i \,\text { to }\,\ell ^* \,\text { that is internally disjoint from }\,T \,\nonumber \\{} & {} \text { and }\,v. \end{aligned}$$
(4)

Suppose otherwise. For \(i\in [2]\), let \(w_i\) be the pre-leaf of \(\ell _i\). Follow \(P_1\) from \(\ell _1\) until it intersects \(P_2\) for the first time in a vertex x. Add \(P_2\) and \(\ell _1P_1x\) to T and remove the edges \(\ell _1w_1\) and \(\ell _2w_2\) from T. Let \(T'\) be the resulting tree and observe that all neighbours of v lie in \(T'\) and all leaves of \(T'\) are neighbours of v. The vertex \(w_0\) is not a pre-leaf anymore in \(T'\) while \(w_1\) and \(w_2\) are still pre-leaves of order at least 2 in \(T'\) since their order in T was at least 4 (even if \(w_1=w_2\)). If x is adjacent to both \(\ell _1\) and \(\ell _2\), then x becomes a pre-leaf of order 2 in \(T'\). Now the tree \(T'\) has the same number of pre-leaves but fewer pre-leaves of order 1.

So we may assume that x is not adjacent to both \(\ell _1\) and \(\ell _2\). For \(i\in [2]\), let \(p_i\) be the unique neighbour of \(\ell _i\) on \(P_i\). It follows that \(p_1 \ne p_2\) and that both of these vertices become pre-leaves in \(T'\). Then the number of pre-leaves in \(T'\) is larger than in T. This is a contradiction and thus, proves (4).

By Claim 1, there are at most 6k pre-leaves of order 1 in T and, thus, at most 6k leaves belonging to pre-leaves of order 1. Combining this with (3) and (4), we obtain that there are at most 6k leaves of pre-leaves of order at least 4 that are adjacent to vertices other than v and their pre-leaf, thus, proving Claim 4.

Let \(E_2\) be the set of edges from v to leaves belonging to pre-leaves of order at least 4 that are adjacent to vertices other than v and their pre-leaf. And let \(E_3\) be the set of edges from v to leaves belonging to pre-leaves of order at most 3. It holds that \(|E_2|\le 6k\) and \(|E_3|\le 3\cdot 6k\). Let \(E = E_1 \cup E_2 \cup E_3\). Then it holds that \(|E| \le 104k\) and all neighbours of v in \(G-E\) are adjacent to v and its preleaf, that is, they are of degree 2. Since the vertices at distance 2 from v are the preleaves of T, by Claim 1, there are at most 6k such vertices. This proves Lemma 19. \(\square \)

We start by proving that the house graph has the edge-Erdős–Pósa property.

Theorem 5

The house graph has the edge-Erdős–Pósa property.

Proof

In [17] it was shown that there is a vertex-Erdős–Pósa function g for the ladders that lies in \(\mathcal {O}(k\log k)\). Let \(f_0(k)=236(k-1)\). We prove that \(f=g\cdot f_0\in \mathcal {O}(k^2\log (k))\) is an edge-Erdős–Pósa function for the house-expansions. Let \(k \in {\mathbb {N}}\) and let G be a graph. We assume that G is 2-connected, contains a vertex v intersecting all ladders and no ladder in G contains less than eight edges. To finish the proof, by Lemmas 1213 and 14, it is sufficient to show that G contains either k edge-disjoint ladders or at most \(f_0(k)\) edges that intersect all ladders. Note that \(f_0(k)\ge f_0(k-1)+7\) and \(f_0\) is of the form \(c(k-1)\) for \(c>0\). In the following, we assume that there are no k edge-disjoint ladders in G. Clearly, we would be done otherwise.

Now, by Lemma 19, we can remove an edge set \(E_1\) of size at most 104k such that all neighbours of v are of degree 2. We call the vertices at distance 2 from v majors. For each major that has exactly one common neighbour with v, remove the edge from v to that common neighbour. Let \(E_2\) be the set of these edges. Note that by the lemma, the size of \(E_2\) is bounded by 6k. Let \(w_1, \ldots , w_n\) be the remaining majors. Each major has at least two common neighbours with v. Split v into vertices \(v_1,\ldots , v_n\) such that \(v_i\) is adjacent to all common neighbours of \(w_i\) and v and let \(A_v=\{v_1, \ldots , v_n\}\).

Suppose \(\mathcal {P}= \{P_1,\ldots , P_{4k}\}\) is a set of 4k edge-disjoint \(A_v\)-paths. Observe that any \(A_v\)-path contains exactly two neighbours of v and no two edge-disjoint \(A_v\)-paths can meet in a neighbour of v as their degree is 2. Let the endvertices of \(P_i\) be \(v_{i_1}\) and \(v_{i_2}\). Identify the vertices \(v_{i_1}\) and \(v_{i_2}\) again and add to the resulting cycle in G one common neighbour x of v and \(w_{i_1}\) that does not lie in \(P_i\) and both its edges to v and \(w_{i_1}\). Such a common neighbour exists as \(w_{i_1}\) has at least two common neighbours with v. Remove the edges of \(P_i\) and the vertex x and if after that, there is at most one common neighbour between \(w_{i_1}\) and v or between \(w_{i_2}\) and v, also remove these common neighbours. Then remove \(P_i\) from \(\mathcal {P}\) and any path that intersects one of the removed common neighbours. These are at most 4 paths. Note that any remaining major still has at least two common neighbours with v. Thus, we may continue until we construct k house-expansions.

Hence, we may assume that there are no 4k edge-disjoint \(A_v\)-paths. By Mader’s theorem, we can remove a set \(E_3\) of at most \(8k-8\) such that there are no \(A_v\)-paths anymore. Then any remaining major lies in its own block (they are connected only through v). And, thus, any block that contains v is an edge or a short \(\varTheta \) (it contains v, a major and their common neighbours). No such block contains a house-expansion by Lemma 17 and as every house-expansion has to intersect v, we found a hitting set. The size of this hitting set is \(|E_1 \cup E_2 \cup E_3| \le 118k\).

For \(k\ge 2\), it holds that \(f_0(k) \ge 118k\) and for \(k=1\), it holds that a hitting set of size 0 suffices. Hence, \(f_0\) is an edge-Erdős–Pósa function in the case defined at the beginning of this proof. This finishes the proof. \(\square \)

Now we finish this section by proving that the ladder with three rungs has the edge-Erdős–Pósa property.

Proof of Theorem 1

We start in the same way as the proof for the house graph. We obtain a vertex-Erdős–Pósa function \(g \in \mathcal {O}(k\log k)\) from [17]. For \(f_0(k)=131k^2\), we will prove that \(f=g\cdot f_0\in \mathcal {O}(k^3\log (k))\) is an edge-Erdős–Pósa function for the ladders. Let \(k \in {\mathbb {N}}\) and let G be a graph. We again assume that G is 2-connected, contains a vertex v intersecting all ladders and no ladder in G contains less than eight edges. If we can prove that G contains either k edge-disjoint ladders or at most \(f_0(k)\) edges that intersect all ladders, then by Lemmas 1213 and 14, we are done. Note that \(f_0(k)\ge f_0(k-1)+7\) and \(f_0\) is a polynomial where all coefficients are non-negative and the terms with positive coefficients are of degree at least 2. In the following, we assume that there are no k edge-disjoint ladders in G. Clearly, we would be done otherwise.

By applying Lemma 19, we obtain an edge set \(E_1\) of size at most 104k such that in \(G-E_1\) all neighbours of v are of degree 2. We call the vertices at distance 2 from v majors. Let \(w_1, \ldots , w_n\) be the majors in \(G-E_1\). Split v into vertices \(v_1,\ldots , v_n\) such that \(v_i\) is adjacent to all common neighbours of \(w_i\) and v and let \(A_v=\{v_1, \ldots , v_n\}\). Let \(T_0\) be an \((A_v,3)\)-tree that contains the vertices \(v_{i_1},v_{i_2},v_{i_3}\in A_v\). Identify the vertices \(v_{i_1},v_{i_2},v_{i_3}\) again and see that we obtain a ladder from \(T_0\). Indeed, as all neighbours of v are adjacent only to v and a major, the majors \(w_{i_1},w_{i_2},w_{i_3}\) have to be contained in \(T_0\). Then we obtain a ladder in the same way as in Claim 1 of Lemma 19 in Fig. 18. Now apply Theorem 4 to \(G-E_1\) to either find k edge-disjoint \((A_v,3)\)-trees or a set \(E_2\) of at most \(18k^2\) edges that intersects all such trees. In the first case we immediately obtain k edge-disjoint ladders, which is a contradiction. Thus, identify all vertices in \(A_v\) to the vertex v again and let \(G'=G-E_1-E_2\).

Claim For each \(\ell \in {\mathbb {N}}\), in every block of \(G'\) there are either \(\ell \) edge-disjoint ladders or a set of at most \(5\ell -1\) edges that intersects all ladders.

Assuming this claim is true, we want to show that this proves the theorem. As every ladder in \(G'\) has to be entirely contained in a block of \(G'\) and as blocks are edge-disjoint, we can look at each block separately. First, remove each block that does not contain a ladder. Thus, as each ladder contains v, we remove all blocks that do not contain v. For each of the remaining blocks \(B_1,\ldots , B_n\), count the maximum number of edge-disjoint ladders \(\ell _1,\ldots , \ell _n\ge 1\). If the sum of the \(\ell _i\) exceeds \(k-1\), there are k edge-disjoint ladders in \(G'\subseteq G\) and we are done. Hence, we may assume that the sum of the \(\ell _i\) is at most \(k-1\). Then as \(\ell _i\ge 1\) for \(i\in [n]\), it holds that \(n<k\). By the Claim, we can find a set of at most \(5(\ell _i+1)-1\) edges that intersects all ladders in \(B_i\). Altogether, there is an edge set \(E_3\) of size at most \(\sum _{i=1}^n (5\ell _i+4)\le 5(k-1)+4n \le 9(k-1)\) that intersects all ladders in \(G'\). Then \(E_1\cup E_2\cup E_3\) is an edge hitting set for the ladders in G of size at most \(18k^2+113k\le f_0(k)\), which concludes the proof.

Let us prove Claim 5 now. Clearly, the statement is true if \(\ell =1\), so we may assume that \(\ell \ge 2\). Any block of \(G'\) that does not contain a ladder, contains a set of zero edges that intersects all ladders. Thus, the claim is true in this case as well. Hence, let B be a block of \(G'\) that contains a ladder and therefore, B also has to contain v. Let \(\mathcal {M}\) be the set of majors in \(G'\).

For any major \(w\in \mathcal {M}\), there is a short \(\varTheta \) between v and w that is separated from the rest of \(G'\) by v and w. This is the beginning of a circular ordering of short \(\varTheta \)’s. Remember that by Lemma 16, circular orderings of short \(\varTheta \)’s do not contain ladders.

We claim that:

$$\begin{aligned} \text {there are exactly two vertices of }\,\mathcal {M}\, \text { that are contained in }\, B. \end{aligned}$$
(5)

If no vertex of \(\mathcal {M}\) lies in B, then B is just an edge. Clearly, then B does not contain a ladder, which is a contradiction. If there is exactly one vertex \(w\in \mathcal {M}\cap V(B)\), then B is a short \(\varTheta \) between v and w. Again, we obtain a contradiction since there is no ladder in a short \(\varTheta \). Lastly, suppose there are at least three vertices of \(\mathcal {M}\) in B. Let \(T_0\subseteq B\) be a tree in \(B-v\) that contains three vertices of \(\mathcal {M}\); such a tree exists by 2-connectedness of B. Each of these three vertices has a common neighbour with v in B. This, however, means that when we split v into the vertices of \(A_v\) again, we obtain an \((A_v,3)\)-tree that is disjoint from \(E_2\). This is a contradiction and proves (5).

Let \(w_1,w_2\) be the two vertices in \(\mathcal {M}\cap V(B)\). As B is 2-connected and as all neighbours of v are of degree 2, the subgraph \(B'\subseteq B\) that results from removing v and its neighbours from B is connected. We call the blocks of \(B'\) and also the two short \(\varTheta \)’s in B between \(v,w_1\) and also between \(v,w_2\), the parts of B. Observe that no part contains a ladder. Indeed, any part that does not contain v cannot contain a ladder. On the other hand, the parts that contain v are short \(\varTheta \)’s and hence, do not contain a ladder.

By 2-connectedness of B, the parts of B can be ordered cyclically as seen in Fig. 21, that is, every part can be separated from the rest of B by two vertices that we call passing points of that part. Every passing point is contained in exactly two parts. Note that the passing points of B are \(v,w_1,w_2\) and the cutvertices of \(B'\).

Fig. 21
figure 21

This shows the parts and passing points

Suppose there are two passing points \(p_1,p_2\) belonging to the same part R such that there are fewer than \(5\ell \) edge-disjoint paths between \(p_1\) and \(p_2\) in R. By the edge-version of Menger’s theorem, there is a set E of at most \(5\ell -1\) edges that intersects all paths in R between \(p_1\) and \(p_2\). Because of the cyclical structure of B, every block of \(B-E\) is a subgraph of a part of B. However, we already observed before that no part of B contains a ladder. Hence, E is an edge hitting set for the ladders in B of size at most \(5\ell -1\); we are done.

So we may assume that in any part there are at least \(5\ell \) edge-disjoint paths between its two passing points. As \(\ell \ge 2\), there are at least six vertices in each part and each passing point has more than three neighbours in any part that it lies in. This implies that the parts containing v are short \(\varTheta \)’s of order at least 2, which means they are 2-connected. Clearly, each part of B that is a block of \(B'\) is 2-connected as well. Hence, we are able to apply Theorem 16 to see that each part of B is a circular ordering of short \(\varTheta \)’s. Moreover, if the longest cycle in a part has length at most 4, then that part is also a short \(\varTheta \). Since the degree of a passing point p is larger than 2 in any part R that contains p, it follows that p has to be an endvertex of a short \(\varTheta \) in R.

Suppose there are \(\ell \) edge-disjoint cycles \(C_1,\ldots , C_\ell \) of length at least 5 such that \(C_i\) is contained entirely inside a part \(R_i\). As the length of a longest cycle inside a short \(\varTheta \) is at most 4, for \(i\in [\ell ]\), the cycle \(C_i\) has to pass through all endvertices of short \(\varTheta \)’s in \(R_i\). In particular, the cycle \(C_i\) passes through the passing points of \(R_i\). The parts that contain v are short \(\varTheta \)’s, which means that \(v\notin V(R_i)\) for each \(i\in [\ell ]\). In each part that is a circular ordering of short \(\varTheta \)’s, we can go from one passing point to the other through two different sets of short \(\varTheta \)’s. Removing the edges of any cycle inside such a part can only reduce the number of edge-disjoint paths through each set between the passing points by at most two (it is reduced by two only when the cycle passes through a diamond ‘sideways’ or when a cycle is completely contained within a short \(\varTheta \)). Hence, whenever the edges of a cycle inside a part are removed, the maximum number of edge-disjoint paths between the passing points of \(R_i\) decreases by at most 4.

Since in each part of B there are \(5\ell \) edge-disjoint paths between its passing points, there are at least \(\ell \) edge-disjoint paths between the passing points of each part of B that are edge-disjoint from \(C_1,\ldots ,C_\ell \). For \(i\in [\ell ]\), merge \(C_i\) with one path between the passing points of each part of B that is distinct from \(R_i\). The result is the cycle \(C_i\) together with a \(V(C_i)\)-path that passes through v and as \(v\notin V(R_i)\), has length at least 4. (We use here that v is not adjacent to \(w_1\) and \(w_2\) in \(G'\).) We already remarked in the proof of Lemma 16 that a cycle of length at least 5 together with a path of length at least 3 is a ladder. As there are \(\ell \) edge-disjoint cycles \(C_1,\ldots ,C_\ell \) and as there are \(\ell \) edge-disjoint paths between the passing points of each part that are disjoint from the cycles \(C_1,\ldots ,C_\ell \), we obtain \(\ell \) edge-disjoint ladders.

So we may assume that there are fewer than \(\ell \) edge-disjoint cycles of length at least 5 in the parts of B. Recall that a circular ordering of short \(\varTheta \)’s that does not contain a cycle of length at least 5 is also a short \(\varTheta \). Let n be the maximum number of edge-disjoint cycles of length at least 5 in a part R and suppose that \(n\ge 1\). Let r be the minimum number such that one of the short \(\varTheta \)’s of R is a short \(\varTheta _r\). By construction of a circular ordering of short \(\varTheta \)’s, it is not that hard to see that \(\frac{r}{2}\le n\le r\). This then implies that there is a set of at most \(r\le 2n\) edges inside that \(\varTheta _r\) that intersects all cycles of length at least 5 in R.

As the number of cycles of length at least 5 in the parts of B is less than \(\ell \), we find a set E of at most \(2\ell \) edges such that for each part R of B, the blocks of \(R-E\) are short \(\varTheta \)’s. Because of the cyclic structure seen in Fig. 21, the block of \(B-E\) that contains v is a circular ordering of short \(\varTheta \)’s now, which by Lemma 16, implies that there are no ladders in \(B-E\) anymore. This finishes the proof of Claim 5 and thus, the proof of the theorem.

5 Discussion

Is Theorem 2 optimal? Proposition 1 shows that it is impossible to improve upon our bound of 14 rungs when using a condensed wall.

Proposition 1

For every \(n \in {\mathbb {N}}\), every condensed wall W of size \(r \ge 5 \cdot n\) contains n edge-disjoint subdivisions of ladders \(L_1, L_2, \ldots , L_n\) which all have exactly 13 rungs.

Proof

We split our wall into n subgraphs \(C_i, i \in [n]\) each containing exactly 5 layers of W plus a and b. If \(r > 5 \cdot n\), we can discard any additional layers by not placing any part of a ladder in them. Let \(C_i\) be the subgraph of W induced by \(W_{5 \cdot i - 4}, W_{5 \cdot i - 3}, \ldots , W_{5 \cdot i}, a\) and b for all \(i \in {\mathbb {N}}\). The only vertices shared by all \(C_i\) are a and b, otherwise \(C_i\) and \(C_{i+1}\) only overlap at a bottleneck vertex. In particular, \(C_i\) and \(C_j\) are edge-disjoint for every \(i \ne j\).

Each ladder \(L_i, i \in [n]\) can be embedded in \(C_i\) as in Fig. 22.

This yields a ladder \(L_i\) with 13 rungs for every \(i \in [n]\) and those ladders do not share a single edge. Thus we have proven that W contains n edge-disjoint ladders. \(\square \)

Fig. 22
figure 22

A ladder (thick edges) of size 13 in a condensed wall of size 5. Edges belonging to rungs are labeled

In Conjecture 1, we have posed the question whether the condensed wall plays a key role for characterizing the edge-Erdős–Pósa property. We have completed an alternative proof for Theorem 2 (which can be found in [16]) which does not use a standard condensed wall anymore, but omits all jump-edges \(z_{i-1} z_{i}\). This is a hint that the condensed wall might not be as crucial as it seemed to be.

Curiously, the proof in [16] is also the only known case for which the edge-Erdős–Pósa property does not fail for \(k=2\), but instead for \(k=3\).

With respect to ladders, we can also take a look at the other side of the problem: Can we prove that ladders with more than three rungs have the edge-Erdős–Pósa property? We do not know, but at least the proof in this paper will not carry over to a larger ladder. This is because the way we construct the tree in the proof does not help for larger ladders. Additionally, it looks like it is much harder to characterize the graphs without longer ladders. However, it might be possible to generalize the approach to other subdivisions of \(\varTheta _3\).

We also want to quickly discuss the hitting set size for ladders with three rungs. Let \(\mathcal {H}\) be the set of ladders with three rungs. The hitting set bound for these in \(\mathcal {G}_\mathcal {H}^*\) is at least \(k-1\) (take for example \(k-1\) ladders and choose one vertex from each ladder and identify them with each other) and as we have mentioned in the proof of Theorem 1 the optimal vertex hitting set bound for the vertex-Erdős–Pósa property of ladders is \(\varTheta (k\log k)\) [17]. So if we are using Lemma 13 the hitting set bound will be in \(\varOmega (k^2\log k)\). We could quite easily obtain this bound if we could obtain a linear bound in k for Theorem 4, that is for (Am)-trees, as then the hitting set bound in \(\mathcal {G}_\mathcal {H}^*\) would also be linear instead of quadratic. And actually we do believe that this is true. On the other hand the bound for the ladders has to be in \(\varOmega (k\log k)\) as in the vertex version [13], so there is not that much room to improve.