1 Introduction

A recent research direction in Graph Drawing, which is currently receiving a great deal of attention [26, 29, 31], focuses on combinatorial and algorithmic aspects for families of graphs that can be drawn on the plane while avoiding specific kinds of edge crossings; see, e.g., [22] for a survey. This direction is informally recognized under the term “beyond planarity”. An early work on beyond planarity (and probably the one that initiated this direction in Graph Drawing) is due to Didimo, Eades, and Liotta [21], who introduced and first studied the family of graphs that admit polyline drawings, with few bends per edge, in which the angles formed at the edge crossings are \(90^\circ \). Their primary motivation stemmed from experiments indicating that the humans’ abilities to read and understand drawings of graphs are not affected too much, when the edges cross at large angles [27, 28] and the number of bends per edge is limited [34, 35]. Their work naturally gave rise to a systematic study of several different variants of these graphs; see, e.g., [7,8,9, 12, 18,19,20, 23].

Formally, a k-bend right-angle-crossing drawing (or k-bend RAC drawing, for short) of a graph is a polyline drawing where each edge has at most k bends and the angles formed at the crossing points of the edges are \(90^\circ \). Accordingly, a graph that admits a \(k\)-bend RAC drawing is referred to as k-bend right-angle-crossing graph (or k-bend RAC, for short); a \(0\)-bend RAC graph (drawing) is also called a straight-line RAC graph (drawing).

There exist several results for straight-line RAC graphs. Didimo et al. [21] showed that a straight-line RAC graph with n vertices has at most \(4n-10\) edges, which is a tight bound, i.e., there exist infinitely many straight-line RAC graphs with n vertices and exactly \(4n-10\) edges. These graphs are actually referred to as optimal or maximally-dense straight-line RAC and are in fact 1-planar [23], i.e., they admit drawings in which each edge is crossed at most once. In general, however, deciding whether a graph is straight-line RAC is NP-hard [8], and remains NP-hard even if the drawing must be upward [7] or 1-planar [12]. Bachmaier et al. [10] and Brandenburg et al. [15] presented interesting relationships between the class of straight-line RAC graphs and subclasses of 1-planar graphs. Variants, in which the vertices are restricted on two parallel lines or on a circle, have been studied by Di Giacomo et al. [18], and by Hong and Nagamochi [25].

An immediate observation emerging from this short literature overview is that the focus has been primarily on the straight-line case; the results for RAC drawings with bends are significantly fewer. Didimo et al. [21] observed that 1- and \(2\)-bend RAC graphs have a sub-quadratic number of edges, while any graph with n vertices admits a \(3\)-bend RAC drawing in \(O(n^4)\) area; the required area was improved to \(O(n^3)\) by Di Giacomo et al. [19]. Quadratic area for \(1\)-bend RAC drawings can be achieved for subclasses of 1-plane graphs [16]; for general 1-plane graphs the known algorithm may yield \(1\)-bend RAC drawings with super-polynomial area [12]. The best-known upper bounds on the number of edges of 1- and \(2\)-bend RAC graphs are due to Arikushi et al. [9], who showed that these graphs can have at most \(6.5n-13\) and 74.2n edges, respectively. Arikushi et al. [9] also presented 1- and \(2\)-bend RAC graphs with n vertices, and \(4.5n-O(\sqrt{n})\) and \(7.83n-O(\sqrt{n})\) edges, respectively. Angelini et al. [7] have shown that all graphs with maximum vertex degree 3 are \(1\)-bend RAC, while those with maximum vertex degree 6 are \(2\)-bend RAC. It is worth noting that the complexity of deciding whether a graph is 1- or \(2\)-bend RAC is still open.

Our Contribution: In this work, we present improved lower and upper bounds on the maximum edge-density of \(1\)-bend RAC graphs. Note that this type of problems is commonly referred to as Turán type, and has been widely studied also in the framework of beyond planarity; see, e.g., [1,2,3,4,5, 13, 17, 24, 30, 32, 33, 36]. More precisely, in Sect. 3, we show that an n-vertex \(1\)-bend RAC graph cannot have more than \(5.5n-O(1)\) edges, while in Sect. 4 we demonstrate that there exist infinitely many \(1\)-bend RAC graphs with n vertices and exactly \(5n-O(1)\) edges. These two results together further narrow the gap between the best-known lower and upper bounds on the maximum edge-density of \(1\)-bend RAC graphs (from 2n to n / 2). Our approach for proving the upper bound in Sect. 3 builds upon the charging technique by Arikushi et al. [9], which we overview in Sect. 2. We discuss open problems in Sect. 5.

2 Overview of the Charging Technique

