Keywords

1 Introduction

A linear embedding of a graph \(G = (V,E)\) is a tuple \((\prec ,\mathcal {P})\) where \(\prec \) is a total orderingFootnote 1 of the vertex set V and \(\mathcal {P}= \{P_1,\ldots ,P_k\}\) is a partition of the edge set E. The ordering \(\prec \) is sometimes called the spine ordering, and each part \(P_i\) of \(\mathcal {P}\) is called a page. For a given spine ordering \(\prec \), two edges \(uv, xy \in E\) with \(u \prec v\) and \(u \prec x \prec y\) are said to be crossing if \(u \prec x \prec v \prec y\). A linear embedding \((\prec ,\mathcal {P})\) is a book embedding if for any two edges uv and xy in E we have

$$\begin{aligned} \text {if } u \prec x \prec v \prec y \text { and } uv \in P_i, xy \in P_j \text { then } i \ne j. \end{aligned}$$
(1)

So Eq. (1) simply states that no two edges in the same page are crossing, or equivalently, any two crossing edges are assigned to distinct pages in \(\mathcal {P}\).

Book embeddings were introduced by Ollmann [24] as well as Bernhart and Kainen [3], see also [17]. Besides their apparent applications in real-world problems (see e.g. [8, 26] and the numerous references in [9]), book embeddings enjoy steady popularity in graph theory; see for example [11, 16, 21, 27, 30, 33], just to name a few. In most cases (also including the generalizations for directed graphs [4] or pages with limited crossings [5]), one seeks to find a book embedding with as few pages as possible for given graph G. In particular, \((\prec ,\mathcal {P})\) is a k-page book embedding if \(|\mathcal {P}| = k\), and the page number of G, denoted by \({\text {pn}}(G)\), is the smallest k for which we can find a k-page book embedding of G. (We remark that \({\text {pn}}(G)\) is sometimes also called the book thickness [3] or stack number [9] of G.)

As the main contribution of the present paper, we propose two relaxations of the page number parameter: The local page number \({\text {pn}}_\ell (G)\) and the union page number \({\text {pn}}_u(G)\). We initiate the study of these parameters by comparing \({\text {pn}}_\ell (G)\), \({\text {pn}}_u(G)\), and \({\text {pn}}(G)\) for graphs G in some natural graph classes, such as planar graphs (c.f. Sect. 3), graphs of bounded density (c.f. Sect. 2), and graphs of bounded tree-width (c.f. Sect. 4). Besides these bounds, a (perhaps not surprising) result showing computational hardness (c.f. Theorem 4), and a few structural observations, we also give some intriguing open problems at the end of the paper in Sect. 5.

Before listing our specific results in Sect. 1.1 below, let us define and motivate the novel parameters local and union page numbers.

Local Page Numbers. For a book embedding \((\prec ,\mathcal {P})\) of graph \(G = (V,E)\) and a vertex \(v \in V\), let us denote by \(\mathcal {P}_v\) the subset of pages that contain at least one edge incident to v. Then we define:

  • A book embedding is k-local if \(|\mathcal {P}_v| \leqslant k\) for each \(v \in V\), i.e., each vertex has incident edges on at most k pages.

  • The local page number, denoted by \({\text {pn}}_\ell (G)\), is the smallest k for which we can find a k-local book embedding of G.

Thus, we seek to find a book embedding with any number of pages (possibly more than \({\text {pn}}(G)\)), but with no vertex having incident edges on more than k of these pages. As each k-page book embedding is a k-local book embedding,

$$\begin{aligned} \text {for any graph } G \text { we have } \qquad {\text {pn}}_\ell (G) \leqslant {\text {pn}}(G). \end{aligned}$$
(2)

However, \({\text {pn}}_\ell (G)\) can be strictly smaller than \({\text {pn}}(G)\). For example, \(K_5\) and \(K_{3,3}\) both have page number 3 and local page number 2. As illustrated in Fig. 1, \(K_5\) admits a 2-local 3-page book embedding, i.e., this book embedding simultaneously certifies \({\text {pn}}(K_5) \leqslant 3\) and \({\text {pn}}_\ell (K_5) \leqslant 2\). In the left of Fig. 1 we have a 2-local 4-page book embedding of \(K_{3,3}\) (when the three orange/thick edges are put into three separate pages). So here, the introduction of “extra” pages, additionally to the necessary \({\text {pn}}(K_{3,3}) = 3\) pages in every book embedding of \(K_{3,3}\), allowed us to actually reduce the maximum number of pages incident to any one vertex from 3 to \({\text {pn}}_\ell (K_{3,3}) = 2\). And for some graphs G with \({\text {pn}}_\ell (G) = k\), in fact all k-local book embeddings have more than \({\text {pn}}(G)\) pages.

Fig. 1.
figure 1

Comparison of local, union, and classical page numbers on the examples of \(K_{3,3}\) and \(K_5\). Left: 2-page union embedding of \(K_{3,3}\). Right: 2-local book embedding of \(K_5\).

