Abstract 1 Introduction 2 Preliminaries 3 Characterization for Upward Embeddings 4 Computational Complexity with Variable Embedding 5 Test for Graphs with a Fixed Planar Embedding 6 Test for Biconnected Partitioned Directed Partial 𝟐-Trees 7 Conclusions References

Upward Book Embeddings of Partitioned Digraphs

Giordano Da Lozzo ORCID ICITA Department, Roma Tre University, Italy    Fabrizio Frati ORCID ICITA Department, Roma Tre University, Italy    Ignaz Rutter ORCID Faculty of Computer Science and Mathematics, University of Passau, Germany
Abstract

In 1999, Heath, Pemmaraju, and Trenk [SIAM J. Comput. 28(4), 1999] extended the classic notion of book embeddings to digraphs, introducing the concept of upward book embeddings, in which the vertices must appear along the spine in a topological order and the edges are partitioned into pages, so that no two edges in the same page cross. For a partitioned digraph G=(V,i=1kEi), that is, a digraph whose edge set is partitioned into k subsets, an upward book embedding is required to assign edges to pages as prescribed by the given partition. In a companion paper, Heath and Pemmaraju [SIAM J. Comput. 28(5), 1999] proved that the problem of testing the existence of an upward book embedding of a partitioned digraph is linear-time solvable for k=1 and recently Akitaya, Demaine, Hesterberg, and Liu [GD, 2017] have shown the problem 𝖭𝖯-complete for k3. In this paper, we study upward book embeddings of partitioned digraphs and focus on the unsolved case k=2. Our first main result is a novel characterization of the upward embeddings that support an upward book embedding in two pages. We exploit this characterization in several ways, and obtain a rich picture of the complexity landscape of the problem. First, we show that the problem remains 𝖭𝖯-complete when k=2, thus closing the complexity gap for the problem. Second, we show that, for an n-vertex partitioned digraph with a prescribed planar embedding, the existence of an upward book embedding that respects the given planar embedding can be tested in O(nlog3n) time. Finally, leveraging the SPQ(R)-tree decomposition of biconnected graphs into triconnected components, we present a cubic-time testing algorithm for biconnected directed partial 2-trees.

Keywords and phrases:
upward book embeddings, partitioned digraphs, SPQ-trees, 2-trees
Copyright and License:
[Uncaptioned image] © Giordano Da Lozzo, Fabrizio Frati, and Ignaz Rutter; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Computational geometry
; Mathematics of computing Graph algorithms ; Theory of computation Design and analysis of algorithms
Related Version:
Full Version: https://arxiv.org/abs/2603.17128 [21]
Acknowledgements:
This research was initiated at the Fourth Summer Workshop on Graph Drawing (SWGD 2024). Thanks to the organizers and the participants for an inspiring atmosphere.
Editors:
Hee-Kap Ahn, Michael Hoffmann, and Amir Nayyeri

1 Introduction

(a)
(b)
(c)
Figure 1: (a) A book embedding of the octahedron in 2 pages. (b) An orientation of the octahedron. (c) An upward book embedding of the directed octahedron in (b) in 3 pages, which is optimal.

Book embeddings are a classic and influential topic in combinatorial and algorithmic graph theory. The notion of a book as a topological space was introduced in the late 60s by Persinger [48] and Atneosen [5], and later developed in its current and more popular form by the seminal work of Ollmann [47]. In a book embedding of a graph G=(V,E), all vertices lie along a line – referred to as the spine – while edges are placed into distinct half-planes bounded by the spine, known as the pages of the book. Therefore, constructing such an embedding for G amounts to computing a pair (π,σ), where π:V{1,,|V|} is a linear ordering of the vertices and σ:E{1,,k} is a partition of the edges into k pages so that no two edges in the same page cross according to π, i.e., their end-vertices do not alternate in π; see Fig. 1(a) for an example. The minimum value of k for which this is possible is the book thickness of G (also called stack number or page number).

Research on book embeddings originated from problems in VLSI circuit design [20], and has since found applications in sorting permutations [49, 52], fault-tolerant processing [50], compact graph encodings [40, 46], graph drawing [14, 25, 29, 33], computational origami [1, 45], parallel process scheduling [13], parallel matrix computations [36], and other domains. For a more comprehensive overview of applications, see [28]. The notion of book embedding was extended to digraphs by Heath, Pemmaraju, and Trenk [37] by introducing the natural requirement that in a book embedding (π,σ) of a digraph G the ordering π must be a topological ordering of G; see Figs. 1(b) and 1(c) for an example. Such book embeddings are called upward book embeddings as they are naturally depicted with vertices placed on a vertical line and edges drawn as arcs monotonically increasing in the y-direction in their page.

Next, we provide an overview of the major algorithmic results on book embeddings; in the full version [21], we also discuss combinatorial results. Concerning undirected graphs, already in 1979, Bernhart and Kainen [10] showed that the graphs of book thickness 1 are the outerplanar graphs and that the graphs of book thickness 2 are the sub-Hamiltonian (planar) graphs. Whereas the former are recognizable in linear time [54], recognizing the latter is 𝖭𝖯-complete, even for planar triangulations [55]. Recently, Ganian et al. [31] presented a sub-exponential-time algorithm for testing sub-Hamiltonicity, which is asymptotically tight under ETH. Concerning digraphs, the problem of testing the existence of an upward book embedding in k pages is called Upward Book Embedding. For more than two decades, the only known 𝖭𝖯-completeness result for the problem was the one shown by Heath and Pemmaraju [35] when k=6. Recently, in two subsequent papers, Binucci et al. [16] and Bekos et al. [8, 9] closed the computational gap by showing 𝖭𝖯-completeness for k3 and k=2, respectively. These results, together with the linear-time algorithm for k=1 [35], completely characterize the complexity of the Upward Book Embedding problem with respect to k. For k=2, efficient algorithms have been devised for special classes [15, 42, 43].

Partitioned book embeddings.

Due to the 𝖭𝖯-hardness of testing the existence of a book embedding (π,σ), it is natural to study the complexity of the problem if π or σ is given as part of the input. If the vertex ordering π is fixed, the problem becomes the k-coloring problem for circle graphs. The problem is clearly linear-time solvable for k2. Unger [53] showed that it is 𝖭𝖯-complete for k4. The complexity of the case k=3 is still open [6, 7], although a quasi-polynomial-time algorithm for k=3 has recently been proposed [51]. Conversely, if the partition σ into k pages is given, for undirected graphs, there are polynomial-time algorithms for k=1 [35] and k=2 [4, 38, 39], whereas the problem is 𝖭𝖯-complete for k3 [3]. For directed graphs, in which the vertex ordering has to be a topological ordering, the problem is called Partitioned Upward Book Embedding. For k=1 it coincides with the “unpartitioned” case, solved in [35, 37]. For k>1, it was first studied by Akitaya et al. [1]. They connected the problem to applications in map folding [45] and attributed it to Edmonds, who, in 1997, posed the question specifically for k=4 when the edges assigned to each page form a matching. They showed 𝖭𝖯-completeness for k=3 and for k4 even if the edges in each page form a matching. For k=2, they gave a linear-time algorithm for the special case when the edges in each page form a matching. However, they left the complexity of the general case for k=2 open. See Table 1 for an overview of the complexity landscape.