In this section, we introduce the necessary notation and we describe the most important aspects of the charging technique by Arikushi et al. [9] for bounding the maximum number of edges of a \(1\)-bend RAC graph. Consider an n-vertex \(1\)-bend RAC graph \(G=(V,E)\), together with a corresponding \(1\)-bend RAC drawing \(\varGamma \) with the minimum number of crossings. The edges of G are partitioned into two sets \(E_0\) and \(E_1\), based on whether they are crossing-free in \(\varGamma \) (set \(E_0\)) or they have at least a crossing (set \(E_1\)). Let \(G_0\) and \(G_1\) be the subgraphs of G induced by \(E_0\) and \(E_1\), respectively.

Since \(G_0\) is plane, \(|E_0| \le 3n-6\) holds. To estimate \(|E_1|\), Arikushi et al. consider the graph \(G_1'\) that is obtained from the drawing of \(G_1\), by replacing each crossing point with a dummy vertex; we call \(G_1^\prime \) the planarization of the drawing of \(G_1\). Let \(V_1'\), \(E_1'\), and \(F_1'\) be the set of vertices, edges, and faces of \(G_1'\), respectively. Let \(\deg (v)\) be the degree of a vertex v of \(G_1'\) and s(f) be the size of a face f of \(G_1'\), that is, the number of edges incident to f. In the charging scheme, every vertex v of \(G_1'\) is initially assigned a charge ch(v) equal to \(\deg (v) - 4\), while every face f of \(G_1'\) is initially assigned a charge ch(f) equal to \(s(f) - 4\). By Euler’s formula, the sum of charges over all vertices and faces of \(G_1'\) is:

$$ \sum _{v \in V_1'} (\deg (v)-4) + \sum _{f \in F_1'} (s(f) - 4) = 2|E_1'| - 4 |V_1'| + 2|E_1'| - 4 |F_1'| = -8 $$

In two subsequent discharging phases, they redistribute the charges in \(G_1'\) so that (i) the total charge remains the same, and (ii) all faces have non-negative charges. In the first discharging phase, for every edge e with one bend, half a unit of charge is passed from each of its two endvertices to the face that is incident to the convex bend of e. Arikushi et al. show that each face of size less than 4 has at least one convex bend, so it receives at least one unit of charge. Hence, after this phase, the only faces that have negative charges are the so-called lenses, which have size 2 and only one convex bend (each lens has charge \(-1\)). On the other hand, the charge of every vertex \(v \in V_1'\) is at least \(ch^\prime (v)=\frac{1}{2}\deg (v)-4\).

In the second discharging phase, Arikushi et al. exploit the crossing minimality of \(\varGamma \) to guarantee the existence of an injective mapping from the lenses to the convex bends incident to faces of \(G_1'\) with size at least 4. Since each such bend yields one additional unit of charge to its incident face, and since this face has already a non-negative charge due to its size, it is possible to move this unit from the face to the mapped lens without introducing faces with negative charge. Hence, after the second phase, the charge \(ch''(f)\) of each face \(f \in F_1'\) is non-negative (and at least as large as its initial charge, i.e., \(ch''(f)\ge ch(f)\)). Since \(ch''(v) = ch(v)\), \(|E_1| \le 4n-8\) can be proved as follows:

$$\begin{aligned} |E_1|-4n = \sum _{v \in V_1'} \left( \frac{1}{2}\deg (v)-4 \right) \le \sum _{v \in V_1'} ch'' (v) \le \sum _{v \in V_1'} ch'' (v) + \sum _{f \in F_1'} ch'' (f) = -8 \end{aligned}$$
(1)

So far, graph G has \(|E_0| + |E_1| \le 7n-14\) edges. Arikushi et al. improve this bound in a conclusive analysis based on the observation that a triangular face of \(G_0\) cannot contain edges of \(E_1\). Hence, if \(G_0\) contains exactly \(3n-6\) edges, then it is a triangulation, and thus \(E_1=\emptyset \). More in general, they considered how many edges \(E_1\) may contain when \(G_0\) is a graph obtained from a triangulation by removing k edges. Let \(V_0\), \(E_0\), and \(F_0\) be the sets of vertices, edges, and faces of \(G_0\), respectively, and let d(f) be the degree of a face \(f \in F_0\), i.e., the number of its distinct vertices. Then, by Eq. 1 we have:

$$\begin{aligned} |E_1| \le \sum _{f \in F_0; d(f) > 3}(4d(f)-8) \end{aligned}$$
(2)