Union Page Numbers. For a linear embedding \((\prec ,\mathcal {P})\) (so not necessarily a book embedding) of graph \(G = (V,E)\) and a page \(P \in \mathcal {P}\), let us denote by \(G_P\) the subgraph of G on all edges in P and all vertices with some incident edge in P. Then we define:

  • A linear embedding \((\prec ,\mathcal {P})\) is a union embedding if \((\prec ,\{E(C)\})\) is a (1-page) book embedding for each connected component C of \(G_P\) and each \(P \in \mathcal {P}\), i.e., each connected component of each page is crossing-free.

  • The union page number, denoted by \({\text {pn}}_u(G)\), is the smallest k for which we can find a k-page union embedding of G.

In other words, in a union embedding, each page is the vertex-disjoint union of crossing-free graphs; hence the name “union page number”. So we allow crossing edges on a single page P, as long as these are contained in different components of \(G_P\). For the union page number \({\text {pn}}_u(G)\) we minimize the number of pages, just like for the classical page number \({\text {pn}}(G)\).

Again, each k-page book embedding is also a k-page union embedding, giving \({\text {pn}}_u(G) \leqslant {\text {pn}}(G)\). Moreover, each k-page union embedding can be transformed into a k-local book embedding by putting each component of each page onto a separate page, giving \({\text {pn}}_\ell (G) \leqslant {\text {pn}}_u(G)\). Summarizing,

$$\begin{aligned} \text {for any graph } G \text { we have } \qquad {\text {pn}}_\ell (G) \leqslant {\text {pn}}_u(G) \leqslant {\text {pn}}(G). \end{aligned}$$
(3)

Consider again the linear embedding of \(K_{3,3}\) in the left of Fig. 1, but this time put all three orange/thick edges on the same page P. These edges are pairwise crossing, so this is not a book embedding. However these edges lie in separate connected components of \(G_P\), so this is a union embedding. As we found a 2-page union embedding of \(K_{3,3}\), we see \({\text {pn}}_u(K_{3,3}) \leqslant 2 < 3 = {\text {pn}}(K_{3,3})\).

Comparing union and local page numbers, we have that \({\text {pn}}_\ell (G)\) can be strictly smaller than \({\text {pn}}_u(G)\). For example, we have already seen in Fig. 1 that \({\text {pn}}_\ell (K_5) \leqslant 2\), and we claim that \({\text {pn}}_u(K_5) > 2\). Indeed, for the cyclic spine ordering \(v_1 \prec \cdots \prec v_5\) and pages \(P_1,P_2\) we may assume by symmetry that \(v_1v_3, v_1v_4, v_2v_5 \in P_1\) and \(v_2v_4, v_3v_5 \in P_2\). As each connected component of \(G_{P_1}\) and \(G_{P_2}\) is crossing-free, \(v_2\) and \(v_3\) are in distinct components in both page \(P_1\) and page \(P_2\), leaving no way to assign the edge \(v_2v_3\).

Motivation. Local and union page numbers are motivated by local and union covering numbers as introduced by Knauer and the second author [19]. In order to give a brief summary of the covering number framework, consider a graph H and a graph class \(\mathcal {G}\). An injective \(\mathcal {G}\)-cover of H is a set \(S = \{G_1,\ldots ,G_m\}\) of subgraphsFootnote 2 of H such that \(H = G_1 \cup \cdots \cup G_m\) and \(G_i \in \mathcal {G}\) for \(i=1,\ldots ,m\). In other words, H is covered by (is the union of) some m (possibly isomorphic) graphs from \(\mathcal {G}\). Moreover, let \(\overline{\mathcal {G}}\) denote the class of all finite vertex-disjoint unions of graphs in \(\mathcal {G}\), meaning that \(G \in \overline{\mathcal {G}}\) if and only if G is the vertex-disjoint union of some number of graphs in \(\mathcal {G}\).

The global \(\mathcal {G}\)-covering number of H, denoted by \({\text {cn}}_g^{\mathcal {G}}(H)\), is the smallest m such that there exists an injective \(\mathcal {G}\)-cover of H of size m, i.e., using m graphs in \(\mathcal {G}\). The union \(\mathcal {G}\)-covering number of H, denoted by \({\text {cn}}_u^{\mathcal {G}}(H)\), is the smallest m such that there exists an injective \(\overline{\mathcal {G}}\)-cover of H of size m, i.e., using m vertex-disjoint unions of graphs in \(\mathcal {G}\). The local \(\mathcal {G}\)-covering number of H, denoted by \({\text {cn}}_\ell ^\mathcal {G}(H)\), is the smallest k such that there exists an injective \(\mathcal {G}\)-cover of H in which every vertex of H is contained in at most k graphs of the cover, i.e., using any number of graphs from \(\mathcal {G}\) but with no vertex of H being contained in more than k of these.Footnote 3