Table 1: Complexity of the upward book embedding problem. Results marked are trivial.
vertex order π
fixed variable
page assignment σ fixed O(n+m) time 1 page: O(n) time [35]
2 pages: 𝖭𝖯-complete (Theorem 4)
3 pages: 𝖭𝖯-complete [1]
variable 2 pages: O(n) time
3 pages: OPEN [7]
4 pages: 𝖭𝖯-complete [53]
2 pages: 𝖭𝖯-complete [9]
3 pages: 𝖭𝖯-complete [16]

Our Contributions.

We study the Partitioned Upward Book Embedding problem in the unsolved case k=2. As every upward book embedding corresponds to an upward planar drawing, i.e., the edges are drawn as non-crossing y-monotone curves, we make use of combinatorial descriptions of such drawings, called upward embeddings [11]. Our first main result is a characterization of the upward embeddings that support an upward book embedding in two pages. We exploit this characterization in several ways and obtain a rich picture of the complexity landscape of the problem. First, we show that the problem remains 𝖭𝖯-complete when k=2, thus closing the complexity gap and exhibiting a sharp contrast with the undirected case, where the problem is linear-time solvable [39]. Our proof also implies that the problem is W[1]-hard with respect to the treewidth. Second, we show that, when the planar embedding is prescribed, the problem can be solved in O(nlog3n) time. Our algorithm is inspired by the network-flow approach of Bertolazzi et al. [11] and requires the use of several non-trivial ingredients arising from our characterization. Finally, in the variable-embedding setting, we present a cubic-time algorithm for biconnected directed partial 2-trees. Our algorithm exploits a compact representation, called descriptor pair, of the features of upward embeddings of subgraphs that admit an extension to an upward embedding, satisfying our characterization, of the entire graph. This allows us to compute, for the subgraph associated with each node of the SPQ(R)-tree, its set of realizable descriptor pairs by dynamic programming. While we focus on the decision problem, all our algorithms are constructive and can be modified to compute an upward book embedding, if one exists. A full version of the paper with complete proofs can be found in [21].

2 Preliminaries

For basic definitions on graphs and their drawings see [22, 27] or the full version of the paper.

Two planar drawings of a connected digraph are topologically equivalent if they have the same clockwise order of the edges around each vertex and the same clockwise order of the edges along the boundary of the outer face. A planar embedding is a class of topologically equivalent planar drawings. A plane digraph is a planar digraph together with a planar embedding. A planar embedding of a digraph is bimodal if, for every vertex v, the edges that have their tail at v are consecutive in the clockwise order of the edges incident to v.

Upward planarity.

A switch in a digraph G is a source or a sink. A drawing of G is upward if every edge is represented by a Jordan arc that is strictly increasing in the y-direction from its tail to its head. If G admits an upward planar drawing, it is an upward planar digraph. Let be a bimodal planar embedding of G. An angle at a vertex v is an ordered pair (e1,e2) of edges incident to v where e2 immediately follows e1 in clockwise order around v. An angle (e1,e2) is a switch angle if v is the head or the tail of both e1 and e2, otherwise it is a flat angle. The set of angles of is denoted as 𝒜. An angle assignment for is a function λ:𝒜{1,0,1}, and it is upward-consistent if it satisfies the following conditions: (C1) For each angle a in 𝒜, we have λ(a)=0 if and only if a is flat. (C2) For each vertex v of G, we have aλ(a)=2deg(v), where the sum is over the angles at v. (C3) For each face f of , we have aλ(a)=2 if f is an internal face and aλ(a)=2 if f is the outer face, where the sum is over the angles in f.

(a)
(b)
Figure 2: (a) An upward planar drawing Γ and its big, small, and flat angles depicted as red, green, and yellow sectors, respectively. (b) The upward-consistent angle assignment λΓ defined by Γ.

Let Γ be an upward planar drawing with planar embedding , see Fig. 2. Clearly, is bimodal. Also, it defines an angle assignment λΓ as follows. Let a=(e1,e2) be an angle of . If a is flat, then λΓ(a)=0. Otherwise, consider the geometric angle α in Γ corresponding to a. We define λΓ(a)=1 if α<π and λΓ(a)=1 if α>π. Note that λΓ is upward-consistent.

A pair (,λ) of a planar embedding and an angle assignment λ is an upward embedding if there exists an upward planar drawing Γ with embedding such that λ=λΓ. Angles a with λ(a)=0 are flat; also, we say that an angle a is large if λ(a)=1 and small if λ(a)=1. An angle assignment is determined by assigning each switch to an incident angle, which corresponds to making that angle large; a switch angle to which no switch is assigned is small. A digraph equipped with an upward embedding is an upward plane digraph.

Theorem 1 ([11, 26]).

Let be a planar embedding and λ be an angle assignment for . The pair (,λ) is an upward embedding if and only if is bimodal and λ is upward-consistent.

Upward Book Embeddings.

An n-vertex partitioned digraph is a digraph G=(V,i=1kEi) whose edge set is partitioned into k sets. An upward book embedding (in k pages) of G is a bijection π:V{1,,n} such that: (i) for each edge e=(u,v), it holds that π(u)<π(v), and (ii) for any i{1,,k}, no two edges (u,v),(w,x)Ei cross, where (u,v) and (w,x) cross if π(u)<π(w)<π(v)<π(x) or π(w)<π(u)<π(x)<π(v). We focus on the case k=2 and let L:=E1 and R:=E2. We often omit that our upward book embeddings are in two pages and call left and right the edges in L and R, respectively, since an upward book embedding (π,σ) of G=(V,LR) determines an upward planar drawing of G where the vertices lie along a vertical line, called spine, so that the y-coordinate of each vertex v is π(v), and each edge (u,v) in L (resp. in R) is drawn as a semi-circle to the left (resp. to the right) of the spine. In all the illustrations, the edges in L are blue and solid, while the edges in R are red and dashed.

An upward planar drawing respects a planar embedding if it belongs to the equivalence class . An upward book embedding respects a planar embedding if the associated upward planar drawing Γ does and respects an upward embedding (,λ) if it respects and λΓ=λ.

In an upward embedding (,λ), a vertex v is 4-modal if: (i) If v is not a switch, then in clockwise order around v in we have all outgoing left edges, all outgoing right edges, all incoming right edges, and all incoming left edges; one of the former two sets and/or one of the latter two sets might be empty. (ii) If v is a source (resp. a sink), then in clockwise order around v in (,λ) we have the large angle at v, all outgoing left edges, and all outgoing right edges (resp. the large angle at v, all incoming right edges, and all incoming left edges); one of the two sets might be empty. Also, (,λ) is 4-modal if all vertices are 4-modal.

Property 2.

Let Γ be an upward book embedding of a partitioned digraph G=(V,LR) and let (,λ) be the upward embedding of G defined by Γ. Then (,λ) is 4-modal.

(a)
(b)
Figure 3: (a) An upward planar drawing Γ of a biconnected partitioned directed partial 2-tree G. The labeling λΓ of the angles determined by Γ is shown; the missing labels are equal to 1. (b) The SPQ-tree of G rooted at the Q-node corresponding to the edge e of G.

