The Page Number of Monotone Directed Acyclic Outerplanar Graphs Is Four or Five
Abstract
A -page book embedding of a directed acyclic graph consists of a topological order of its vertices and a -coloring of its edges, such that no two edges of the same color cross, that is, their endpoints do not alternate in the order. The minimum value of for which such an embedding exists is referred to as the page number of the graph. In contrast to general directed acyclic planar graphs, which may have unbounded page number [SIAM J. Comput. 28(5), 1999], it was recently shown that directed acyclic outerplanar graphs have bounded page number. In particular, Jungeblut, Merker and Ueckerdt provided an upper bound of 24,776 on their page number [FOCS 2023: 1937-1952].
In this work, we focus on so-called monotone directed acyclic outerplanar graphs. Starting from a single edge, these graphs are constructed by iteratively connecting a new vertex to the endpoints of an existing edge on the outer face using either two incoming or two outgoing edges incident to it. These graphs have twist-number [GD 2023: 135-151] (i.e., they admit a topological order in which no more than four edges pairwise cross), a property, which was leveraged by Jungeblut, Merker and Ueckerdt to show that their page number is at most 128. We lower this upper bound to and we also provide a lower bound of . A notable consequence of our result is a significant improvement of the upper bound on the page number of general directed outerplanar graphs from 24,776 to 1,160.
Keywords and phrases:
Book embeddings, page number, directed outerplanar graphsCopyright and License:
2012 ACM Subject Classification:
Mathematics of computing Graph algorithms ; Mathematics of computing Graph theoryFunding:
The work of M.B. has been supported by HFRI Grant No: 26320.Acknowledgements:
We would like to thank the anonymous reviewers of this submission for valuable comments; in particular, for bringing to our attention the details of Remark 5.Editors:
Vida Dujmović and Fabrizio MontecchianiSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Embedding graphs in books forms a central topic in topological Graph Theory and Graph Drawing with early results dating back to the 70’s [4, 19]. Primarily motivated by applications in VLSI design [7, 20, 21], book embeddings of graphs have been the subject of intensive research [1, 2, 6, 11, 12, 22, 23]. Formally, a -page book embedding of a graph consists of a linear order of its vertices and a -coloring of its edges, such that no two edges of the same color cross, that is, their endpoints do not alternate in the order; refer, e.g., to [10] for a thorough introduction. When the graph is directed, the underline linear order must coincide with a topological order of the graph [18]; see, e.g., Figure 1. Given a graph (directed or not), the minimum value of for which a -page book embedding exists is commonly referred to as the page number (a.k.a. book thickness and stack number) of the graph. Accordingly, the page number of a graph family is defined as the maximum page number among its members.
In this context, a particularly intriguing research branch that has received significant attention over the years involves planar graphs and their various subclasses. While the page number of planar graphs has been recently resolved in the undirected setting [2, 23, 22], several open problems persist in the directed setting despite numerous efforts; see, e.g., [15]. Undoubtedly, the most notable one, which dates back to 1989 [18], is the one of specifying the page number of upward planar graphs; a sublinear upper bound was only recently proved in the literature [14]. In general, directed acyclic planar graphs may have unbounded page number as shown by Nowakowski and Parker [18]. This negative result was recently further strengthened by Jungeblut, Merker and Ueckerdt [15], who showed that even graphs with treewidth 2 may have unbounded page number. These negative results suggest that, in the directed setting, only very restricted subclasses of planar graphs are expected to have bounded page number. Indicatively, we mention the classes of directed trees [13], two-terminal series-parallel graphs [9], N-free graphs [16], directed acyclic outerpaths [17] and planar graphs whose faces have a special structure [5].
It is worth making a separate reference to the class of directed acyclic outerplanar graphs. For this elementary class, Heath, Pemmaraju and Trenk [13] back in 1999 conjectured a constant upper bound on their page number. Surprisingly enough, their conjectured remained open for more than twenty years. An important step towards settling it was done by Nöllenburg and Pupyrev [17] in 2023, who showed that the monotone directed acyclic outerplanar graphs have bounded page number; these graphs are constructed starting from a single so-called base edge by iteratively connecting a new vertex to the endpoints of an existing edge on the outer face using either two incoming or two outgoing edges incident to it (and thus, they are by definition maximal). More precisely, an explicit upper bound of 128 can be derived by combining the work by Nöllenburg and Pupyrev [17] with a known result by Davies [8]. Based on this result, Jungeblut, Merker and Ueckerdt [15] managed to settle in the positive the conjecture by Heath, Pemmaraju and Trenk [13]. In particular, they first observed the following relationship between the page number of monotone and general directed acyclic outerplanar graphs:
Theorem 1 (Jungeblut, Merker and Ueckerdt [15]).
If is an upper bound on the page number of directed acyclic monotone outerplanar graphs, then is an upper bound on the page number of general directed acyclic outerplanar graphs.
Theorem 1 together with the aforementioned bound of 128 by Nöllenburg and Pupyrev [17], enabled Jungeblut, Merker and Ueckerdt [15] to prove that the page number of directed acyclic outeplanar graphs is at most 24,776. Of course, they asked for improvements to this bound.
Our Contribution.
In this work, we present the first such improvement. In view of the multiplicative factors of the relationship given in Theorem 1, we naturally turn our attention to the class of directed acyclic monotone outerplanar graphs, for which we lower the upper bound on their page number from 128 [8, 17] to 5; as a side result of independent interest, we also present a corresponding lower bound of 4. A notable consequence of our upper bound is that, when it is coupled with Theorem 1, it yields a significant improvement of the upper bound on the page number of general directed acyclic outerplanar graphs from 24,776 to 1,160. A summary of our findings is given in the following theorem and its corollary.
Theorem 2.
The page number of directed acyclic monotone outerplanar graphs is or .
Corollary 3.
The page number of directed acyclic outerplanar graphs is at most 1,160.
2 Preliminaries
In this paper, we consider directed graphs, i.e., graphs in which every edge between two vertices and has an orientation, either from to , or from to ; in the former case, we denote by , while in the latter case by . When neglecting the orientation of , we may refer to it with . An edge in a directed graph is transitive if the graph contains a directed path of length at least from its source to its target. A directed graph is acyclic if it contains no directed cycle. It is well-known that every directed acyclic graph admits a topological order.
A linear order of a directed acyclic graph is a topological order of its vertices. For any two vertices and of , we write if and only if belongs to and precedes in the topological order. We say that two independent edges and with , and cross in if and only if holds. A page is a set of pairwise non-crossing edges with respect to . A -page book embedding of consists of a linear order of its vertices and a partition of its edges into pages with respect to . The page number of is the minimum value of such that admits a -page book embedding.
Our focus is on directed acyclic maximal outerplanar graphs, which admit planar drawings with all vertices being incident to the outer face, and no edge can be added such that the resulting graph is still directed acyclic outerplanar. Such a graph is monotone if it can be defined through the following construction sequence: (i) A single edge is a monotone directed acyclic outerplanar graph; we refer to this first edge in the construction sequence as base edge. (ii) If is a monotone directed acyclic outerplanar graph and is an edge of incident to its outer face, then the graph obtained from by adding a new vertex and either the edges and or the edges and is again a monotone directed acyclic outerplanar graph; in both cases, we say that is stacked on the edge . By the next lemma, we assume that the base edge of is incident to the outer face.
Lemma 4.
Every directed acyclic monotone outerplanar graph with at least three vertices contains exactly two base edges that are incident to its outer face.
Proof.
If has exactly three vertices, then its two non-transitive edges are base edges; see Figures 2(a) and 2(b). So, assume that has more than three vertices. Let be the last vertex in the construction sequence of and let be the edge on which is stacked. It follows that is incident to exactly two edges, namely, either the edges and , or the edges and . We consider the case in which the edges and belong to ; the case in which the edges and belong to is symmetric. Let be the graph obtained by removing from . Since was the last vertex in the construction sequence of , it follows that is a directed acyclic monotone outerplanar graph. Hence, by induction, we may assume that contains exactly two base edges that are incident to its outer face.
We distinguish two cases depending on whether is a base edge of or not. Note that, by definition of , edge is on the outer face of . Assume first that is indeed a base edge of . Since is a base edge of , it follows that the edge is a base edge of ; see Figure 2(c). Since is the last vertex in the construction sequence of , since the edge is an inner edge of and since has exactly two base edges on its outer face, it follows that has exactly two base edges on its outer face. To complete the proof, assume that is not a base edge of . In this case, we prove that neither nor is a base of , proving that has exactly two base edges on its outer face, namely, the two of . Since the edge cannot be a base edge of , assume for a contradiction that is a base edge of ; see Figure 2(d). It follows that there is a construction sequence that starting from yields . Neglecting , this sequence implies a construction sequence for , contradicting the fact that has exactly two base edges on its outer face.
Remark 5.
Note that there is a technical difference in the definition of directed acyclic monotone outerplanar graphs used in [15] and [17]. The latter requires the base edge to be on the outer face, while the former relaxes this requirement. In view of Lemma 4, the two definitions become equivalent. A notable implication of this equivalence is that substituting the twist number of 4 into the expression given by Davies [8] yields an upper bound of 64 for the page number of directed acyclic monotone outerplanar graphs (rather than 128, as used in [15]).
3 Embedding directed acyclic monotone outerplanar graphs in 5 pages
In the following, we describe how to embed a directed acyclic monotone outerplanar graph into five pages. Our approach consists of three main steps.
-
1.
We define a canonical construction sequence for that yields a rooted spanning tree of the underlying undirected graph of (see Section 3.1).
-
2.
Based on these, we specify the linear order of the vertices of , such that the edges of do not cross in (see Section 3.2).
-
3.
The remaining edges of , namely, those that do not belong to , can be 4-colored, such that the edges of the same color do not cross in (see Section 3.3).
It should be emphasized that is rooted, but the orientation of the tree edges in does not reflect this hierarchy. Since is rooted and spanning, we refer to a subtree of rooted at a vertex by and to the set of non-tree edges by .
3.1 A canonical construction sequence
Even though has exactly two base edges incident to its outer face, there may exist several construction sequences that result in , even if the starting base edge is fixed. We next describe a so-called canonical construction sequence that is uniquely defined if we fix the starting base edge to one of the two base edges incident to the outer face of . To do so, we consider the weak dual of , which has a face-vertex for each bounded face of and an edge between two vertices and if and only if the corresponding faces and of are adjacent. is a tree, which we assume to be rooted at the bounded face of having the fixed base edge of on its boundary. Since the fixed base edge is incident to the outer face of , this face is uniquely defined. Further, since is maximal, is binary.
Starting from the root of , we perform a specific DFS traversal of the vertices of . When visiting a new vertex of , we assume that the edge of corresponding to the edge connecting with its parent in has been assigned to or to . At the root of , we assume that this edge is the fixed base edge which is assigned to , such that its source is the parent of its target in . The task is to assign the other two edges of to and , and guide the traversal of to each of the (at most) two subtrees of rooted at .
Let be the third vertex of . Assume first that the edge belongs to ; see Figures 3(a) and 3(b). Since belongs to , it follows that either is the parent of or is the parent of in ; recall that the edge orientations do not reflect the hierarchy in . Consider first the case, in which contains the edges and . If is the parent of in , then we assign the edge to and the edge to . We further assume that is a child of in . On the other hand, if is the parent of in , then we assign the edge to and the edge to . We further assume that is a child of in . Consider now the case, in which contains the edges and . If is the parent of in , then we assign the edge to and the edge to . We further assume that is a child of in . On the other hand, if is the parent of in , then we assign the edge to and the edge to . We further assume that is a child of in . This completes the case where edge belongs to . Observe that in all four cases, we assigned to the edges towards the vertex that is the parent among and .
Assume now that the edge belongs to ; see Figures 3(c) and 3(d). Consider first the case, in which contains the edges and . In this case, we assign to and to . We further assume that is a child of in . Otherwise, contains the edges and and we assign to and to . We further assume that is a child of in . Observe that in both cases we assigned to the transitive edge of face .
So far, we have assigned the edges of that are different from to and . We next describe how the traversal of proceeds. Let and be the (at most) two children of in , such that and share the edge assigned to , while and share the edge assigned to in . We recursively traverse the subtree of rooted at starting from and then recursively traverse the subtree of rooted at starting from .
The procedure described above uniquely defines a canonical construction sequence of , where is the fixed starting base edge of . For , let be the subgraph of induced by . It follows that vertex is connected with exactly two (neighboring) vertices in , while the edges realizing these connections have been assigned to and . If the edge between the neighbors of in belongs to , then the non-tree edge incident to is transitive. The fact that is a spanning tree of follows by construction: each time that we define the next vertex in the canonical construction sequence exactly one of the two edges connecting with its two neighbors (incoming or outgoing) in is assigned to ; that is, is added as a leaf to . We summarize these observations below and then present two properties of the canonical construction sequence.
-
T.1
The edges of induce a spanning tree of
-
T.2
The root of is the source of the base edge of .
-
T.3
Vertex is a leaf in the restriction of to .
Property 1.
Assume that the edge between the neighbors and of in belongs to , such that is the parent of in . Then holds, that is, and are consecutive in the canonical construction sequence.
Proof.
We argue along the traversal of the dual . Let be the face of bounded by , and . Consider the parent vertex of in . Then, faces and share the edge between and . Since this edge belongs to , it follows that once the visit of is completed, the traversal of will immediately continue to . In other words, after face the third vertex of face is appended to the canonical construction sequence. This implies that and are consecutive in the canonical construction sequence. Hence, .
Property 2.
Let be a non-tree edge of , that is, . Then, the endpoints of belong to disjoint subtrees, that is, holds.
Proof.
We argue by induction on the length of the canonical construction sequence. The property holds in (i.e., for the base case ), since . Assume that for all non-tree edges of with the property holds. We prove that the property holds in . Consider vertex . We distinguish two cases based on whether the edge between the neighbors of in belongs to or to . In the former case, let and be the neighbors of in , such that is the parent of in . Then, the edge between and is the non-tree edge incident to . This edge connects to two siblings of in . Therefore, the endpoints of this edge belong to disjoint subtrees, namely, . Consider now the case where the edge between the neighbors of in belongs to . Let and be the neighbors of in and assume that becomes a child of in . The edge between and is the non-tree edge incident to in . By induction hypothesis the endpoints of the edge between and are in disjoint subtrees. Since , the same holds for the endpoints of the edge between and , i.e., .
3.2 Computing the linear order
We next describe the linear order of . A key ingredient in our approach is the so-called consecutive subtree property, which requires for every vertex in the vertices in the subtree to appear consecutively in . We denote the corresponding interval of induced by by . Note that by definition is part of . To guarantee this property, for , we assume that we have recursively computed a linear order of , such that:
-
L.1
is a topological order of
-
L.2
obeys the consecutive subtree property in
-
L.3
Let be the parent of two distinct children and in . Then, the following holds:
In the base case , consists of the base edge , which is part of ; thus L.1–L.3 are trivially satisfied. For , we show how to insert into to derive a linear order of that satisfies L.1 - L.3; see Figure 4(a). Assume that is a child of in the restriction of in . We consider two cases based on the orientation of the edge between and ; recall that the edge orientations do not reflect the hierarchy in . Assume first that this edge is the edge . We insert directly after the last vertex of . Otherwise, we insert directly before the first vertex of . This ensures that L.2 holds for , since is consecutive. For L.3, we observe that for every child of in , it holds that , thereby satisfying the invariant. It remains to show that is indeed a topological order of . Let be the neighbor of in that is different from . We consider two cases based on whether the edge between and belongs to or to . In the former case, assume w.l.o.g. that the edges from to and are incoming to ; the case, where these edges are outgoing, is symmetric. Since we inserted after and , we have and as desired. Assume that the edge between and belongs to . Since the edge between and belongs to , the edge between and belongs to and thus is transitive in the face formed by , and . Again, assume w.l.o.g. that the edges from to and are incoming to ; the case, where these edges are outgoing, is symmetric. In this case, it follows that holds. By transitivity of , we get that exists. Hence, holds and L.1–L.3 are satisfied by .
We next present three key properties of the linear order of . For any two vertices and of , we write to denote the lowest common ancestor of and in .
Property 3.
For every two vertices and of , if and only if .
Proof.
It follows from the fact that obeys the consecutive subtree property (L.2).
Property 4.
Let and be two edges that cross in . Then, both of the following two conditions hold: (i) or is in and (ii) or is in .
Proof.
W.l.o.g. assume that holds. Since belongs to and since , by L.2 we obtain . Symmetrically, . Then, the property follows from Property 3. Notice that Property 4 holds for all edges, including edges of . However, for a pair of two independent tree edges only one of the two conditions can be satisfied, which directly implies the following property guaranteeing that all edges of fit into a single page as desired.
Property 5.
No two edges of cross in .
3.3 Assigning edges to pages
The overall approach for the edge assignment is as follows. We dedicate a single page for edges belonging to the tree (by Property 5). The algorithm for coloring the non-tree edges is notably simple (though the proof of correctness will be tedious). More precisely, the non-tree edge incident to the next vertex () in the canonical construction sequence is colored either (i) with the color that is not used by its two neighbors in , if is stacked on a tree edge, or (ii) with the color of the non-tree edge it is stacked on, otherwise. In the following subsections, we will prove that this coloring yields a valid -page book embedding.
3.3.1 Partitioning the non-tree edges to groups
For the non-tree edges in , we will first partition them into groups. These groups will then be 4-colored such that groups of the same color can be assigned to the same page, i.e., no two edges of the same color cross in . In order to form the desired partition of , we need a few more notions. We start with the notion of sibling edge. An edge that belongs to with and having the same parent in is called a sibling edge with parent . Sibling edges satisfy the following property in the canonical construction sequence.
Property 6.
If is a sibling edge with parent , then or holds.
Proof.
Follows directly from Property 1 of the canonical construction sequence. Using Property 6, we next prove that no two sibling edges with the same parent cross in .
Property 7.
If and are two sibling edges with common parent , then they do not cross in .
Proof.
Assume to the contrary that they cross; see Figure 4(b). We distinguish cases based on the relative order of the endpoints of these edges with respect to the common parent . Let us first consider the case where the endpoints of at least one of the two edges either both precede or follow . W.l.o.g. assume follows both and in . By L.3, we have . Since both and are children of and , neither of them can be between and in . Therefore, and cannot cross. We conclude that in order for and to cross, the endpoints of each of these two edges have to be on different sides of in , that is, is between the endpoints of each of these edges in . Since and cross, they are independent and therefore . Assume w.l.o.g. that . In the following, we focus on the case where ; the case in which is symmetric. From L.3 we get that for every child of with , we have . For and to cross either or has to be between and in contradicting that .
So far we have shown that tree edges can fit together in a single page and that the same holds for sibling edges having the same parent. Two questions that arise at this point are how to handle sibling edges with different parents and non-tree edges that are not sibling edges. For the latter, the idea is to assign these edges to groups such that each group has a designated sibling edge as representative. As we will see, a crossing between two non-tree edges of different groups can be reduced to a crossing between the groups’ representatives.
Let us formally introduced the concept of groups. As already mentioned, each group of non-tree edges has exactly one representative, which is a sibling edge. In other words, groups and sibling edges are in a one-to-one correspondence. Further, a sibling edge belongs to the group it represents. By Property 6, we denote with the group that is represented by the sibling edge . It follows that . Note that the index stems from the rank of and in the canonical construction sequence . Since not every pair of consecutive vertices in yields a sibling edge, it follows that there does not exist a group for every integer in . We further require that the groups form a partition of .
We now describe how to obtain such a partition of . We do so by using the canonical construction sequence and by imposing further invariant properties that will help us later to show that no more than four colors are needed in order to color the groups that we will form. With this in mind, we also need to ensure that non-tree edges of the same group can always be assigned to the same page. We capture these properties with the following invariants.
Assume that all non-tree edges of with have been partitioned to groups , such that the following hold for each non-empty group with :
-
N.1
has exactly one representative sibling edge of .
-
N.2
For every edge of that belongs to group one of the following holds:
-
(a)
If is the representative of , then there is a directed path in from to and a directed path in from to .
-
(b)
If is the representative of , then there is a directed path in from to and a directed path in from to .
Each vertex of these directed paths is incident to at least one edge of .
-
(a)
-
N.3
Each non-empty group is also associated with an outermost edge , which is the solely edge on the outer face of among the edges of and covers all edges of in , that is, for each , we have .
We prove that the aforementioned invariants hold also for the non-tree edges of using the following approach. Consider vertex . We distinguish cases based on whether the edge between the neighbors of in belongs to or to .
We first consider the case in which the edge between the neighbors of in belongs to . Let and be these neighbors, such that is the parent of in . In this case, vertex is a child of in , that is, the edge between and belongs to , while the edge between and belongs to . In particular, the edge between and is a sibling edge. We assign it to a new group and we make it both the representative and the outermost of this group. In other words, in this case we are creating a new group that solely consists of a single sibling edge. N.1–N.3 are satisfied because the edge between and cannot be associated with any of the groups with , belongs to the outer face of and trivially covers all edges of , as there are no other edges in this group.
Consider now the case where the edge between the neighbors of in belongs to . Let and be these neighbors. To simplify the presentation, we assume that the edge between and is oriented from to ; the other case is symmetric. Since belongs to , by N.1 the edge has been assigned to a group, say with , whose representative edge is by N.2. Assume that the edges connecting with and in are outgoing from ; the case in which the edges connecting with and in are incoming to is symmetric. Under this assumption, the edge is the non-tree edge incident to in . We proceed by assigning this edge to . Regarding N.1 there is nothing to be proven, as is an existing group. Since is the representative of , we know that by N.2 applied on that there exist a directed path in from to and a directed path in from to . Since has an outgoing edge to , it follows that there is a directed path from to , as well, guaranteed that N.2 is satisfied from . To prove that N.3 is satisfied in , we first observe that is the outermost edge of , since it is the one incident to the outer face of among the edges of by N.2. As a result, it covers all edges of belonging in . In , the edge becomes that outermost edge of , as it is the solely edge of incident to the outer face of . Furthermore, covers all edges of belonging in , since appear right before in . This guarantees that N.3 is satisfied in .
3.3.2 Properties of the formed groups
Having proved that N.1–N.3 hold for the non-tree edges of , and thus by induction of , we proceed to investigate properties of the groups that are formed with this approach.
Property 8.
No two edges assigned to the same group cross in .
Proof.
Assume that no two (non-tree) edges of the same group cross in for the subgraph of . By Invariant N.3, it follows that the non-tree edge incident to in covers all edges of the same group in , as it becomes the outermost of this group. This implies that no two edges of the same group cross in for the subgraph of . This completes the proof, since in the property trivially holds.
Property 9.
Let and be two distinct groups with group parents and , respectively, such that neither is an endpoint of an edge in nor is an endpoint of an edge in . If or if the representative sibling edges of and are independent, then no two edges in and cross in .
Proof.
Let and be two edges of and , respectively. Let also and be the representative sibling edges of and , respectively. We assume that the former edge is oriented from to , while the latter from to ; the remaining cases are handled symmetrically. It follows by N.2 that , , and . Since and are the group parents of and , these relationships imply that and . Assume to the contrary that and cross in . Consider first the case where the two subtrees and are vertex-disjoint. L.2 implies that both and either precede or follow both and in . This implies that and do not cross in ; a contradiction. Hence, and are not vertex-disjoint.
Assume first that and share the same root, that is, ; see Figure 6(a). It follows by the assumptions of the lemma that the representative sibling edges and of and are independent, implying that the subtrees , , and are vertex-disjoint. By N.2, we know that the vertices of each of these four subtrees are consecutive in . Since and cross in , it follows that either or . W.l.o.g. consider the former case; the latter follows by the same argument. Since , , and and since the vertices of each of these four subtrees are consecutive in , it follows that , that is, the representative edges of and cross in ; a contradiction to Property 7.
Hence, we deduce that . Since and are not vertex-disjoint and since , it follows that either is a proper subtree of or vice versa. Assume the former, that is, ; see Figure 6(b). Since the vertices of appear consecutively in , it follows that in order for and to cross in , one endpoint of , say w.l.o.g. , has to be contained in . Then, by N.2, there exists a path between and in , such that with the exception of all vertices on this path are incident to an edge of . Since belongs also to , this path necessarily contains vertex , which is a contradiction to the fact that is not an endpoint of an edge in .
3.3.3 The groups can be 4-colored
We next color the groups with four colors, such that edges in groups with the same color do not cross in (recall Property 9), thus completing the proof of the upper bound of Theorem 2.
Property 10.
There exists a -coloring of the groups that contain the non-tree edges of , such that no two edges assigned to two groups of the same color cross in .
Proof.
Our proof is by induction on the length of canonical construction sequence. Assume that we have computed a -coloring of the non-tree edges of satisfying the next invariants:
-
C.1
Edges of the same group in are of the same color.
-
C.2
Each vertex in is incident to at most two edges belonging to groups of different colors, that is, the non-tree edges incident to it are either single-colored or bicolored.
-
C.3
For every tree edge on the outer face of , with being a child of , all non-tree edges incident to belong to the same group, that is, they are single-colored.
-
C.4
If and are two distinct groups with group parents and , such that either is an endpoint of an edge in or is an endpoint of an edge in , then and are of different colors.
-
C.5
If and are two distinct groups with common group parent , such that their representative sibling edges and share an endpoint, then and are of different colors.
Clearly, for all invariants are satisfied since . So, we assume that and we will prove that we can appropriately color the edges incident to in , such that C.1–C.5 are satisfied by for the non-tree edges in . We distinguish cases based on whether the edge between the neighbors of in belongs to or to , that is, is stacked on a tree or a non-tree edge of , respectively.
Stacking on a non-tree edge.
Assume first that the edge, say , between the neighbors and of in belongs to some group ; see Figure 7(a). By C.1, we can assume that the color assigned to the edges of is w.l.o.g. . To simplify the presentation, we assume that the two edges incident to in are outgoing from , that is, and belong to ; the case of these edges being incoming is symmetric by exchanging the roles of and . Under this assumption, the non-tree edge incident to in is the edge ; the edge is the tree edge incident to in . Since belongs to , we color it with color , so as to guarantee C.1. Since the set of colors that is used for the edges incident to and does not change and since there is only one non-tree edge incident to in (namely, the edge ), it follows that C.2 is guaranteed in . Regarding C.3, we observe that the tree edge incident to in is an edge on the outer face of . Since for the tree edge is the child of in and since there is only one non-tree edge incident to in (namely, the edge ), it follows that C.3 is maintained in . Since is a leaf in the restriction of to , C.4 is satisfied by the inductive hypothesis. By the same argument and the fact that no new sibling edges are introduced in , C.5 holds in . This completes the case where the edge between the neighbors of in belongs .
Stacking on a tree edge.
We proceed to the more tedious case, where the edge between the neighbors of in belongs to ; see Figure 7(b). Let and be the endpoints of this edge, such that is the parent of in . By Property 1, holds. Also, by T.3, it follows that is a leaf in the restriction of to . In this case, the edge is the representative of the new group in solely consisting of , while belongs to . The former implies that regardless of the color that we will assign to , C.1 holds in . We further observe that since and are siblings and is a leaf in the restriction of to , it remains a leaf also in the restriction of to . In particular, this implies that is not the group parent of some group in .
To guarantee C.4 and C.5, we have to choose the color for the representative sibling edge in appropriately. In particular, we have to ensure that the color chosen is different from the colors incident to and in . By C.2, the non-tree edges incident to in have at most two colors, say and . Since is incident to the outer face of and since is a child of in , by Item C.3 the non-tree edges incident to in belong to the same group; let be the color assigned to this group. The color that we assign to is one not belonging in , say .
Invariant C.2 is trivially satisfied at because of its degree in . Since by C.3 the non-tree edges incident to in belong to a single group, C.2 is satisfied for in . The same holds for by the inductive hypothesis, since the edge belongs to . Hence, C.2 is maintained . Since the edge belongs to the outer face of and since has only one non-tree edge incident to it in (i.e., the edge ), C.3 is maintained in . Note that the edge is not on the outer face of .
For C.4, consider a group with and group parent and assume that either is an endpoint of an edge in or is an endpoint of an edge in . For the latter case, note that since consists only of its representative sibling edge , the only possible candidate for is . However, is a leaf in and therefore not a parent of a group. For the former case, that is, there is a non-tree edge incident to (the parent of ) having the same color as , we argue with our definition of that this is not the case. For C.5 it is sufficient to consider a possible sibling edge sharing an endpoint with . The only possible candidate in would be a sibling edge . However, we ensure that is different from the color of any other non-tree edge incident to which is sufficient to maintain C.5 in . This completes the proof that C.1–C.5 are maintained in .
Putting everything together.
To prove that no two non-tree edges assigned to two groups of the same color cross in , we combine all properties that we have obtained so far. Let and be two such edges and assume that and belong to and and that and are the group parents of and , respectively. By C.1 and Property 8, it follows that if , then and do not cross in , as desired. Hence, we may assume that and are two distinct groups. If is an endpoint of an edge in or is an endpoint of an edge in , then and are of different colors by C.4; a contradiction to the fact that and belong to groups of the same color. It follows that neither is an endpoint of an edge in nor is an endpoint of an edge in . In this case, if , then by Property 9, and do not cross in . Therefore, we may assume that and share the same parent, that is, . If the representative sibling edges of and share an endpoint, then by C.5, it follows that and are of different colors; a contradiction. Hence, the representative sibling edges of and are independent. Then, again Property 9 applies which states that and do not cross in . This concludes the proof of the property, which in turn coupled with Property 5 concludes the proof of the upper bound of Theorem 2.
3.4 Time complexity
Given an directed acyclic graph, we prove in the following lemma that we can determine whether it is monotone outerplanar and compute a -page book embedding of it, if so, in linear time.
Lemma 6.
Given a directed acyclic graph, there is a linear time algorithm to determine whether it is monotone outerplanar and to compute a -page book embedding of it, in the positive case.
Proof.
Let be a directed acyclic -vertex graph. We first check in time whether the underlying undirected graph of is maximal outerplanar. If so, we assume a maximal outerplanar embedding and proceed to check whether is monotone. In view of Lemma 4, this can be trivially done in time, since given an edge on the boundary of one can check whether is monotone with being a base edge in time by performing a BFS traversal of the weak dual of starting from the bounded face having on its boundary.
For an implementation, let be a face that corresponds to a leaf of the weak dual of . If is the solely bounded face in , then, since is directed acyclic, it follows that is monotone and we can also report the two base edges on its boundary (as observed in Lemma 4). Otherwise, let be the bounded face neighboring in , which is uniquely defined, since is a leaf in . Denote by the edge shared by and in , by the third vertex of (which is of degree , since is a leaf in ), and by the subgraph of obtained by the removal of from . There exist two cases for to be monotone; (i) either one of the two edges incident to is a base edge of , or (ii) none of these two edges is a base edge of . In Case (i), the edges incident to are the edges and ; further, the edge must be a base edge of . In Case (ii), the edges incident to are either the edges and , or the edges and ; further, the edge cannot be a base edge of . Now, we recursively check whether is monotone. In the negative case, we report that is not monotone, as well. In the positive case, we may assume that the recursion also reports the two base edges of . With this information, we can check in constant time, whether is monotone by just observing the orientation of the edges incident to depending on whether the edge is a base edge of or not. Since each such check takes constant time and since we perform at most such checks (that is, the number of bounded faces of ), it follows that in time we can check whether is monotone.
If meets the requirement of being monotone outerplanar and with a base edge on the outer face given, we can easily construct the canonical construction sequence and the spanning tree of in time by a DFS traversal of the weak dual of as described in Section 3.1. For the linear order , one may use the canonical construction sequence and maintain for every vertex two ordered lists of its children in . The first list contains the children that have to precede in , while the second contains the ones that follow in as described in Section 3.2. Once these lists have been obtained, a simple in-order traversal of yields . Therefore, can also be computed in time. As a final step, the coloring of the non-tree edges (that is, their page assignment) can be trivially done in time by the simple approach described in the introduction of Section 3.3. This concludes the description of the linear-time implementation.
4 Lower bounds
In this section, we first demonstrate a relatively small directed acyclic monotone outerplanar graph and prove combinatorially that it does not admit a book embedding with two pages.
Theorem 7.
There exist directed acyclic monotone outerplanar graphs that do not admit book embeddings in two pages.
Proof.
The graph given in Figure 8(a) consists of nine vertices and it is indeed a directed acyclic monotone outerplanar graph, whose base edge is the edge . Assume for a contradiction that there exists a book embedding of it with two pages and . Since the graph contains the directed path , these vertices appear in this order in . Furthermore, w.l.o.g., we may assume that the edges are assigned to page , if is even, and to page , if is odd (see the blue and red edges in Figure 8(b)).
Due to the edges and , vertices and have to appear after and before vertex in , respectively. In particular, vertex cannot appear between and in , as otherwise the edge crosses and , which are assigned to and , respectively. Symmetrically, vertex cannot appear between and . This implies that and cross in , which, in turn, implies that they have to be assigned to different pages. If is assigned to , then it crosses , which is also in ; a contradiction. If is assigned to , then it crosses , which is also in ; a contradiction. It follows that there is no -page book embedding for the graph, completing the proof.
Remark 8.
We remark that there exist directed acyclic monotone outerplanar graphs that do not admit book embeddings with three pages; for an example refer to Figure 9. This statement is the outcome of the application of a well-known approach [3], which using SAT solving allows to test whether a given graph can be embedded in a book with a certain number of pages. Note that we are not aware of a directed acyclic monotone outerplanar graph that cannot be embedded in 4 pages. This motivated the title of our paper.
5 Open problems
The most natural open question raised from our work is to close the gap of Theorem 2. Towards another improvement on the page number of general directed acyclic outerplanar graphs, one needs either to introduce improvements for each of the remaining steps in the approach by Jungeblut, Merker and Ueckerdt [15] that supports Theorem 1 or to come up with a new, novel approach. We deem both problems intriguing.
References
- [1] Michael A. Bekos, Martin Gronemann, and Chrysanthi N. Raftopoulou. Two-page book embeddings of 4-planar graphs. Algorithmica, 75(1):158–185, 2016. doi:10.1007/s00453-015-0016-8.
- [2] Michael A. Bekos, Michael Kaufmann, Fabian Klute, Sergey Pupyrev, Chrysanthi N. Raftopoulou, and Torsten Ueckerdt. Four pages are indeed necessary for planar graphs. J. Comput. Geom., 11(1):332–353, 2020. doi:10.20382/JOCG.V11I1A12.
- [3] Michael A. Bekos, Michael Kaufmann, and Christian Zielke. The book embedding problem from a SAT-solving perspective. In Emilio Di Giacomo and Anna Lubiw, editors, Graph Drawing and Network Visualization, volume 9411 of LNCS, pages 125–138. Springer, 2015. doi:10.1007/978-3-319-27261-0_11.
- [4] Frank Bernhart and Paul C. Kainen. The book thickness of a graph. J. Comb. Theory, Ser. B, 27(3):320–331, 1979. doi:10.1016/0095-8956(79)90021-2.
- [5] Carla Binucci, Giordano Da Lozzo, Emilio Di Giacomo, Walter Didimo, Tamara Mchedlidze, and Maurizio Patrignani. Upward book embeddability of st-graphs: Complexity and algorithms. Algorithmica, 85(12):3521–3571, 2023. doi:10.1007/S00453-023-01142-Y.
- [6] Jonathan F. Buss and Peter W. Shor. On the pagenumber of planar graphs. In Richard A. DeMillo, editor, ACM Symposium on Theory of Computing, pages 98–100. ACM, 1984. doi:10.1145/800057.808670.
- [7] Fan R. K. Chung, Frank Thomson Leighton, and Arnold L. Rosenberg. Embedding graphs in books: A layout problem with applications to VLSI design. SIAM Journal on Algebraic and Discrete Methods, 8(1):33–58, 1987. arXiv:http://dl.acm.org/citation.cfm?id=21936.25439.
- [8] James Davies. Improved bounds for colouring circle graphs. Proceedings of the American Mathematical Society, 2022. doi:10.1090/proc/16044.
- [9] Emilio Di Giacomo, Walter Didimo, Giuseppe Liotta, and Stephen K. Wismath. Book embeddability of series-parallel digraphs. Algorithmica, 45(4):531–547, 2006. doi:10.1007/S00453-005-1185-7.
- [10] Vida Dujmović and David R. Wood. On linear layouts of graphs. Discrete Mathematics & Theoretical Computer Science, 6(2):339–358, 2004. doi:10.46298/DMTCS.317.
- [11] Hikoe Enomoto, Tomoki Nakamigawa, and Katsuhiro Ota. On the pagenumber of complete bipartite graphs. J. Comb. Theory, Ser. B, 71(1):111–120, 1997. doi:10.1006/jctb.1997.1773.
- [12] Lenwood S. Heath. Embedding planar graphs in seven pages. In FOCS, pages 74–83. IEEE Computer Society, 1984. doi:10.1109/SFCS.1984.715903.
- [13] Lenwood S. Heath, Sriram V. Pemmaraju, and Ann N. Trenk. Stack and queue layouts of directed acyclic graphs: Part I. SIAM J. Comput., 28(4):1510–1539, 1999. doi:10.1137/S0097539795280287.
- [14] Paul Jungeblut, Laura Merker, and Torsten Ueckerdt. A sublinear bound on the page number of upward planar graphs. In Joseph (Seffi) Naor and Niv Buchbinder, editors, ACM-SIAM SODA, pages 963–978. SIAM, 2022. doi:10.1137/1.9781611977073.42.
- [15] Paul Jungeblut, Laura Merker, and Torsten Ueckerdt. Directed acyclic outerplanar graphs have constant stack number. In FOCS, pages 1937–1952. IEEE, 2023. doi:10.1109/FOCS57990.2023.00118.
- [16] Tamara Mchedlidze and Antonios Symvonis. Crossing-free acyclic hamiltonian path completion for planar st-digraphs. In Yingfei Dong, Ding-Zhu Du, and Oscar H. Ibarra, editors, ISAAC, volume 5878 of LNCS, pages 882–891. Springer, 2009. doi:10.1007/978-3-642-10631-6_89.
- [17] Martin Nöllenburg and Sergey Pupyrev. On families of planar dags with constant stack number. In Michael A. Bekos and Markus Chimani, editors, Graph Drawing, volume 14465 of LNCS, pages 135–151. Springer, 2023. doi:10.1007/978-3-031-49272-3_10.
- [18] Richard Nowakowski and Andrew Parker. Ordered sets, pagenumbers and planarity. Order, 6:209–218, 1989. doi:10.1007/BF00563521.
- [19] T. Ollmann. On the book thicknesses of various graphs. In F. Hoffman, R.B. Levow, and R.S.D. Thomas, editors, Southeastern Conference on Combinatorics, Graph Theory and Computing, volume VIII of Congressus Numerantium, page 459, 1973.
- [20] Arnold L. Rosenberg. The diogenes approach to testable fault-tolerant arrays of processors. IEEE Trans. Computers, 32(10):902–910, 1983. doi:10.1109/TC.1983.1676134.
- [21] Arnold L. Rosenberg. Book embeddings and wafer-scale integration. In Southeastern Conference on Combinatorics, Graph Theory and Computing, volume 54 of Congressus Numerantium, pages 217–224, 1986.
- [22] Mihalis Yannakakis. Four pages are necessary and sufficient for planar graphs (extended abstract). In Juris Hartmanis, editor, ACM Symposium on Theory of Computing, pages 104–108. ACM, 1986. doi:10.1145/12130.12141.
- [23] Mihalis Yannakakis. Planar graphs that need four pages. J. Comb. Theory, Ser. B, 145:241–263, 2020. doi:10.1016/j.jctb.2020.05.008.