Many graph parameters (including arboricities, thickness parameters, variants of chromatic numbers, several Ramsey numbers, and interval representations) are \(\mathcal {G}\)-covering numbers of a certain type and for a certain graph class \(\mathcal {G}\). Moreover, recently the global-union-local framework was extended to settings that do not directly concern graph covers, such as the local and union boxicity [6], and the local dimension of posets [29], which has stimulated research drastically [2, 7, 12, 18, 20, 28]. Our proposed local and union page numbers naturally arise from the covering number framework by using ordered graphs and ordered subgraphs in the above definitions and taking \(\mathcal {G}\) to be the class of all crossing-free ordered graphs.

Particularly the local page number might be very useful in applications. For example, oftentimes the spine ordering \(\prec \) of G is already given from the problem formulation (by time stamps, geographic positions or a genetic sequence). Then the edges of G model some kind of connections and classical book embeddings are used to distribute the connections to machines that can process sets of connections that satisfy the LIFO (last-in-first-out) property. Local book embeddings could be used to model situations in which the total number of machines is not the scarce resource but rather the number of machines working on the same element, i.e., vertex. Imagine for example limited capacity at each element in terms of computing power (as for cell phones) or simply spatial restrictions (as for genes). This kind of task is precisely modeled by local book embeddings and the local page numbers.

1.1 Our Contribution

First, we show that the new parameters \({\text {pn}}_\ell (G)\) and \({\text {pn}}_u(G)\) can be arbitrarily smaller than the classical page number \({\text {pn}}(G)\), while local and union page number are always at most a multiplicative factor of 4 apart.

Theorem 1

For any \(k \geqslant 3\) and infinitely many values of n, there exist n-vertex graphs G with

$$ {\text {pn}}_\ell (G) \leqslant {\text {pn}}_u(G) \leqslant k+2 \quad \text {and} \quad {\text {pn}}(G) = \varOmega \left( \sqrt{k}n^{1/2-1/k}\right) . $$

In contrast, for every graph G we have \({\text {pn}}_u(G) \leqslant 4 {\text {pn}}_\ell (G)+2\).

While for every planar graph G we have \({\text {pn}}(G) \leqslant 4\) [33], it is not known whether there is a planar graph G with \({\text {pn}}(G) = 4\). The best known lower bound was given by Bernhart and Kainen [3], who presented a planar graph G with \({\text {pn}}(G) = 3\). That very graph satisfies \({\text {pn}}_\ell (G) = 2\), but we can augment it to a planar graph with local page number 3.

Theorem 2

There is a planar graph G with \({\text {pn}}_\ell (G) = 3\).

For graphs G with tree-width k, it is known that \({\text {pn}}(G) \leqslant k\) if \(k \in \{1,2\}\) [25] and \({\text {pn}}(G) \leqslant k+1\) if \(k \geqslant 3\) [13], and both bounds are best possible [10, 30]. For the local and union page number we get a lower bound of k.

Theorem 3

For every \(k \geqslant 1\) there is a graph G of tree-width k with \({\text {pn}}_u(G) \geqslant {\text {pn}}_\ell (G) \geqslant k\).

Finally, it is known that \({\text {pn}}(G) \leqslant 2\) if and only if G is a subgraph of a planar Hamiltonian graph [3]. Hence, it follows from [31] that deciding \({\text {pn}}(G) \leqslant 2\) is NP-complete, which easily generalizes to \({\text {pn}}(G) \leqslant k\) for each \(k \geqslant 2\). (Since \({\text {pn}}(G) = 1\) is equivalent to G being outerplanar, this can be efficiently tested.) If the spine ordering \(\prec \) is already given, the problem of finding an edge partition into k crossing-free pages is equivalent to that of properly k-coloring circle graphs and hence determining the smallest such k is NP-complete [14]. While properly k-coloring circle graphs is polynomial-time solvable for \(k=2\), it is open whether the problem becomes NP-hard for fixed \(k \geqslant 3\). For the local page number we have NP-completeness for fixed spine ordering \(\prec \) and each fixed \(k \geqslant 3\).

Theorem 4

For any \(k \geqslant 3\), it is NP-complete to decide for a given graph G and given spine ordering \(\prec \), whether there exists an edge partition \(\mathcal {P}\) such that \((\prec ,\mathcal {P})\) is a k-local book embedding.

For a proof of Theorem 4 we refer the interested reader to the Bachelor’s thesis of the first author [22].

2 Bounds in Terms of Density

Though not a fixed mathematical concept, the density of a graph \(G = (V,E)\) quantifies the number |E| of edges in terms of the number |V| of vertices. An important specification of density is the maximum average degree of G defined by

$$ {\text {mad}}(G) = \max \left\{ \frac{2|E(H)|}{|V(H)|} \mid H \subseteq G, H \ne \emptyset \right\} . $$