Partial 2-trees.

A graph is an (undirected) partial 2-tree if, equivalently, it has treewidth at most two, or it excludes K4 as a minor, or it is a subgraph of a 2-tree, which is a graph that can be obtained from an edge by repeatedly inserting a degree-2 vertex adjacent to two adjacent vertices. Notably, the class of partial 2-trees includes the series-parallel graphs.

Let G be a biconnected partial 2-tree and let e=(u,v) be an edge of G, see Fig. 3. The SPQ-tree T of G with respect to e is a rooted tree that describes a recursive decomposition of G into smaller partial 2-trees; it is a specialization of the well-known SPQR-tree, which is defined for general biconnected planar graphs [24, 34], and can be computed in linear time.

The root of T is a Q-node ρ associated with G and with a single child σ. Define Ge as the pertinent graph of σ, and let u and v be the poles of σ. We proceed recursively. Suppose we are given a quadruple μ,u,v,Gμ, where μ is a node of T with poles u and v, and Gμ is its pertinent graph (initially, this is σ,u,v,Ge). Three cases can occur:

  • If Gμ is a single edge (u,v), then μ is a Q-node representing that edge; μ is a leaf of T.

  • If Gμ is not biconnected, then μ is an S-node. Let w be an arbitrary cut-vertex of Gμ. Then μ has two children ν1 and ν2 in T corresponding to the two subgraphs Gν1 and Gν2, respectively, obtained by splitting Gμ at w. The poles of ν1 are u and w, and those of ν2 are w and v. The construction of T recurses on ν1,u,w,Gν1 and on ν2,w,v,Gν2.

  • If Gμ is biconnected, then μ is a P-node. Then μ has k children ν1,,νk, where k is the number of subgraphs Gν1,,Gνk obtained by splitting Gμ at u and v. For i=1,,k, the poles of νi are u and v, and the construction of T recurses on νi,u,v,Gνi.

A directed partial 2-tree is a digraph whose underlying graph is a partial 2-tree, where the underlying graph is the undirected graph obtained by ignoring the edge directions. An SPQ-tree of a biconnected directed partial 2-tree G is an SPQ-tree of its underlying graph, although the edges of the pertinent graph of each node are oriented as in G.

3 Characterization for Upward Embeddings

In this section we characterize the upward embeddings (,λ) of a partitioned upward plane digraph G=(V,LR) that allow for the construction of an upward book embedding.

(a)
(b)
Figure 4: Impossible faces in (a) an upward plane digraph and (b) a plane st-graph.

For a face f of , let f (resp. f) be the set of maximal directed paths in the boundary of f that consist of edges with f to their right (resp. to their left). The face f is impossible if it satisfies one of the following two conditions (see Fig. 4(a)):

  1. (i)

    f contains a path f with the following properties: a) f consists of edges in R; b) the rest of the boundary of f is not a single edge; and c) let efu and efv be the edges of f incident to the extremes u and v of f, respectively; then the angle in f incident to u and to the right of efu and the angle in f incident to v and to the right of efv are small.

  2. (ii)

    f contains a path rf with the following properties: a) rf consists of edges in L; b) the rest of the boundary of f is not a single edge; and c) let efu and efv be the edges of rf incident to the extremes u and v of rf, respectively; then the angle in f incident to u and to the left of efu and the angle in f incident to v and to the left of efv are small.

A good embedding is an upward embedding (,λ) that is 4-modal and that is such that no face of is impossible. We now prove our characterization.

Theorem 3.

Let G be a partitioned upward plane digraph with upward embedding (,λ). Then G admits an upward book embedding respecting (,λ) if and only if (,λ) is good.

Sketch.

We sketch the proof for the case where G is connected; the general case is discussed in the full version. For the necessity, let Γ be an upward book embedding of G respecting (,λ). Then is 4-modal by Property 2. Suppose, for a contradiction, that a face f of is impossible. W.l.o.g., assume that f contains a path f satisfying condition (i) and let u,v,efu,efv be defined as above. Let further w and z be the vertices adjacent to u and v, respectively, such that the edge (u,w) follows efu in clockwise order around u and the edge (z,v) follows efv in counter-clockwise order around v. Since Γ is upward planar, the order of the vertices of f along the spine is the same as their order in f, with u below v; also, w lies above u and z below v. If w or z lies in the strip Suv delimited by the horizontal lines through u and v, then (u,w) or (z,v) would cross an edge of the path f, because the small angles in (,λ) force the edges (u,w) and (v,z) to be to the right of efu and efv, respectively. However, no point of the spine lies to the right of f and in the strip Suv. It follows that w has to lie above v and z below u. This, however, implies that the edges (u,w) and (z,v) cross each other, given that they are both drawn to the right of the spine. This proves the necessity.

For the sufficiency, we build on a procedure by Bertolazzi et al. [12], who showed that any upward plane digraph can be augmented to a plane st-graph by adding edges, while maintaining the upward embedding. A plane st-graph G is an upward plane digraph with one source s and one sink t that are incident to the outer face. The boundary of each face f of G consists of two directed paths f and rf, called left and right path, respectively. In the full version, we extend the technique of Bertolazzi et al. and show that, by suitably adding paths and carefully assigning their edges to L and R, we can augment a good embedding of the given partitioned upward plane digraph G to a good embedding of a partitioned plane st-graph. For this reason, we now assume that G is a partitioned plane st-graph. In this case, a face f is impossible if f only consists of edges in R and rf is not a single edge, or if rf only consists of edges in L and f is not a single edge; see Fig. 4(b).

To show that a partitioned plane st-graph G with a good embedding (,λ) admits an upward book embedding Γ, we use the fact that it can be constructed starting from the left path fO of the outer face fO by repeatedly adding the right path of an internal face whose left path already belongs to the graph, see, e.g., [2, 23, 30, 44]. We start by drawing in Γ the edges of fO as semi-circles in their assigned side of the spine. When we draw the right path rf of a face f whose left path f already belongs to the subgraph of G drawn in Γ, we distinguish two cases. First, if rf is a single edge e, then, since G is simple, f contains an internal vertex. Since f is not impossible, eR. Then we just draw e as a semi-circle to the right of the spine.

(a)
(b)
(c)
Figure 5: Illustrations for the proof sketch of Theorem 3.

Second, if rf is not a single edge, as in Fig. 5, then f contains a left edge (u,v), since f is not impossible. If both the first and the last edge of rf are in R, we place all the internal vertices of rf on the spine between u and v in the order in which they appear along rf and draw the edges of rf as semi-circles in their assigned side of the spine; see Fig. 5(a). Otherwise, if the first edge of rf is in L and its last edge is in R, then also the first edge of f is in L due to the 4-modality of (,λ). We can then choose (u,v) as the first edge of f and proceed as discussed in the previous case; see Fig. 5(b). The case where the first edge of rf is in R and its last edge is in L is analogous. Finally, if both the first and the last edge of rf are in L, then so are the first edge (sf,sf) and the last edge (tf,tf) of f, by the 4-modality of (,λ). If f is a single edge, then it plays the role of (u,v) and we place the internal vertices of rf and draw its edges as above. Otherwise, since f is not impossible, rf contains an edge (w,z)R. We embed the internal vertices of the subpath of rf from its start to w, including w, between sf and sf in the order as they appear along rf, and we embed the internal vertices of the subpath of rf from z to its end, including z, between tf and tf in the order as they appear along rf, and draw the edges of rf as semi-circles in their assigned side of the spine; see Fig. 5(c).