Arikushi et al. proved that the right-hand side of Eq. 2 is at most 8k. In fact, the removal of any crossing-free edge e leads to one of the following cases.

  • C.1 if e was a bridge of a face, this yields a face with the same degree, which leaves the right-hand side of Eq. 2 unchanged;

  • C.2 if e was adjacent to two triangles, this yields a new face f of degree \(d(f) = 4\), which can contain at most \(4d(f) - 8 = 8\) edges of \(E_1\), which increases the right-hand side of Eq. 2 by 8;

  • C.3 if e was adjacent to a triangle and to a face of degree d(f) (containing at most \(4d(f)-8\) edges of \(E_1\)), this yields a new face of degree at most \(d(f)+1\), which can contain at most \(4(d(f)+1)-8=4d(f)-4\) edges of \(E_1\), which increases the right-hand side of Eq. 2 by at most 4; finally,

  • C.4 if e was adjacent to two faces \(f_1\) and \(f_2\) such that \(d(f_1),d(f_2) > 3\) (containing at most \(4(d(f_1)+d(f_2))-16\) edges of \(E_1\)), this yields a new face of degree at most \(d(f_1)+d(f_2)-2\), which contains at most \(4(d(f_1)+d(f_2)-2)-8=4(d(f_1)+d(f_2))-16\) edges of \(E_1\), leaving the right-hand side of Eq. 2 as is.

Hence, the removal of k uncrossed edges increases the right-hand side of Eq. 2 by at most 8k. With this observation, Arikushi et al. derived two different upper bounds on the number of edges of G, namely:

$$\begin{aligned} |E| \le (3n-6-k) + 4n-8 = 7n-14-k \end{aligned}$$
(3)
$$\begin{aligned} |E| \le (3n-6-k) + 8k \end{aligned}$$
(4)

The minimum of the two bounds is maximized when \(k=n/2-1\), which yields \(|E| \le 6.5n-13\). Arikushi et al. noticed that the bound of 8k is an overestimation, and that possible refinements would lead to improvements of the overall bound.

3 An Improved Upper Bound

In this section, we describe how to improve the analysis of the charging scheme described in Sect. 2 to obtain a better upper bound. W.l.o.g., we assume that G is connected and that \(n \ge 5\). Let f be a face of \(G_0\). As in the previous section, we denote by d(f) the degree of f, that is, the number of distinct vertices of f. Since f is not necessarily simple or connected, the boundary of f is a disjoint set of (not necessarily simple) cycles, which are called facial walks; see Fig. 1a. We denote by \(\ell (f)\) the length of face f, that is, the number of edges (counted with multiplicities) in all facial walks of f.

Since a vertex v may occur more than once in a facial walk of f, we denote by \(m_f(v)\) the number of its occurrences in f minus one (that is, the number of extra occurrences beyond its first). The sum of such extra occurrences over all the vertices of face f is denoted by m(f), that is, \(m(f) = \sum _{v \in f}m_f(v)\). Further, we denote by b(f) the number of biconnected components of all facial walks of f. Finally, we assume that an isolated vertex of f (if any) is not a biconnected component of f, and we denote by i(f) the number of isolated vertices of f. It is not difficult to see that \(\ell (f) = d(f)+ m(f) - i(f)\).

Fig. 1.
figure 1

(a) Illustration of a non-simple, non-connected face f of \(G_0\) (colored in black). The edges of \(G_1\) are colored gray. Face f consists of two facial walks (\(w_1=\langle v_1, v_2, v_1, v_3, v_4, v_5, v_6, v_7, v_8 \rangle \) and \(w_2=\langle v_9, v_{10}\rangle \)) and an isolated vertex (\(v_{11}\)). Observe that \(d(f)=11\) (as f contains 11 distinct vertices), \(\ell (f)=11\) (as the sum of the lengths of \(w_1\) and \(w_2\) is 11), \(m_f(v_1)=1\) (as \(v_1\) appears twice in \(w_1\)), \(i(f)=1\) (as \(v_{11}\) is an isolated vertex of f), and \(b(f)=3\) (as \(w_1\) consists of two biconnected components, while \(w_2\) is biconnected). Face f is good, since each of its edges is good. Note that removing edge \((v_4, v_7)\) would make edges \((v_5, v_6)\) and \((v_9, v_{10})\) not good. (b) The faces of \(F_1^\prime (f)\) that are surrounding the three biconnected components of f are tiled in gray.