Recall that for a linear embedding \((\prec ,\mathcal {P})\) of \(G = (V,E)\) and a page \(P \in \mathcal {P}\) we denote by \(G_P = (V_P,P)\) the subgraph of G on all edges in P and all vertices of G with at least one incident edge in P. Clearly, if P is crossing-free, then \(G_P\) is outerplanar and thus \(|P| \leqslant 2|V_P|-3\). As \(\bigcup _{P \in \mathcal {P}} P = E\) and \(V_P \subseteq V\) for each page P, we immediately get an upper bound on the density of any graph with a k-local book embedding.

Lemma 5

For any graph \(G = (V,E)\) we have

$$ {\text {pn}}_\ell (G) \geqslant \max \left\{ \frac{|E(H)|}{2|V(H)|-3} \mid H \subseteq G, H \ne \emptyset \right\} . $$

Proof

Let H be any non-empty subgraph of a graph G of local page number \({\text {pn}}_\ell (G) = k\). Then there is a k-local book embedding \((\prec ,\mathcal {P})\) of H, each page P of which describes an outerplanar graph \(H_P = (V_P,P)\). Thus

$$ |E(H)| \leqslant \sum _{P \in \mathcal {P}} \left( 2|V_P|-3 \right) \leqslant 2k|V(H)| - 3|\mathcal {P}| \leqslant {\text {pn}}_\ell (G) \cdot (2|V(H)|-3). $$

   \(\square \)

From Lemma 5 and Eq. (3) we conclude for every graph G that

$$\begin{aligned} {\text {pn}}(G) \geqslant {\text {pn}}_u(G) \geqslant {\text {pn}}_\ell (G) \geqslant {\text {mad}}(G)/4. \end{aligned}$$
(4)

In other words, the graph’s density gives a lower bound on all three kinds of page numbers. Perhaps surprisingly, there is also an upper bound on the union and local page numbers in terms of the graph’s density.

Nash-Williams [23] proved that any graph G edge-partitions into k forests if and only if

$$ k \geqslant \max \left\{ \frac{|E(H)|}{|V(H)|-1} \mid H \subseteq G, |V(H)| \geqslant 2 \right\} . $$

The smallest such k, the arboricity \({\text {a}}(G)\) of G, thus satisfies \(\frac{1}{2}{\text {mad}}(G) < {\text {a}}(G) \leqslant \frac{1}{2}{\text {mad}}(G)+1\). The star arboricity \({\text {sa}}(G)\) of G is the minimum k such that G edge-partitions into k star forests. Thus \({\text {sa}}(G)\) is the union \(\mathcal {G}\)-covering number of G with respect to the class \(\mathcal {G} = \{K_{1,n} \mid n \in \mathbb {N}\}\) of all stars. Using the covering number framework, Knauer and the second author [19] introduced the corresponding local \(\mathcal {G}\)-covering number, the local star arboricity \({\text {sa}}_\ell (G)\), as the minimum k such that G edge-partitions into some number of stars, but with each vertex having an incident edge in at most k of these stars. It is known [1, 19] that \({\text {sa}}(G)\) and \({\text {sa}}_\ell (G)\) can be bound in terms of \({\text {a}}(G)\) as

$$ {\text {a}}(G) \leqslant {\text {sa}}(G) \leqslant 2{\text {a}}(G) \qquad \text { and } \qquad {\text {a}}(G) \leqslant {\text {sa}}_\ell (G) \leqslant {\text {a}}(G)+1. $$

Theorem 6

For any graph G we have \({\text {pn}}_\ell (G) \leqslant {\text {sa}}_\ell (G)\) and \({\text {pn}}_u(G) \leqslant {\text {sa}}(G)\). In particular, we have

$$ \frac{{\text {mad}}(G)}{4} \leqslant {\text {pn}}_\ell (G) \leqslant \frac{{\text {mad}}(G)}{2}+2 \quad \text { and } \quad \frac{{\text {mad}}(G)}{4} \leqslant {\text {pn}}_u(G) \leqslant {\text {mad}}(G)+2. $$

Proof

Take an arbitrary spine ordering \(\prec \) and an edge-partition \(\mathcal {P}\) into stars. Then each page is crossing-free, which shows \({\text {pn}}_\ell (G) \leqslant {\text {sa}}_\ell (G)\). Now take an arbitrary spine ordering \(\prec \) and an edge-partition \(\mathcal {P}\) into star forests. Then each connected component on each page is a star and thus crossing-free, which shows \({\text {pn}}_u(G) \leqslant {\text {sa}}(G)\).    \(\square \)

Though Theorem 6 is merely an observation, it has a number of interesting consequences. First of all, the local and union page number are not too far apart: \({\text {pn}}_\ell (G) \leqslant {\text {pn}}_u(G) \leqslant 4{\text {pn}}_\ell (G)+2\). However, the local and union page numbers can be very far from the classical page number. For example, we have \({\text {sa}}_\ell (G) \leqslant k = {\text {mad}}(G)\) for every k-regular graph G, and hence \({\text {pn}}_\ell (G) \leqslant k\) and \({\text {pn}}_u(G) \leqslant k+2\) whenever G is k-regular. On the other hand, Malitz [21] proved that for every \(k \geqslant 3\) there are n-vertex k-regular graphs G with page number \({\text {pn}}(G) = \varOmega (\sqrt{k}n^{1/2-1/k})\). Together this proves Theorem 1.