4 Computational Complexity with Variable Embedding

In this section we study the complexity of testing whether a partitioned digraph G=(V,LR) admits an upward book embedding in two pages. We show that the problem is 𝖭𝖯-complete by exploiting Theorem 3 and the 𝖭𝖯-hardness of Upward Planarity Testing.

Theorem 4.

It is 𝖭𝖯-complete to decide whether a partitioned planar digraph admits an upward book embedding.

Proof.

Clearly, the problem is in 𝖭𝖯. In order to prove 𝖭𝖯-hardness, we give a reduction from Upward Planarity Testing, which was proved to be 𝖭𝖯-hard by Garg and Tamassia [32]. Given a planar digraph G=(V,E), we construct a partitioned digraph G=(V,LR) as follows. Subdivide each edge eE with a new vertex ve; these subdivision vertices, together with the vertices in V, form V. The edge set L consists of the edges outgoing from vertices in V (and incoming into vertices in VV), and the edge set R consists of the remaining edges. Clearly, G can be constructed from G in polynomial time. It remains to show that G admits an upward book embedding if and only if G admits an upward planar drawing.

For the necessity, observe that an upward book embedding Γ of G is an upward planar drawing of G. Then an upward planar drawing Γ of G is obtained from Γ by (i) placing each vertex of G in Γ as in Γ and by (ii) drawing in Γ each edge e=(u,w) of G as the Jordan arc formed by the union of the drawings of (u,ve) and of (ve,w) in Γ.

For the sufficiency, suppose that G admits an upward planar drawing Γ. An upward planar drawing Γ of G can be constructed from Γ by placing each subdivision vertex ve at any internal point of the Jordan arc representing the edge e. Let (,λ) be the upward embedding corresponding to Γ. We prove that (,λ) is 4-modal. Consider any vertex v of G. If vV, then v has one incoming and one outgoing edge in G, hence it is trivially 4-modal. If vV then, by construction, all the edges outgoing from v (incoming into v), if any, are in L (resp. are in R) and are consecutive in the clockwise order of the edges incident to v, due to the bimodality of Γ. It follows that v is 4-modal. Finally, (,λ) has no impossible face, since by construction any maximal directed path in the boundary of any face contains both an edge in L and an edge in R. Hence, (,λ) is a good embedding. By Theorem 3, we have that G admits an upward book embedding respecting (,λ).

Upward Planarity Testing is known to be W[1]-hard with respect to the treewidth [41]. Also, the reduction shown in Theorem 4 constructs a graph which is a subdivision of the original instance of Upward Planarity Testing. Since any two graphs, one of which is a subdivision of the other one, have the same treewidth, we get the following.

Corollary 5.

It is W[1]-hard with respect to the treewidth to decide whether a partitioned digraph admits an upward book embedding.

Furthermore, by subdividing the edges twice, rather than once, so that the edges incident to vertices in V are in L and the other edges in R, the reduction gives an instance where one edge part induces a matching and the other one a forest of stars. This is in sharp contrast with the fact that the problem is linear-time solvable when both edge parts are matchings [1].

5 Test for Graphs with a Fixed Planar Embedding

In this section we show how to exploit the characterization of Theorem 3 in order to prove that, for an n-vertex partitioned plane digraph G with a given planar embedding , it can be tested in O(nlog3n) time whether G admits an upward book embedding respecting . We assume that G is connected and refer to the full version for the case in which it is not.

We review a tool for testing whether G admits an upward planar drawing Γ respecting . By Theorem 1, the bimodality of is necessary for the existence of Γ and can be tested in O(n) time. Thus, the existence of Γ corresponds to the existence of an upward-consistent angle assignment λ for , which can be decided by the following strategy of Bertolazzi et al. [11]. Starting from the plane digraph G with planar embedding , one can construct a planar flow network 𝒩, as illustrated in Fig. 6, where:

  • for each switch v of G, the network 𝒩 contains a source sv supplying a single unit of flow;

  • for each face f of , the network 𝒩 contains a sink tf that demands a number of units of flow equal to nf/21 or nf/2+1, depending on whether f is an internal face or the outer face of , respectively (where nf is the number of switch angles incident to f);

  • for each angle α in at a switch of G, the network 𝒩 contains a node wα; and

  • the network 𝒩 contains an arc from each source sv to each node wα such that the angle α is incident to v in and an arc from each node wα to each sink tf such that the angle α is incident to f in ; all such arcs have a capacity of a single unit of flow.

(a)
(b)
Figure 6: (a) An upward planar drawing of a digraph G; large and small angles at switches of G are depicted as red and green sectors of discs, respectively. (b) The network 𝒩 constructed from the planar embedding of G; the edges of G, which are not part of 𝒩, are drawn as gray dashed curves. Arcs of 𝒩 traversed by the flow are red and thick, whereas arcs with no flow are green and thin.

By [11], there exists an upward-consistent angle assignment λ for if and only if 𝒩 admits a feasible flow whose value is the sum dT of the demands of the sinks in 𝒩. Indeed, upward-consistent angle assignments and (integral) feasible flows with value dT are in bijection. Namely, from an upward-consistent angle assignment λ, one gets a feasible flow for 𝒩 with value dT by assigning flow 1 only to arcs incident to a node wα where α is assigned a large angle by λ, and from a feasible flow for 𝒩 with value dT, one gets an upward-consistent angle assignment λ by assigning a large angle to each switch angle α such that the arcs incident to node wα are assigned one unit of flow, and a small angle to all other switch angles. Testing whether G admits an upward planar drawing respecting then becomes equivalent to testing whether 𝒩 admits a flow whose value is dT, which can be done in O(nlog3n) time [17].

Our idea is to modify 𝒩 so that there is an upward-consistent angle assignment λ for such that (,λ) is a good embedding if and only if 𝒩 has a feasible flow whose value is dT. The correspondence is actually stronger: As we show in the full version, the integral feasible flows with value dT for the modified network are in bijection with the upward-consistent angle assignments λ for such that (,λ) is a good embedding. We show an algorithm, called 𝒩-modifier, that performs a sequence of modifications to 𝒩. Along the way, 𝒩-modifier might stop and conclude that G has no upward book embedding respecting .

(a)
(b)
(c)
Figure 7: Modifying 𝒩 to ensure 4-modality. (a) A vertex v with both outgoing left edges and outgoing right edges. (b) The part of 𝒩 close to v (the edges of G are not in 𝒩, but they are shown to maintain a visual reference with (a)). (c) Removal of the neighbors of sv different from wα.