Let \(G^\prime \) be the planarization of the drawing \(\varGamma \) of G. As opposed to \(G_0\), whose faces are not necessarily connected, the faces of \(G^\prime \) are in fact connected, since G is connected. Let f be a face of \(G_0\) and let e be any edge incident to f. We say that edge e is good for f if and only if there is no other edge \(e^\prime \) incident to f such that e and \(e^\prime \) are both incident to a face g of \(G^\prime \) that lies inside f. Accordingly, face f is called good if and only if either all its edges are good for f or if f is a triangle; see Fig. 1a. Note that, if each face of \(G_0\) is good, then every face of the planarization \(G^\prime \) is either a triangle of crossing-free edges or contains at most one crossing-free edge, and vice versa. In the next two lemmas, we assume that the faces of \(G_0\) are good; we show later how to guarantee this property. For this, we may need to introduce parallel edges (but no self-loops) in \(G_0\), which however are non-homotopic (each region they define contains at least a vertex). Further, we may need to introduce planar edges with more than one bend; this does not affect the discharging scheme of Arikushi et al. which only considers \(G_1\).

Lemma 1

Let \(\varGamma \) be a drawing of G such that all faces of \(G_0\) are good. Then, each face f of \(G_0\) contains at most \(2d(f) -2 m(f) + 2i(f) +4b(f)- 8\) edges of \(G_1\).

Proof

Consider the subgraph G(f) of G which is induced by the interior of f and let \(\varGamma (f)\) be the drawing of G(f) derived from \(\varGamma \). We denote by \(G_1(f)=(V_1(f), E_1(f))\) the subgraph of G(f) induced by the set of crossing edges in \(\varGamma (f)\), and by \(G_1'(f)\) the planarization of \(G_1(f)\).

Let B(f) be the set of biconnected components of f and \(F_1^\prime (f)\) the set of faces of the drawing of \(G_1'(f)\) that is derived from \(\varGamma (f)\). Since every edge of f is good, every biconnected component \(c \in B(f)\) with length \(\ell (c)\) will be surrounded by a face \(f^\prime _c \in F_1^\prime (f)\) in \(G^\prime _1\) that is of length \(\ell (f^\prime _c) \ge 2\ell (c)\); see Fig. 1b. Hence, before the discharging phases in the charging scheme of Arikushi et al. (applied on \(G_1'(f)\)), the charge of face \(f^\prime _c\) is at least \(2\ell (c)-4\). Since after the second discharging phase, the charge of each face is at least as much as its initial charge, it follows that the charge of face \(f^\prime _c\) is still at least \(2\ell (c)-4\) even after the discharging phases. Since isolated vertices of f are not surrounded by a face of \(F_1^\prime (f)\), summing up the charges of all biconnected components of f, we get that

$$ \sum \limits _{c \in B(f)} ch''(f^\prime _c) \ge \sum \limits _{c \in B(f)} (2\ell (c)-4) = 2\ell (f) -4b(f) = 2(d(f)+m(f)-i(f)) - 4b(f) $$

Since, after the second discharging phase, each face has a non-negative charge and the sum of the charges of faces surrounding biconnected components of f is a lower bound for the sum of the charges of all faces in \(F^\prime _1(f)\), we get that

$$ \sum \limits _{f^\prime \in F^\prime _1(f)} ch''(f^\prime ) - \sum \limits _{c \in B(f)} ch''(f^\prime _c) \ge 0 $$

Hence, by refining Eq. 1 we obtain that the number of crossing edges in G(f) can be upper-bounded as follows

$$\begin{aligned} |E_1(f)| -4 d(f)&= \sum _{v \in f} \left( \frac{1}{2}\deg (v)-4 \right) \le \sum \limits _{v \in f} ch''(v) \\&\le \sum \limits _{v \in f} ch'' (v) + \sum \limits _{f^\prime \in F^\prime _1(f)} ch''(f^\prime ) - 2(d(f)-m(f)+i(f)) + 4b(f) \\&= -8 - 2(d(f) + m(f)-i(f)) + 4b(f) \end{aligned}$$

This concludes our proof.    \(\square \)

In the following lemma, we improve Arikushi et al.’s upper bound on the number of edges of \(G_1\) that G may contain, when the plane subgraph \(G_0\) is obtained from a plane triangulation T by removing k edges, under the assumption that T may contain non-homotopic parallel edges (but no self-loops), and that each face \(f \in F_0\) of \(G_0\) is good. Let t(f) be the minimum number of edges that must be removed from T to obtain f. Similar to Arikushi et al., we preliminarily observe that a face f of \(G_0\) with \(t(f) = 0\) cannot contain edges of \(G_1\) in G. If \(t(f) = 1\), the only two possible configurations for face f are illustrated in Figs. 2a and b. In both cases, face f can contain at most two crossing edges. If \(t(f) = 2\), the only three possible configurations for face f are illustrated in Figs. 2c–2e. Then, face f can contain at most five crossing edges. Let \(F_0^1\) and \(F_0^2\) be the set of faces of \(G_0\) that can be obtained from triangulation T by removing 1 and 2 edges, respectively, that is, \(F_0^1 = \{f \in F_0; t(f)= 1\}\) and \(F_0^2 = \{f \in F_0; t(f)= 2\}\). By Lemma 1 and the previous observations, we have