For planar G we have \({\text {a}}(G) \leqslant 3\) [23], hence \({\text {sa}}_\ell (G) \leqslant 4\) [19], as well as \({\text {sa}}(G) \leqslant 5\) [15]. Hence, Theorem 6 immediately gives the following (without relying on Yannakakis’ result [33]).

Corollary 7

For every planar graph G we have \({\text {pn}}_\ell (G) \leqslant 4\) and \({\text {pn}}_u(G) \leqslant 5\).

3 Planar Graphs

In this section we consider planar graphs. In particular, we prove Theorem 2 stating the existence of a planar graph with local page number 3. Our planar graph will be a large enough stacked triangulation (also known as planar 3-trees, chordal triangulations, or Apollonian networks). For this let \(T_0 \cong K_3\) and for \(n \geqslant 1\) define \(T_n\) as obtained from \(T_{n-1}\) by placing a new vertex \(v_\varDelta \) in each facial triangle \(\varDelta \) of \(T_{n-1}\), and connecting \(v_\varDelta \) by edges to each of the three vertices of \(\varDelta \). Thus, for \(n \geqslant 0\) we have \(|V(T_n)| = 3^n + 2\).

Suppose for the sake of contradiction there is a 2-local book embedding \((\prec ,\mathcal {P})\) of \(T_9\). We consider the subgraphs \(T_0 \subseteq T_1 \subseteq \cdots \subseteq T_9\) of \(T_9\).

Claim

There exists an edge vw in \(T_1\) with \(\mathcal {P}_v = \mathcal {P}_w\) and \(|\mathcal {P}_v| = |\mathcal {P}_w| = 2\).

Indeed, consider the four vertices \(v_1,v_2,v_3,v_4\) of one of the two \(K_4\) subgraphs in \(T_1\). Without loss of generality assume that \(|\mathcal {P}_{v_1}| = \cdots = |\mathcal {P}_{v_4}| = 2\). As \(\mathcal {P}_{v_i} \cap \mathcal {P}_{v_j} \ne \emptyset \) for any \(i,j \in \{1,\ldots ,4\}\), we can see \(\mathcal {P}_{v_1},\ldots ,\mathcal {P}_{v_4}\) as four pairwise incident edges in a multigraph I on vertex set \(\mathcal {P}\), where two vertices of I are connected by an edge if there is common vertex of G on the two respective pages. Thus, if \(\mathcal {P}_{v_1},\ldots ,\mathcal {P}_{v_4}\) were pairwise distinct, they would form a star, i.e., all pairwise intersections would be the same page \(P \in \mathcal {P}\). But then the whole \(K_4\) subgraph on \(v_1,\ldots ,v_4\) would be embedded on page P, which is impossible as \(K_4\) is not outerplanar.

So let vw be an edge in \(T_1\) with \(\mathcal {P}_v = \mathcal {P}_w = \{P_1,P_2\}\). By the inductive construction of stacked triangulations, there is a set \(X = \{x_1,\ldots ,x_7\}\) of seven vertices in \(T_8 - T_1\) that are incident to v and w and induce a path in \(T_9\); see Fig. 2. By pigeon-hole principle and cyclic shifts of \(\prec \), we may assume that \(v \prec x_1 \prec x_2 \prec x_3 \prec x_4 \prec w\), where \(x_1,\ldots ,x_4\) are consecutive in \(\prec \) when restricted to X. Each of \(vx_i\) and \(wx_i\), \(i=1,\ldots ,4\), lies on \(P_1\) or \(P_2\); say \(vx_4 \in P_1\). Then \(wx_1,wx_2,wx_3 \in P_2\), and thus \(vx_2,vx_3 \in P_1\). In particular, we have \(\mathcal {P}_{x_2} = \mathcal {P}_{x_3} = \{P_1,P_2\}\).

Fig. 2.
figure 2

Part of the planar graph with local page number 3 (left) and part of the hypothetical 2-local book embedding (right).

Now observe that \(x_2\) cannot be adjacent to any vertex y with \(x_3 \prec y\) and \(y \ne w\). Indeed, such an edge \(x_2y\) would cross the edge \(vx_3 \in P_1\) and one of \(wx_1,wx_3 \in P_2\). Symmetrically, \(x_3\) cannot be adjacent to any vertex y with \(y \prec x_2\) and \(y \ne v\). As X induces a path in \(T_9\) and no vertex of X lies between \(x_2\) and \(x_3\) in \(\prec \), it follows that \(x_2x_3\) is an edge of the path. By symmetry assume \(x_2x_3 \in P_1\). This implies that v cannot be adjacent to any vertex y with \(x_2 \prec y \prec x_3\), as such an edge vy would cross the edges \(x_2x_3 \in P_1\) and \(wx_2 \in P_2\).