The 𝒩-modifier algorithm. We start by describing the modifications to 𝒩 to ensure 4-modality. Consider any vertex v of G. If v is not a switch, then its 4-modality does not depend on the angle assignment, thus we check whether in , in clockwise order around v, we have outgoing left edges, outgoing right edges, incoming right edges, and incoming left edges. If the test is negative, then G admits no upward book embedding respecting . If v is a switch, say a source, then we check whether in the outgoing left edges are consecutive. If the test is negative, then G admits no upward book embedding respecting . If the test is positive and v has no outgoing left edges or no outgoing right edges, the processing of v is concluded. If the test is positive and v has both outgoing left and outgoing right edges, we modify 𝒩 as follows; see Fig. 7. Let e be the left edge outgoing from v such that the edge e preceding e in clockwise order around v is a right edge, let α be the angle (e,e). For each angle βα incident to v in , the algorithm 𝒩-modifier removes wβ and its incident arcs from 𝒩. This forces the arc (sv,wα) to be assigned one unit of flow, hence making α large.

We next describe the modifications 𝒩-modifier applies to 𝒩 in order to ensure the absence of impossible faces. Consider any face f of and any maximal directed path f in the boundary of f with f to its right (the treatment of the maximal directed paths with f to their left is analogous). If f contains a left edge or if the rest of the boundary of f is a single edge, then the processing of f is concluded. Otherwise, let u and v be the extremes of f, let efu and efv be the edges of f incident to u and v, let αfu be the angle in f incident to u and to the right of efu, and let αfv be the angle in f incident to v and to the right of efv. By Theorem 3, at least one of the angles αfu and αfv has to be large. By the maximality of f, both αfu and αfv are switch angles. We say that αfu (resp. αfv) is enlargeable if the node wαfu (resp. the node wαfv) is in 𝒩. Note that, even if u (resp. v) is a switch of G, wαfu (resp. wαfv) might not be in 𝒩, because of some previous modification of 𝒩. We distinguish three cases.

(a)
(b)
Figure 8: Modifying 𝒩 to avoid impossible faces determined by f, when both αfu and αfv are enlargeable. The part of 𝒩 associated with f before (a) and after (b) the modification.
  • If neither αfu nor αfv is enlargeable, then G admits no upward book embedding respecting .

  • If just one of αfu and αfv, say αfu, is enlargeable, we modify 𝒩 as follows: For each angle βαfu incident to u in , we remove wβ and its incident arcs from 𝒩, thus forcing the arc (su,wαfu) to be assigned one unit of flow and making αfu large.

  • Finally, suppose that both αfu and αfv are enlargeable, as in Fig. 8. If there exists no angle βαfu incident to u whose corresponding node wβ is in 𝒩, or no angle βαfv incident to v whose corresponding node wβ is in 𝒩, then the processing of f is concluded, since it is already guaranteed that one of αfu and αfv will be a large angle. Otherwise, we add to 𝒩 a sink tfuv with demand 1, as well as arcs (wαfu,tfuv) and (wαfv,tfuv) with capacity 1, and decrease by 1 the demand of tf. This forces one of (wαfu,tfuv) and (wαfv,tfuv) (and consequently one of (su,wαfu) and (sv,wαfv)) to be assigned one unit of flow, hence making large αfu or αfv, respectively. Note that 𝒩 remains a planar flow network.

The described algorithm is the main ingredient for the proof of the following theorem.

Theorem 6.

Let G be an n-vertex partitioned plane digraph with planar embedding . It is possible to test in O(nlog3n) time whether G admits an upward book embedding respecting .

Sketch.

In the full version, we prove the mentioned bijection between the feasible flows with value dT of the network 𝒩 constructed by 𝒩-modifier and the upward-consistent angle assignments λ such that (,λ) is a good embedding. Then Theorem 3 implies that G has an upward book embedding respecting if and only if 𝒩-modifier did not conclude the opposite and 𝒩 has a feasible flow with value dT. Since 𝒩-modifier can be easily implemented to run in O(n) time and the algorithm by Borradaile et al. [17] to test whether 𝒩 has a feasible flow with value dT runs in O(nlog3n) time, the theorem follows.

6 Test for Biconnected Partitioned Directed Partial 𝟐-Trees

In this section we show how to test whether an n-vertex biconnected partitioned directed partial 2-tree G=(V,LR) admits an upward book embedding in two pages. We leverage tools introduced in [18, 19] to efficiently test whether a directed partial 2-tree is upward planar. Note that, lacking a characterization such as the one in Theorem 3, it would be prohibitive to lift such tools to work for our problem. Let e be an edge of G. We test in O(n2) time whether G admits a good embedding with e on the outer face. Repeating this test for all O(n) choices of e yields an O(n3)-time algorithm to decide whether G admits a good embedding. By Theorem 3, this is equivalent to testing whether G admits an upward book embedding.

Let T be an SPQ-tree of G, rooted at the Q-node ρ corresponding to e. Let μ be a node of T with poles u and v and with pertinent graph Gμ. A uv-external good embedding of Gμ is a good embedding of Gμ in which u and v are incident to the outer face. The requirement that e is incident to the outer face of any upward embedding (,λ) of G implies that the restriction of (,λ) to Gμ is indeed a uv-external good embedding of Gμ.

A uv-external good embedding (μ,λμ) of Gμ can be succinctly represented by a descriptor pair, which consists of a shape descriptor τl,τr,λu,λv,ρlu,ρru,ρlv,ρrv and of a pbe descriptor (short for partitioned book embedding descriptor) plu,pru,plv,prv,χl,χr,αlu,αru,αlv,αrv, with the following meaning. Let the left outer path Pl (resp. the right outer path Pr) be the path obtained by traversing the boundary of the outer face fμ of μ from u to v in clockwise (resp. counterclockwise) direction. The label τl (τr) is the sum of the labels assigned by λμ to the angles in fμ at the vertices of Pl (resp. Pr), excluding u and v. The values λu and λv are the labels of the angles at u and v in fμ, respectively. The label ρlu is in or out depending on whether the edge of Pl incident to u is incoming or outgoing at u, respectively; the values ρru, ρlv, and ρrv are defined analogously. The label plu is L or R depending on whether the edge of Pl incident to u belongs to L or R, respectively; the values pru, plv, and prv are defined analogously. The label χl is 1 if Pl is a directed path from u to v and all its edges belong to L or if Pl is a directed path from v to u and all its edges belong to R, it is 0 otherwise. The label χr is defined analogously for Pr. The label αlu is 1 if Pl contains a directed path from u to a vertex w{u,v} whose edges belong to L or a directed path from a vertex w{u,v} to u whose edges belong to R and if λμ assigns a small angle at w in fμ; the label αlu is 0 otherwise. The labels αru, αlv, and αrv are defined analogously, with respect to Pr rather than Pl and/or with respect to v rather than u.

The information in a descriptor pair fully describes how a uv-external good embedding of Gμ interfaces with the rest of G for the construction of a good embedding of G with e on the outer face. That is, for a good embedding (,λ) of G with e on the outer face, let (μ,λμ) be the uv-external good embedding of Gμ in (,λ), and let (σ,ω) be the descriptor pair of (μ,λμ). Replacing (μ,λμ) with any other uv-external good embedding of Gμ with descriptor pair (σ,ω) still results in a good embedding of G with e on the outer face. Even more, for a uv-external good embedding (μ,λμ) of Gμ with descriptor pair (σ,ω), let ν be a child of μ with poles w and z, and let (σ,ω) be the descriptor pair of the wz-external good embedding (ν,λν) of Gν in (μ,λμ). Replacing (ν,λν) with any other wz-external good embedding of Gν with descriptor pair (σ,ω) results in a uv-external good embedding of Gμ with descriptor pair (σ,ω). This allows us to only keep track of the descriptor pairs (σ,ω) that are “realizable” by Gμ, rather than of the actual uv-external good embeddings of Gμ. This is formalized by the notion of feasible set μ for μ, which contains all the descriptor pairs (σ,ω) such that Gμ admits a uv-external good embedding with descriptor pair (σ,ω).