$$\begin{aligned} |E_1| \le 2|F_0^1| + 5|F_0^2| + \sum _{f \in F_0; t(f) > 2}(2d(f) -2 m(f) + 2i(f) +4b(f)- 8) \end{aligned}$$
(5)
Fig. 2.
figure 2

All bounded faces that can be obtained from T by removing (a)–(b) 1 edge, (c)–(e) 2 edges, (f)–(k) 3 edges. The caption of each subfigure indicates the values of (d(f), m(f), i(f), b(f)).

In the following lemma, we prove that a slight overestimation of the right-hand side of Eq. 5 is upper-bounded by \(\frac{8}{3}k\), which clearly implies that \(|E_1| \le \frac{8}{3}k\).

Lemma 2

If \(G_0\) is obtained from triangulation T by removing k edges, then:

$$\begin{aligned} \frac{8}{3}|F_0^1| + \frac{16}{3}|F_0^2| + \sum _{f \in F_0; t(f) > 2}(2d(f) -2 m(f) + 2i(f) +4b(f)- 8) \le \frac{8}{3}k \end{aligned}$$
(6)

Proof

Our proof is by induction on k and is similar to the corresponding one of Arikushi et al. (Lemma 5 in [9]). In contrast to their proof, we assume that \(G_0\) is obtained from triangulation T by removing edges in a certain order. In particular, we want to avoid the case in which the removal of an edge e results in merging two faces \(f_1\) and \(f_2\) such that \(t(f_1), t(f_2) \ge 1\) (refer to Case C.4 in Sect. 2). We guarantee this property as follows. Consider the subgraph D of the dual of T induced by the edges that are dual to those that we have to remove to obtain \(G_0\). We remove the edges in the order in which their dual edges appear in a BFS traversal of each connected component of D. In this way, every inter-level edge in the BFS traversal corresponds to removing an edge that is incident to a triangular face (not visited yet), while each intra-level edge corresponds to removing a bridge from a face that has been created by previously removed edges. In both cases, we avoid merging two faces \(f_1\) and \(f_2\) such that \(t(f_1), t(f_2) \ge 1\).