But then \(v,x_2,x_3\) form a facial triangle \(\varDelta \) of \(T_8\) with all three edges on page \(P_1\). However, there is no possible placement for the vertex \(y = v_\varDelta \) in \(T_9\) that is adjacent to each of \(v,x_2,x_3\). Thus, the planar graph \(T_9\) admits no 2-local book embedding, which proves Theorem 2.

4 Graphs with Bounded Tree-Width

In this section we investigate the largest union page number and the largest local page number among all graphs of tree-width k. Clearly it suffices to consider edge-maximal graphs of tree-width k, the so-called k-trees, which are inductively defined as follows: A graph G is a k-tree if and only if \(G \cong K_{k+1}\) or G is obtained from a smaller k-tree \(G'\) by adding one new vertex v whose neighborhood in \(G'\) is a clique of order k.

As our main tool in this section, let us define a linear embedding \((\prec ,\mathcal {P})\) to be a forest embedding if the edges on each page \(P \in \mathcal {P}\) form a forest. For a graph G, we say that a book embedding \((\prec ,\mathcal {P})\) of some other graph \(\bar{G} = (\bar{V},\bar{E})\) contains a forest embedding of G if there exists a set \(X \subseteq \bar{V}\) such that \(G \cong \bar{G}[X]\) and \((\prec ,\mathcal {P})\) restricted to \(\bar{G}[X]\) is a forest embedding of G.

Lemma 8

For every \(\ell \in \mathbb {N}\) and every k-tree G there exists a k-tree \(\bar{G}\) such that every \(\ell \)-local book embedding of \(\bar{G}\) contains a forest embedding of G.

Proof

We find \(\bar{G}\) based on \(G = (V,E)\) by induction on |V| as follows.

In the base case we have \(G \cong K_{k+1}\) and we find \(\bar{G}\) by induction on k. In the base case of this inner induction we have \(k=1\) and it suffices (for any \(\ell \)) to take \(\bar{G} = G \cong K_2\). For \(k > 1\), we get from induction a \((k-1)\)-tree \(\bar{G}_{k-1}\) all of whose \(\ell \)-local book embeddings contain a forest embedding of \(K_k\). Starting with \(\bar{G}_{k-1}\), add for each k-clique C in \(\bar{G}_{k-1}\) an independent set \(I_C\) of \(3k^2\ell \) vertices, together with all possible edges between C and \(I_C\). The resulting graph has tree-width k and hence can be augmented to a k-tree \(\bar{G}\). Consider any book embedding \((\prec ,\mathcal {P})\) of \(\bar{G}\). The inherited book embedding of \(\bar{G}_{k-1} \subseteq \bar{G}\) contains a forest embedding of \(K_k\), i.e., we have a forest embedding of some k-clique C in \(\bar{G}_{k-1}\). If one vertex v in \(I_C\) has its k incident edges on k pairwise different pages, then we have a forest embedding of \(C \cup v \cong K_{k+1}\), as desired. Otherwise, each vertex v in \(I_C\) has two incident edges on the same page in \(\mathcal {P}\) joining v with two vertices in C. By pigeon-hole principle, for a set \(I'\) of at least \(|I_C| / k^2 = 3\ell \) vertices of \(I_C\) these are the same two vertices \(c,c'\) of C. Since each of \(c,c'\) has incident edges on at most \(\ell \) pages, again by pigeon-hole principle, one page in \(\mathcal {P}\) contains the edges between \(c,c'\) and at least \(|I'| / \ell = 3\) vertices in \(I'\). However this is a contradiction as \(K_{2,3}\) is not outerplanar.