The core of our algorithm consists of a bottom-up computation of the feasible set μ for each node μ of T. If μ is a non-root Q-node, then Gμ has a unique uv-external good embedding, hence μ contains a unique descriptor pair and is computed in O(1) time.

If μ is an S-node, let ν1 and ν2 be the children of μ in T and let w be the unique vertex shared by Gν1 and Gν2. We combine every descriptor pair (σ1,ω1) in ν1 with every descriptor pair (σ2,ω2) in ν2; for every such combination, we assign the two angles at w in the outer face with every possible label in {1,0,1}. We test in O(1) time whenever the combination and the assignment result in a descriptor pair (σ,ω) of a good embedding of Gμ, by checking whether the properties of Theorems 1 and 3 are satisfied. In the positive case, we add (σ,ω) to μ. Thus, the computation of μ takes time O(|ν1||ν2|), which is in O(|V(Gν1)||V(Gν2)|). This sums up to O(n2) time over all S-nodes of T.

If μ is a P-node with children ν1,,νk, we cannot just combine the descriptor pairs in (ν1),,(νk), as the number of combinations might be super-polynomial. Instead, we consider every descriptor pair that might describe a uv-external good embedding of Gμ and test whether it is in μ. This is done as follows. A set 𝒰n of descriptor pairs is n-universal if: (i) for every h-vertex biconnected partitioned directed partial 2-tree H with hn, for every two vertices uH and vH of H, and for every uHvH-external good embedding (H,λH) of H, the descriptor pair of (H,λH) is in 𝒰n, and (ii) for every descriptor pair (σ,ω) in 𝒰n, there exists a biconnected partitioned directed partial 2-tree H that contains two vertices uH and vH and admits a uHvH-external good embedding (H,λH) with descriptor pair (σ,ω). Note that μ𝒰n. We can construct an n-universal set 𝒰n with |𝒰n|O(n) in O(n) time.

Consider a uv-external good embedding (μ,λμ) of Gμ with descriptor pair (σ,ω). Assume, w.l.o.g. up to a change of the indices, that the clockwise order around u in μ of the pertinent graphs of the children of μ starting at the outer face is Gν1,,Gνk. The descriptor sequence of (μ,λμ) is the sequence 𝒮μ=[(σ1,ω1),,(σk,ωk)] of the descriptor pairs of the uv-external good embeddings of Gν1,,Gνk in (μ,λμ). The contracted descriptor sequence of (μ,λμ) is obtained from 𝒮μ by identifying equal consecutive descriptor pairs, see Fig. 9. Finally, the generating set 𝒢(σ,ω) for (σ,ω) is the set of contracted descriptor sequences that a P-node with poles w and z can have in a wz-external good embedding with descriptor pair (σ,ω). We can prove that 𝒢(σ,ω) has size O(1), can be constructed in O(1) time, and that each contracted descriptor sequence in 𝒢(σ,ω) has length O(1).

Figure 9: A uv-external good embedding (μ,λμ) of Gμ. Large and small angles on the outer faces of the embeddings of Gν1,Gν2,,Gν7 are marked + and , respectively. The descriptor pair (σ,ω) of (μ,λμ) has σ=1,2,0,1,out,in,out,out and ω=L,R,L,L,0,0,1,0,0,0. The descriptor sequence of (μ,λμ) is [(σ1,ω1),(σ2,ω2),,(σ7,ω7)], where σ1=1,1,1,1,out,out,out,out, σ2=0,0,1,1,out,out,in,in, σ3=σ4=0,0,1,1,out,out,in,in, σ5=σ6=1,1,1,1,out,out,out,out, σ7=2,2,1,1,in,in,out,out, ω1=L,L,L,L,0,0,1,0,0,0, ω2=L,L,L,L,1,0,0,0,0,0, ω3=ω4=ω5=ω6=R,R,L,L,0,0,0,0,0,0, and ω7=R,R,L,L,0,0,1,0,0,0. The contracted descriptor sequence of (μ,λμ) is [(σ1,ω1),(σ2,ω2),(σ3,ω3),(σ5,ω5),(σ7,ω7)].

In order to compute μ, we construct the generating set 𝒢(σ,ω) of (σ,ω), for each descriptor pair (σ,ω) in 𝒰n, in overall O(n) time. For each contracted descriptor sequence 𝒞 in 𝒢(σ,ω), we test whether 𝒞 is realizable by Gμ, i.e., whether there exists a uv-external good embedding of Gμ whose contracted descriptor sequence 𝒞 is a subsequence of 𝒞 containing the first and last elements of 𝒞, which ensures that 𝒞 belongs to 𝒢(σ,ω). We decide whether 𝒞 is realizable by Gμ in O(k) time, by constructing an auxiliary graph with vertex set ({ν1,,νk},{(σ1,ω1),,(σ,ω)}) and with an edge between νi and (σj,ωj) if (σj,ωj) belongs to νi, and by then testing whether each vertex in {ν1,,νk} can be assigned to a neighbor, so that both (σ1,ω1) and (σ,ω) are assigned at least one vertex. We add (σ,ω) to μ if some 𝒞 in 𝒢(σ,ω) is realizable by Gμ. Since |𝒰n|O(n), |𝒢(σ,ω)|O(1), and the realizability of a contracted descriptor sequence can be decided in O(k) time, the computation of μ takes O(nk) time, which sums up to O(n2) time over all P-nodes of T.

Finally, if μ is the root Q-node ρ, we treat it as a P-node with two children, corresponding to e and Ge, and compute ρ in O(n) time. Then G has a good embedding with e on the outer face if and only if ρ is non-empty. We thus get the following.

Theorem 7.

Let G be an n-vertex biconnected partitioned directed partial 2-tree. It is possible to test in O(n3) time whether G admits an upward book embedding.

7 Conclusions

We studied upward book embeddings of partitioned digraphs, focusing on the unsolved case of two pages – one of the final open algorithmic book-embedding problems. We closed the complexity gap for the problem by proving its 𝖭𝖯-hardness. We provided a characterization of the upward embeddings that admit such layouts and combined this with several algorithmic tools, including flow techniques, SPQ-decompositions, and compact embedding representations, obtaining efficient testing and embedding algorithms for digraphs with a fixed planar embedding and for biconnected partial 2-trees with variable embedding. We aim to (i) remove the linear overhead in our algorithm for biconnected partial 2-trees caused by rerouting the SPQ-tree at each Q-node, and (ii) extend the method to arbitrary simply connected partial 2-trees. The latter is challenging due to nested biconnected components in the block-cut-vertex tree, which must be arranged while keeping cut vertices 4-modal and avoiding impossible faces. Additional research directions include:

  • studying the complexity of the problem for partitioned digraphs with few sources;

  • determining whether the problem is 𝖭𝖯-complete for bounded-treewidth instances; and

  • developing FPT algorithms for parameters more restrictive than treewidth.