Denote by \(\tau (G_0)\) the left-hand side of Eq. 6. In the base of the induction, \(k=0\) holds. In this case, graph \(G_0\) coincides with triangulation T and thus \(\tau (G_0)=0\). In the induction hypothesis, we assume that the lemma holds for \(k \ge 0\), and we prove that it also holds for \(k' = k+1\).

Fig. 3.
figure 3

Illustrations of Cases C.1 and C.2. Edge (uv) is gray-colored.

Let \(G_0'\) be a plane graph obtained from T by removing \(k'\) edges, and let \(G_0\) be the plane graph obtained from T by removing the same \(k'\) edges, except for the last one, which we call (uv). For \(G_0\), by induction, it holds that \(\tau (G_0) \le \frac{8}{3}k\). We consider the following cases:

  1. C.1

    Edge (uv) is a bridge of a face f in \(G_0\) such that \(t(f) \ge 3\). Let \(f'\) be the face of \(G_0'\) that is obtained by the removal of (uv). Note that \(t(f') \ge 4\). Since (uv) is a biconnected component of f, it holds that \(b(f') = b(f) - 1\). Since (uv) is a bridge, it also holds that \(d(f') = d(f)\). To establish the values of \(m(f')\) and \(i(f')\), we observe that u, or v, or both may become isolated vertices of \(G_0^\prime \) after the removal of (uv). We study these cases separately.

    1. (a)

      Both u and v become isolated vertices in \(G_0^\prime \); see Fig. 3a. Then \(m(f') = m(f)\) and \(i(f') = i(f) + 2\). Since \(2d(f') - 2 m(f') + 2i(f') + 4b(f')- 8 = 2d(f) - 2m(f) + 2(i(f)+2) +4(b(f)-1) - 8 = 2d(f) - 2 m(f) + 2i(f) + 4b(f)- 8 \), it follows that \(\tau (G_0')=\tau (G_0) \le \frac{8}{3}k < \frac{8}{3}k'\).

    2. (b)

      Exactly one of u and v, say v, becomes an isolated vertex in \(G_0^\prime \); see Fig. 3b. Then \(m(f') = m(f)-1\) and \(i(f') = i(f) + 1\). Since \(2d(f') - 2 m(f') + 2i(f') + 4b(f')- 8 = 2d(f) - 2(m(f)-1) + 2(i(f)+1) +4(b(f)-1) - 8 = 2d(f) - 2 m(f) + 2i(f) + 4b(f)- 8 \), it follows that \(\tau (G_0')=\tau (G_0) \le \frac{8}{3}k < \frac{8}{3}k'\).

    3. (c)

      Neither u nor v becomes an isolated vertex in \(G_0^\prime \); see Fig. 3c. Then \(m(f') = m(f)-2\) and \(i(f') = i(f)\). Since \(2d(f') - 2 m(f') + 2i(f') + 4b(f')- 8 = 2d(f) - 2(m(f)-2) + 2i(f) + 4(b(f)-1) - 8 = 2d(f) - 2 m(f) + 2i(f) + 4b(f)- 8 \), it follows that \(\tau (G_0')=\tau (G_0) \le \frac{8}{3}k < \frac{8}{3}k'\).

  2. C.2

    The removal of (uv) merges a triangular face \(\varDelta \) (that is, \(t(\varDelta )=0\)) with an adjacent face f of \(G_0\) with \(t(f) \ge 3\) into a face \(f'\) of \(G_0'\). Note that \(t(f') \ge 4\). We consider two cases:

    1. (a)

      Faces \(\varDelta \) and f share only edge (uv); see Fig. 3d. Then \(d(f') = d(f) + 1\), \(m(f') = m(f)\), \(b(f') = b(f)\), \(i(f') = i(f)\). Since \(2d(f') - 2 m(f') + 2i(f') + 4b(f')- 8 = 2(d(f)+1) - 2m(f) + 2i(f) +4b(f) - 8 = 2d(f) - 2 m(f) + 2i(f) + 4b(f)- 8 + 2\), it follows that \(\tau (G_0')=\tau (G_0) + 2 \le \frac{8}{3}k + 2 < \frac{8}{3}k'\).

    2. (b)

      Faces \(\varDelta \) and f share at least two edges; see Fig. 3e and f. By removing (uv), the number of occurrences of the third vertex \(v^\prime \) of \(\varDelta \) increases by one and the number of biconnected components increases by one. Then \(d(f') = d(f)\), \(m(f') = m(f)+1\), \(b(f') = b(f)+1\), \(i(f') = i(f)\). Since \(2d(f') - 2 m(f') + 2i(f') + 4b(f')- 8 = 2d(f) - 2(m(f)+1) + 2i(f) +4(b(f)+1) - 8 = 2d(f) - 2 m(f) + 2i(f) + 4b(f)- 8 + 2\), it follows that \(\tau (G_0')=\tau (G_0) + 2 \le \frac{8}{3}k + 2 < \frac{8}{3}k'\).

  3. C.3

    The removal of (uv) yields a face \(f'\) of \(G_0'\) with \(t(f') \in \{1,2, 3\}\). Note that in the previous cases \(t(f') \ge 4\). So, if we rule out this case, then the proof follows. We consider two cases, which correspond to Cases C.1 and C.2 for smaller faces, respectively.

    1. (a)

      Face \(f'\) is obtained by removing a bridge from a face f. Hence, \(t(f) = t(f^\prime ) - 1\) and \(f'\) is disconnected. Observe that if \(t(f') = 1\), then face \(f^\prime \) is not disconnected as can be seen from Fig. 2a and b. Therefore, \(t(f') \ge 2\) holds in this subcase.

    2. (b)

      Face \(f'\) is obtained by merging a face f with a triangular face \(\varDelta \). Hence, \(t(f) = t(f^\prime ) - 1\) holds. Since \(\varDelta \) is triangular, we observe that it does not contribute to \(\tau (G_0)\).

    In both cases, the face f that is eliminated in order to create face \(f'\) is such that \(t(f) = t(f')-1\). We observe that \(\tau (G_0')\) is equal to \(\tau (G_0)\), plus the contribution of \(f'\) to \(\tau (G_0')\), minus the contribution of f to \(\tau (G_0)\). More precisely: If \(t(f') = 1\), then \(\tau (G_0') = \tau (G_0) + \frac{8}{3} - 0 \le \frac{8}{3}k + \frac{8}{3} = \frac{8}{3}k'\); see Fig. 2a–b. If \(t(f') = 2\), then \(\tau (G_0') = \tau (G_0) + \frac{16}{3} - \frac{8}{3} \le \frac{8}{3}k + \frac{8}{3} = \frac{8}{3}k'\); see Fig. 2c–e. Otherwise, \(t(f')=3\); see Fig. 2f–k. This implies that \(\tau (G_0') \le \tau (G_0) + (2d(f') -2 m(f') + 2i(f') +4b(f')- 8) - \frac{16}{3}\). It is easy to verify that \(2d(f') -2 m(f') + 2i(f') +4b(f')- 8 \le 8\) holds for each of the cases shown in Fig. 2f–k. Hence, \(\tau (G_0') \le \tau (G_0) + \frac{8}{3} \le \frac{8}{3}k + \frac{8}{3} = \frac{8}{3} k'\).

This concludes the proof.    \(\square \)

By following a counting similar to Arikushi et al. we obtain a bound on the maximum number of edges of a \(1\)-bend RAC graph with n vertices, when all the faces of \(G_0\) are good. Since planar graphs have at most \(3n-6\) edges even in the presence of non-homotopic parallel edges, the bound is obtained when \(7n-14-k = 3n-6-k+\frac{8}{3}k\), that is, \(k=\frac{3}{2}(n-2)\). This directly implies that in this case \(|E| \le 5.5n - 11\).

In the following, we prove that it is not a loss of generality to assume that all faces of \(G_0\) are good, as otherwise we can augment our graph by adding only crossing-free edges to G (not necessarily drawn with one bend but rather as curves), in such a way that every face of \(G_0\) becomes good. Recall that we denote by \(G^\prime \) the planarization of drawing \(\varGamma \) of G.

Assume that there exists a face of \(G_0\) that is not good. Hence, there exist at least two edges belonging to \(G_0\) which are incident to the same face \(f^\prime \) in \(G^\prime \). If \(f^\prime \) consists exclusively of edges of \(G_0\), then we triangulate \(f^\prime \). Otherwise, we traverse the facial walk of \(f^\prime \) starting from any dummy vertex of \(f^\prime \) and we connect by a crossing-free edge the first occurring vertex that is incident to an edge of \(G_0\) with the last occurring vertex that is also incident to an edge of \(G_0\). This implies that one of the two faces into which \(f^\prime \) is split contains only one crossing-free edge, namely the newly added edge. Note that, in both cases, it is always possible to add the described edges, since we do not require them to be drawn with one bend. Since in both cases, we split a face into smaller faces, this process eventually terminates. At the end, each face is either a triangle of crossing-free edges or contains at most one crossing-free edge. Hence, it is indeed not a loss of generality to assume that all faces of \(G_0\) are good.

We remark that the aforementioned procedure may result in parallel edges or self-loops, which are however non-homotopic by construction. In particular, a self-loop may appear, when the first and the last occurring vertices in the facial walk are identified and form a cut-vertex of G. Note that while Lemma 2 allows non-homotopic parallel edges, it does not allow self-loops. Hence, for self-loops we need to use a different approach. Consider self-loop s. As already mentioned, s is incident to a cut-vertex of G and encloses a part of \(\varGamma \), which we assume not to contain any other self-loop. Let \(H_1\) and \(H_2\) be the subgraphs of G that are induced by the vertices of G that are in the interior and the exterior of s, respectively. Denote by \(n_1\) and \(n_2\) the number of vertices of \(H_1\) and \(H_2\), respectively, and by \(m_1\) and \(m_2\) their corresponding number of edges. Observe that \(n=n_1+n_2-1\). Note that edge s is accounted neither in \(H_1\) nor in \(H_2\). By induction, we may assume that \(m_1 \le 5.5n_1-11\) and \(m_2 \le 5.5n_2-11\). Hence, graph G (including s) contains at most \(5.5(n_1+n_2)-22 + 1 = 5.5n - 15.5 \le 5.5n-11\) edges. This implies that the upper bound holds even in the presence of self-loops.

We are now ready to state the main theorem of this section.

Theorem 1

Every n-vertex \(1\)-bend RAC graph has at most \(5.5n-11\) edges.

4 An Improved Lower Bound

In this section, we present an improved lower bound for the number of edges of \(1\)-bend RAC graphs. Our construction is partially inspired by the corresponding lower bound constructions of 2-planar graphs [14] and fan-planar graphs [30] with maximum density.

Theorem 2

There exists infinitely many n-vertex \(1\)-bend RAC graphs with exactly \(5n-10\) edges.

Proof

A central ingredient in our lower bound construction is the dodecahedral graph; see Fig. 4a. This graph admits a straight-line planar drawing in which the outer face is a regular pentagon, and the inner faces can be partitioned into three sets, based on their shape. Namely, the innermost face (shaded in gray in Fig. 4a) is again a regular pentagon, vertically mirrored with respect to the outer one; also, all the faces adjacent to the innermost face have the same shape, which we will describe more precisely later, and the same holds for all the faces adjacent to the outer face. In particular, the drawing of each face is symmetric with respect to the line that is perpendicular to one of its sides (whose length is denoted by a in Fig. 4b) and passes through its opposite vertex (denoted by A in Fig. 4b). Adopting the notation scheme of Fig. 4b, in the following we provide values for the angles and side length ratios to fully describe the shapes of the faces adjacent to the innermost face and to the outer face; for an illustration, refer to Fig. 4a.

  1. (i)

    The five faces adjacent to the innermost face are realized such that the side of length a is incident to the inner face. Angles \(\alpha \) and \(\beta \) are \(88^\circ \) and \(100^\circ \), respectively. In addition, side-length b is 1.5 times the side-length a.

  2. (ii)

    The five faces adjacent to the outer face are realized such that the side of length a is incident to the outer face. Angles \(\alpha \) and \(\gamma \) are \(160^\circ \) and \(54^\circ \), respectively. In addition, side-length b is 8.5 times side-length c.

Fig. 4.
figure 4

Illustrations for the lower bound construction: (a) the dodecahedral graph, (b) angles and edge lengths, and (c) crossing configuration.

Consider two copies \(D_1\) and \(D_2\) of this drawing of the dodecahedral graph. Since both the innermost face of \(D_1\) and the outer face of \(D_2\) are drawn as regular pentagons, after scaling the drawing \(D_2\) uniformly and mirroring it vertically, we can construct a drawing of a larger graph by identifying the innermost face of \(D_1\) with the outer face of \(D_2\). This process can be clearly repeated arbitrarily many times. The result is a graph family such that every member of this family admits a straight-line planar drawing, in which each face has one of the shapes described above.

For our lower bound construction, we add five chords in the interior of each face of every member of the above family. Hence, the five vertices that are incident to each face induce a complete graph \(K_5\). In the following, we describe how to draw such chords in the interior of each of the aforementioned faces, based on their shape, so that the resulting drawing is \(1\)-bend RAC. For an illustration of the configuration of the crossing edges in each of these faces refer to Fig. 4c; we will formally define angles \(\alpha _1,\beta _1,\beta _2,\gamma _1,\gamma _2\) shortly. Observe that all edges and the formed angles are symmetric with respect to the line through vertex A that is perpendicular to \(C_1C_2\). Also, for every three vertices u, w, and v that are consecutive along the boundary of the face, the chord (uv) will cross both chords incident to w, making a bend between these two crossings. In the following, we provide values for the angles \(\alpha _1,\beta _1,\beta _2,\gamma _1,\gamma _2\) to fully describe the configurations of the crossing edges.

  1. (i)

    For the innermost face, \(\alpha _1=\beta _1=\beta _2=\gamma _1=\gamma _2=45^\circ \) holds; refer to Fig. 5a.

  2. (ii)

    For the outer face, \(\alpha _1=\beta _1=\beta _2=\gamma _1=\gamma _2=45^\circ \) holds; refer to Fig. 5b.

  3. (iii)

    For the five faces neighboring the innermost face, \(\alpha _1=40^\circ \), \(\beta _1=30^\circ \), \(\beta _2=50^\circ \), \(\gamma _1 =45^\circ \) and \(\gamma _2 =60^\circ \) holds; refer to [6].

  4. (iv)

    For the five faces neighboring the outer face, \(\alpha _1 =47.5^\circ \), \(\beta _1 =85^\circ \), \(\beta _2 =42.5^\circ \), \(\gamma _1 =45^\circ \) and \(\gamma _2 =5^\circ \) holds; refer to [6].

Fig. 5.
figure 5

Chords inside (a) the innermost face, and (b) the outer face.

It follows that each graph in the family admits a \(1\)-bend RAC drawing. Let \(G_n\) be such a graph with n vertices. Next, we discuss the exact number of edges of graph \(G_n\). Since the crossing-free edges of \(G_n\) form a planar graph, whose faces are all of length 5, it follows by Euler’s formula that this graph has \(\frac{5}{3}(n-2)\) edges and \(\frac{2}{3}(n-2)\) faces. Since each of these faces contains five chords, the number of edges of \(G_n\) is \(\frac{5}{3}(n-2) + 5\cdot \frac{2}{3}(n-2)= 5n-10\), and the statement follows.   \(\square \)

5 Conclusions

In this paper, we improved the previously best lower and upper bounds on the number of edges of \(1\)-bend RAC graphs. The gap between our lower and upper bound is approximately n / 2. A future challenge will be to further narrow this gap. We conjecture that an n-vertex \(1\)-bend RAC graph cannot have more than \(5n-10\) edges (as it is the case for several other classes of beyond planar graphs; see e.g. [11, 30, 33]). Significantly more difficult seems to be the problem of improving the current best lower and upper bounds on the number of edges of \(2\)-bend RAC graphs, where the gap is significantly wider (approx., 67n). Closely connected are also complexity related questions; in particular, the characterization and recognition of 1- and \(2\)-bend RAC graphs are still open.