Now for the induction step of the outer induction, assume that G is a k-tree with \(|V| > k+1\) vertices. Then G is obtained from a k-tree \(G'\) by adding one vertex v whose neighborhood in \(G'\) is a clique of order k. From induction we get a k-tree \(\bar{G}'\) all of whose \(\ell \)-local book embeddings contain a forest embedding of \(G'\). Now we can do the same argument as before: Obtain \(\bar{G}\) from \(\bar{G}'\) by adding for each k-clique C in \(\bar{G}'\) an independent set \(I_C\) of size \(3k^2\ell \), together with all possible edges between C and \(I_C\). Then any \(\ell \)-local book embedding of \(\bar{G}\) induces an \(\ell \)-local book embedding of \(\bar{G}'\), which hence contains a forest embedding of \(G'\). Let C be the k-clique in \(G'\) that forms the neighborhood of v in G. The same argumentation as above then shows that at least one vertex in \(I_C\) has its k incident edges to C on k distinct pages, giving the desired forest embedding of G. (Essentially, the only difference to the base case is that adding the independent sets to \(\bar{G}'\) gives a full k-tree, since \(\bar{G}'\) is already a k-tree.)    \(\square \)

Having Lemma 8, Theorem 3 (the existence of a k-tree with local page number k) follows with two simple edge counts.

  • If \(G = (V,E)\) admits a \(\ell \)-local forest embedding \((\prec ,\mathcal {P})\), then

    $$\begin{aligned} |E| \leqslant \sum _{P \in \mathcal {P}} (|V_P|-1) \leqslant \ell |V| - |\mathcal {P}| \leqslant \ell (|V|-1). \end{aligned}$$
    (5)
  • If \(G = (V,E)\) is a k-tree, then

    $$\begin{aligned} |E| = k|V| - \left( {\begin{array}{c}k+1\\ 2\end{array}}\right) . \end{aligned}$$
    (6)

To prove Theorem 3, we shall find for each \(k \geqslant 1\) a k-tree whose local page number is at least k. For \(k=1\) there is nothing to show. For \(k \geqslant 2\), let \(G_0 = (V,E)\) be any k-tree with \(|V| > \left( {\begin{array}{c}k+1\\ 2\end{array}}\right) -(k-1)\) (Note that this is a vertex count!) and let \(G = \bar{G}_0\) be the corresponding k-tree given by Lemma 8 for \(\ell = k-1\). Assuming for the sake of contradiction that \({\text {pn}}_\ell (G) \leqslant k-1\), we obtain a \((k-1)\)-local forest embedding \((\prec ,\mathcal {P})\) of \(G_0\). Then

$$ |E| \overset{5}{\leqslant } (k-1)(|V|-1) = k|V| - (|V| + (k-1)) < k|V|-\left( {\begin{array}{c}k+1\\ 2\end{array}}\right) \overset{6}{=} |E|, $$

a contradiction. Hence \({\text {pn}}_\ell (G) \geqslant k\), as desired.

To end this section, let us also discuss some further implications of Lemma 8. We leave it open whether every k-tree has local page number at most k, i.e., whether the lower bound in Theorem 3 is tight. By Lemma 8 this is equivalent to every k-tree admitting a k-local forest book embedding. By putting each tree in each forest on a separate page, we even get a k-local forest embedding \((\prec ,\mathcal {P})\) with a tree on each page. Moreover, by Eqs. (5) and (6) we would have \(|\mathcal {P}| \leqslant \left( {\begin{array}{c}k+1\\ 2\end{array}}\right) \), i.e., no more than \(\left( {\begin{array}{c}k+1\\ 2\end{array}}\right) \) trees in total, while at most k at any one vertex.

And we get a similar statement for the maximum union page number of k-trees. Suppose \((\prec ,\mathcal {P})\) is an \(\ell \)-union embedding of some graph, and that on all pages in \(\mathcal {P}\) together we have m connected components. Putting each connected component on a separate (new) page, we obtain an \(\ell \)-local book embedding \((\prec ,\tilde{\mathcal {P}})\) with \(|\tilde{\mathcal {P}}| = m\) pages. Now if \({\text {pn}}_u(G) \leqslant k\) for all k-trees, then Lemma 8 implies that every k-tree even admits a k-union forest embedding. Moreover, by Eqs. (5) and (6) we get a forest embedding with \(m \leqslant \left( {\begin{array}{c}k+1\\ 2\end{array}}\right) \) trees in total, while having at most k at any one vertex.

Specifically, in order to prove \({\text {pn}}_\ell (G) \leqslant k\) for every k-tree G, our task is to find a partition \(\mathcal {P}\) of the edges in G into at most \(\left( {\begin{array}{c}k+1\\ 2\end{array}}\right) \) trees, such that every vertex is contained in no more than k of these trees, as well as a spine ordering \(\prec \) for which each of the trees is non-crossing. The first part has a very natural solution: Every k-tree G has chromatic number \(k+1\) and admits a uniqueFootnote 4 proper \((k+1)\)-vertex coloring \(\phi \). Moreover, there are exactly \(\left( {\begin{array}{c}k+1\\ 2\end{array}}\right) \) pairs of colors in \(\phi \), any pair of color classes induces a tree in G, and each vertex of G is contained in exactly k of these trees. Hence every k-tree G edge-partitions into \(\left( {\begin{array}{c}k+1\\ 2\end{array}}\right) \) trees with each vertex being contained in k of these trees. Note that in this cover, every \((k+1)\)-clique in G has all \(\left( {\begin{array}{c}k+1\\ 2\end{array}}\right) \) edges in pairwise distinct trees.

We have however not been able to prove (or disprove) the existence of a spine ordering \(\prec \) under which no pair of color classes induces a crossing. If such exists, it would show \({\text {pn}}_\ell (G) \leqslant k\) for all \(k \geqslant 1\) and \({\text {pn}}_u(G) \leqslant k\) for k odd and \({\text {pn}}_u(G) \leqslant k+1\) for k even. Note that for the union page number we also need to group the \(\left( {\begin{array}{c}k+1\\ 2\end{array}}\right) \) trees into as few forests of vertex-disjoint trees as possible. Due to the nature of our coloring, this is equivalent to properly edge-coloring \(K_{k+1}\); hence the distinction on the parity of k.

5 Conclusions and Open Problems

In this paper we presented two novel graph parameters: the local page number \({\text {pn}}_\ell (G)\) and the union page number \({\text {pn}}_u(G)\). Both parameters are weakenings of the classical page number \({\text {pn}}(G)\) and we have \({\text {pn}}_\ell (G) \leqslant {\text {pn}}_u(G) \leqslant {\text {pn}}(G)\). Hence, one might be able to strengthen existing lower bounds of the form \({\text {pn}}(G) \geqslant X\) by showing \({\text {pn}}_u(G) \geqslant X\) or even \({\text {pn}}_\ell (G) \geqslant X\). On the other hand, one might be able to support conjectured upper bounds of the form \({\text {pn}}(G) \leqslant X\) by showing the weaker bounds \({\text {pn}}_\ell (G) \leqslant X\) or even \({\text {pn}}_u(G) \leqslant X\).

Fig. 3.
figure 3

Illustrations of some k-local book embeddings of \(K_n\) for \(n=6,9,11,15\). The shown page for \(n=6\) (\(n=11\), \(n=15\)) is repeated 3 times (11 times, 15 times), each shifted cyclically by one position.

In this paper we started to pursue this direction of research. Let us list some concrete cases that are still open:

  • For the complete graph \(K_n\) it is known [3] that \({\text {pn}}(K_n) = \lceil n/2\rceil \). On the other hand, the density of \(K_n\) implies that \({\text {pn}}_\ell (K_n) \geqslant \lceil (n-1)/4 \rceil \) (Lemma 5). In Fig. 3 we indicate some k-local book embeddings of \(K_n\) for some small values of n. According to this \({\text {pn}}_\ell (K_6) \leqslant 2\), \({\text {pn}}_\ell (K_9) \leqslant 3\), \({\text {pn}}_\ell (K_{11}) \leqslant 4\), and \({\text {pn}}_\ell (K_{15}) \leqslant 5\). Using the inequality \(|E(G)| \leqslant 2{\text {pn}}_\ell (G)|V(G)| - 3{\text {pn}}(G)\) from the proof of Lemma 5, we see that \({\text {pn}}_\ell (K_7) \geqslant 3\). (And with one further trick we get \({\text {pn}}_\ell (K_{10}) \geqslant 4\).) We refer to [22] for more details, and state it is an open problem to improve the following general bounds:

    $$ \left\lceil \frac{n-1}{4} \right\rceil \leqslant {\text {pn}}_\ell (K_n) \leqslant {\text {pn}}_u(K_n) \leqslant {\text {pn}}(K_n) = \left\lceil \frac{n}{2} \right\rceil $$
  • In 1989, Yannakakis [33] proved that for any planar graph G we have \({\text {pn}}(G) \leqslant 4\), while removing an earlier claim [32] that there would be some planar graph G with \({\text {pn}}(G) \geqslant 4\). Ganley and Heath [13] observed that stacked triangulation \(T_2\) (using our notation from Sect. 3, but also known as the Goldner-Harary graph) is a planar graph with \({\text {pn}}(T_2) = 3\), which remains until today the best known lower bound. While \({\text {pn}}_\ell (T_2) = 2\), we show in Sect. 3 that \({\text {pn}}_\ell (T_9) = 3\), while we leave it as an open problem to improve on the bounds

    $$ 3 \leqslant \max _{G \text { planar}} {\text {pn}}_\ell (G) \leqslant \max _{G \text { planar}} {\text {pn}}_u(G) \leqslant \max _{G \text { planar}} {\text {pn}}(G) \leqslant 4. $$
  • We have a similar open problem for k-trees, where we refer to the detailed discussion at the end of Sect. 4.

    $$ k \leqslant \max _{G \; k\text {-tree}} {\text {pn}}_\ell (G) \leqslant \max _{G \; k\text {-tree}} {\text {pn}}_u(G) \leqslant \max _{G \; k\text {-tree}} {\text {pn}}(G) = {\left\{ \begin{array}{ll}k &{} \text {if } k \leqslant 2\\ k+1 &{} \text {if } k \geqslant 3\end{array}\right. } $$

Besides determining the local and union page numbers for other graph classes (like for example regular graphs), it is also interesting to further analyze the relation between \({\text {pn}}_\ell (G), {\text {pn}}_u(G), {\text {a}}(G)\) and \({\text {sa}}(G)\). For example, what is the maximum of \({\text {pn}}_u(G) / {\text {pn}}_\ell (G)\) over all graphs G?

Finally, let us mention that changing the non-crossing condition Eq. (1) underlying the notion of book embeddings to for example a non-nesting condition, we get local and union versions of queue numbers. Interestingly, the proof of Theorem 6 remains valid and so does Corollary 7, giving that every planar graph has local queue number at most 4 and union queue number at most 5.