References

  • [1] Hugo A. Akitaya, Erik D. Demaine, Adam Hesterberg, and Quanquan C. Liu. Upward partitioned book embeddings. In Fabrizio Frati and Kwan-Liu Ma, editors, 25th International Symposium on Graph Drawing and Network Visualization (GD’17), volume 10692 of LNCS, pages 210–223. Springer, 2017. doi:10.1007/978-3-319-73915-1_18.
  • [2] Patrizio Angelini, Giordano Da Lozzo, Giuseppe Di Battista, and Fabrizio Frati. Strip planarity testing for embedded planar graphs. Algorithmica, 77(4):1022–1059, 2017. doi:10.1007/S00453-016-0128-9.
  • [3] Patrizio Angelini, Giordano Da Lozzo, and Daniel Neuwirth. Advancements on SEFE and partitioned book embedding problems. Theor. Comput. Sci., 575:71–89, 2015. doi:10.1016/j.tcs.2014.11.016.
  • [4] Patrizio Angelini, Marco Di Bartolomeo, and Giuseppe Di Battista. Implementing a partitioned 2-page book embedding testing algorithm. In Walter Didimo and Maurizio Patrignani, editors, 20th International Symposium on Graph Drawing (GD’12), volume 7704 of LNCS, pages 79–89. Springer, 2012. doi:10.1007/978-3-642-36763-2_8.
  • [5] Gail H. Atneosen. One-dimensional n-leaved continua. Fund. Math., 74(1):43–45, 1972. doi:10.4064/fm-74-1-43-45.
  • [6] Patricia Bachmann, Ignaz Rutter, and Peter Stumpf. On 3-coloring circle graphs. In Michael A. Bekos and Markus Chimani, editors, 31st International Symposium on Graph Drawing and Network Visualization, (GD’23), volume 14465 of LNCS, pages 152–160. Springer, 2023. doi:10.1007/978-3-031-49272-3_11.
  • [7] Patricia Bachmann, Ignaz Rutter, and Peter Stumpf. On 3-coloring circle graphs. J. Graph Algorithms Appl., 28(1):389–402, 2024. doi:10.7155/jgaa.v28i1.2991.
  • [8] Michael A. Bekos, Giordano Da Lozzo, Fabrizio Frati, Martin Gronemann, Tamara Mchedlidze, and Chrysanthi N. Raftopoulou. Recognizing DAGs with page-number 2 is NP-complete. In Patrizio Angelini and Reinhard von Hanxleden, editors, 30th International Symposium on Graph Drawing and Network Visualization (GD’22), volume 13764 of LNCS, pages 361–370. Springer, 2022. doi:10.1007/978-3-031-22203-0_26.
  • [9] Michael A. Bekos, Giordano Da Lozzo, Fabrizio Frati, Martin Gronemann, Tamara Mchedlidze, and Chrysanthi N. Raftopoulou. Recognizing DAGs with page-number 2 is NP-complete. Theor. Comput. Sci., 946:113689, 2023. doi:10.1016/J.TCS.2023.113689.
  • [10] Frank Bernhart and Paul C Kainen. The book thickness of a graph. Journal of Combinatorial Theory, Series B, 27(3):320–331, 1979. doi:10.1016/0095-8956(79)90021-2.
  • [11] Paola Bertolazzi, Giuseppe Di Battista, Giuseppe Liotta, and Carlo Mannino. Upward drawings of triconnected digraphs. Algorithmica, 12(6):476–497, 1994. doi:10.1007/BF01188716.
  • [12] Paola Bertolazzi, Giuseppe Di Battista, Carlo Mannino, and Roberto Tamassia. Optimal upward planarity testing of single-source digraphs. SIAM J. Comput., 27(1):132–169, 1998. doi:10.1137/S0097539794279626.
  • [13] Sandeep N. Bhatt, Fan R.K. Chung, F.Thomas Leighton, and Arnold L. Rosenberg. Scheduling tree-dags using FIFO queues: A control–memory trade-off. Journal of Parallel and Distributed Computing, 33(1):55–68, 1996. doi:10.1006/jpdc.1996.0024.
  • [14] T. Biedl, T. Shermer, S. Whitesides, and S. Wismath. Bounds for orthogonal 3-D graph drawing. Journal of Graph Algorithms and Applications, 3(4):63–79, January 1999. doi:10.7155/jgaa.00018.
  • [15] Carla Binucci, Giordano Da Lozzo, Emilio Di Giacomo, Walter Didimo, Tamara Mchedlidze, and Maurizio Patrignani. Upward book embeddings of st-graphs. In Gill Barequet and Yusu Wang, editors, 35th International Symposium on Computational Geometry (SOCG’19), volume 129 of LIPIcs, pages 13:1–13:22. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2019. doi:10.4230/LIPIcs.SoCG.2019.13.
  • [16] 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.
  • [17] Glencora Borradaile, Philip N. Klein, Shay Mozes, Yahav Nussbaum, and Christian Wulff-Nilsen. Multiple-source multiple-sink maximum flow in directed planar graphs in near-linear time. SIAM J. Comput., 46(4):1280–1303, 2017. doi:10.1137/15M1042929.
  • [18] Steven Chaplick, Emilio Di Giacomo, Fabrizio Frati, Robert Ganian, Chrysanthi N. Raftopoulou, and Kirill Simonov. Parameterized algorithms for upward planarity. In Xavier Goaoc and Michael Kerber, editors, 38th International Symposium on Computational Geometry (SOCG’22), volume 224 of LIPIcs, pages 26:1–26:16. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022. doi:10.4230/LIPIcs.SOCG.2022.26.
  • [19] Steven Chaplick, Emilio Di Giacomo, Fabrizio Frati, Robert Ganian, Chrysanthi N. Raftopoulou, and Kirill Simonov. Testing upward planarity of partial 2-trees. In Patrizio Angelini and Reinhard von Hanxleden, editors, 30th International Symposium on Graph Drawing and Network Visualization (GD’22), volume 13764 of LNCS, pages 175–187. Springer, 2022. doi:10.1007/978-3-031-22203-0_13.
  • [20] 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 Discrete Methods, 8(1):33–58, 1987. doi:10.1137/0608002.
  • [21] Giordano Da Lozzo, Fabrizio Frati, and Ignaz Rutter. Upward book embeddings of partitioned digraphs, 2026. URL: https://arxiv.org/abs/2603.17128.
  • [22] Giuseppe Di Battista, Peter Eades, Roberto Tamassia, and Ioannis G. Tollis. Graph Drawing: Algorithms for the Visualization of Graphs. Prentice-Hall, 1999.
  • [23] Giuseppe Di Battista and Roberto Tamassia. Algorithms for plane representations of acyclic digraphs. Theor. Comput. Sci., 61:175–198, 1988. doi:10.1016/0304-3975(88)90123-5.
  • [24] Giuseppe Di Battista and Roberto Tamassia. On-line planarity testing. SIAM J. Comput., 25(5):956–997, 1996. doi:10.1137/S0097539794280736.
  • [25] 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.
  • [26] Walter Didimo, Francesco Giordano, and Giuseppe Liotta. Upward spirality and upward planarity testing. SIAM J. Discret. Math., 23(4):1842–1899, 2009. doi:10.1137/070696854.
  • [27] Reinhard Diestel. Graph Theory, 4th Edition, volume 173 of Graduate texts in mathematics. Springer, 2012.
  • [28] Vida Dujmović and David R. Wood. On linear layouts of graphs. Discret. Math. Theor. Comput. Sci., 6(2):339–358, 2004. doi:10.46298/dmtcs.317.
  • [29] Hazel Everett, Sylvain Lazard, Giuseppe Liotta, and Stephen Wismath. Universal sets of n points for one-bend drawings of planar graphs with n vertices. Discret. Comput. Geom., 43(2):272–288, 2010. doi:10.1007/s00454-009-9149-3.
  • [30] Fabrizio Frati, Joachim Gudmundsson, and Emo Welzl. On the number of upward planar orientations of maximal planar graphs. Theor. Comput. Sci., 544:32–59, 2014. doi:10.1016/J.TCS.2014.04.024.
  • [31] Robert Ganian, Haiko Müller, Sebastian Ordyniak, Giacomo Paesani, and Mateusz Rychlicki. A tight subexponential-time algorithm for two-page book embedding. In Karl Bringmann, Martin Grohe, Gabriele Puppis, and Ola Svensson, editors, 51st International Colloquium on Automata, Languages, and Programming (ICALP’24), volume 297 of LIPIcs, pages 68:1–68:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. doi:10.4230/LIPIcs.ICALP.2024.68.
  • [32] Ashim Garg and Roberto Tamassia. On the computational complexity of upward and rectilinear planarity testing. SIAM J. Comput., 31(2):601–625, 2001. doi:10.1137/S0097539794277123.
  • [33] F. Giordano, G. Liotta, T. Mchedlidze, A. Symvonis, and S.H. Whitesides. Computing upward topological book embeddings of upward planar digraphs. Journal of Discrete Algorithms, 30:45–69, 2015. doi:10.1016/j.jda.2014.11.006.
  • [34] Carsten Gutwenger and Petra Mutzel. A linear time implementation of SPQR-trees. In Joe Marks, editor, 8th International Symposium on Graph Drawing (GD’00), volume 1984 of LNCS, pages 77–90. Springer, 2000. doi:10.1007/3-540-44541-2_8.
  • [35] Lenwood S. Heath and Sriram V. Pemmaraju. Stack and queue layouts of directed acyclic graphs: Part II. SIAM J. Comput., 28(5):1588–1626, 1999. doi:10.1137/S0097539795291550.
  • [36] Lenwood S Heath, Sriram V Pemmaraju, and Calvin J Ribbens. Sparse matrix-vector multiplication on a small linear array. University of Iowa, Department of Computer Science, 1993.
  • [37] 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.
  • [38] Seok-Hee Hong and Hiroshi Nagamochi. Two-page book embedding and clustered graph planarity. Technical report, Dept. of Applied Mathematics and Physics, University of Kyoto, Japan, 2009.
  • [39] Seok-Hee Hong and Hiroshi Nagamochi. Simpler algorithms for testing two-page book embedding of partitioned graphs. Theor. Comput. Sci., 725:79–98, 2018. doi:10.1016/J.TCS.2015.12.039.
  • [40] G. Jacobson. Space-efficient static trees and graphs. In 30th Annual Symposium on Foundations of Computer Science (FOCS ’89), pages 549–554. IEEE Computer Society, 1989. doi:10.1109/SFCS.1989.63533.
  • [41] Bart M. P. Jansen, Liana Khazaliya, Philipp Kindermann, Giuseppe Liotta, Fabrizio Montecchiani, and Kirill Simonov. Upward and orthogonal planarity are W[1]-hard parameterized by treewidth. In Michael A. Bekos and Markus Chimani, editors, 31st International Symposium on Graph Drawing and Network Visualization (GD’23), volume 14466 of LNCS, pages 203–217. Springer, 2023. doi:10.1007/978-3-031-49275-4_14.
  • [42] 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, 20th International Symposium on Algorithms and Computation (ISAAC’09), volume 5878 of LNCS, pages 882–891. Springer, 2009. doi:10.1007/978-3-642-10631-6_89.
  • [43] Tamara Mchedlidze and Antonios Symvonis. Crossing-optimal acyclic HP-completion for outerplanar st-digraphs. J. Graph Algorithms Appl., 15(3):373–415, 2011. doi:10.7155/jgaa.00231.
  • [44] Kurt Mehlhorn. Data Structures and Algorithms: Multi-dimensional Searching and Computational Geometry, volume 3 of EATCS Monographs on Theoretical Computer Science. Springer, 1984. doi:10.1007/978-3-642-69900-9.
  • [45] T. D. Morgan. Map folding. PhD thesis, Massachusetts Institute of Technology, 2012. Ph.D. thesis. URL: https://hdl.handle.net/1721.1/77030.
  • [46] J. Ian Munro and Venkatesh Raman. Succinct representation of balanced parentheses and static trees. SIAM J. Comput., 31(3):762–776, 2001. doi:10.1137/S0097539799364092.
  • [47] 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.
  • [48] C. A. Persinger. Subsets of n-books in E3. Pacific J. Math., 18:169–173, 1966. URL: http://projecteuclid.org/euclid.pjm/1102994417.
  • [49] Vaughan R. Pratt. Computing permutations with double-ended queues, parallel stacks and parallel queues. In 5th Symposium on Theory of Computing (STOC’73), pages 268–277. ACM, 1973. doi:10.1145/800125.804058.
  • [50] 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.
  • [51] Ajaykrishnan E S, Robert Ganian, Daniel Lokshtanov, and Vaishali Surianarayanan. A quasi-polynomial time algorithm for 3-coloring circle graphs. In Sepehr Assadi and Eva Rotenberg, editors, 9th Symposium on Simplicity in Algorithms (SOSA’26), pages 65–80. SIAM, 2026. doi:10.1137/1.9781611978964.6.
  • [52] Robert Tarjan. Sorting using networks of queues and stacks. J. ACM, 19(2):341–346, April 1972. doi:10.1145/321694.321704.
  • [53] Walter Unger. On the k-colouring of circle-graphs. In Robert Cori and Martin Wirsing, editors, 5th Annual Symposium on Theoretical Aspects of Computer Science (STACS ’88), volume 294 of LNCS, pages 61–72. Springer, 1988. doi:10.1007/BFb0035832.
  • [54] Manfred Wiegers. Recognizing outerplanar graphs in linear time. In Gottfried Tinhofer and Gunther Schmidt, editors, 13th International Workshop on Graph-Theoretic Concepts in Computer Science (WG’87), pages 165–176. Springer, 1987. doi:10.1007/3-540-17218-1_57.
  • [55] Avi Wigderson. The complexity of the Hamiltonian circuit problem for maximal planar graphs. Technical Report TR-298, EECS Department, Princeton University, 1982. URL: https://www.math.ias.edu/avi/node/820.