betaFeedback

WorksComputer Science

Recognizing potentially planar degree sequences

Abstract

Testing for a simple planar realization is strongly NP-complete even on graphic nn-term degree lists of minimum degree at least three and sum 6n−126n-12. Two 1313-vertex triangulations have sorted degree lists whose midpoint is graphic and has no planar realization, ruling out a characterization by simultaneous affine inequalities in the sorted entries even at sum 6666. For arbitrary lists, an ordered interval rule and a finite difference in the degrees alone each give an exact criterion. On an LL-bit input, a deterministic O(L)+2O(n)O(L)+2^{O(\sqrt{n})}-time search finds a realization or rules one out. At the first two even sums beyond the sparse bound of Bar-Noy et al., we classify all exceptions among positive graphic lists, giving linear-time recognition on a word RAM throughout the extended range. In particular, for n≥8n\ge 8, appending n−6n-6 twos suffices to make every graphic nn-term list of minimum degree at least three and sum 6n−126n-12 potentially planar.

Introduction

Hakimi asked which graphic lists, those realized by simple graphs, admit a planar realization [4 Appendix IV, Problem 35]. Such lists are called potentially planar, or planaric. The octahedron realizes (46)(4^6), where exponents denote multiplicities. At the same sum, the three universal vertices of (53,33)(5^3,3^3) force a K3,3K_{3,3}. Appending one two makes this list planaric (Figure 1). In Planar Degree Realization the input is an explicit list d=(d1,…,dn)d=(d_1,\ldots,d_n) of nonnegative integers in binary. A witness is a simple planar graph on [n][n] with degree did_i at ii, allowing isolated vertices and disconnected graphs.

Figure 1. The forced K3,3K_{3,3} for (53,33)(5^3,3^3) and a planar realization of (53,33,2)(5^3,3^3,2). The open circle has degree two. The bold edge pairs two internal vertices as in Proposition 3.5.

Böttger and Harders [5] exhibited a list that satisfies Hakimi’s necessary degree conditions [14] yet has no planar realization. Chvátal [7 Problem 24] asked for necessary and sufficient conditions for a planar realization, citing the Erdős–Gallai criterion for ordinary graphicness. Schmeichel and Hakimi [26] later obtained further restrictions on the largest degrees. Keeping residual degrees in boundary order gives an exact interval rule (Theorem 2.1). A thirteen-vertex midpoint rules out a characterization by simultaneous affine inequalities in the sorted degrees (Proposition 2.2). Counting sphere embeddings gives a nonlinear test (Theorem 2.3). The triangulation sum 6n−126n-12 used in the midpoint example also permits a reduction from 3-Partition.

Theorem 1.1. Planar Degree Realization is strongly NP-complete even for n≥4n \ge4, minimum degree at least three and degree sum 6n−126n-12. Every output of the reduction is graphic and has a 3-connected realization. Every yes-instance produced has a stacked triangulation realization.

At this sum every planar realization is a triangulation. Fanelli and Zaffiri [11] studied such lists under connectivity or adjacency constraints. The reduction in § 4 uses triangular faces to encode prescribed adjacencies. Polynomial-time recognition on graphic inputs would imply P=NP\mathrm{P}=\mathrm{NP}. Polynomially checkable certificates for both answers, a good characterization in the sense of Edmonds [9], would imply NP=coNP\mathrm{NP}=\mathrm{coNP}. For arbitrary inputs a weighted separator bounds the boundary data needed to construct a realization.

Theorem 1.2. On a deterministic multitape Turing machine, Planar Degree Realization can be decided in O(L)+2O(n)O(L)+2^{O(\sqrt n)} time, where LL is the bit length of the delimited binary list. Within the same bound the algorithm returns the edges of a realization on the input labels whenever one exists.

Listing the 2Θ(n)2^{\Theta(\sqrt n)} planaric degree multisets of order nn takes 2O(n)2^{O(\sqrt n)} total time (Corollary D.3).

How sparse must a graphic list be to guarantee a planar realization? For positive graphic nn-term lists with ℓ\ell ones, Bar-Noy et al. [2, 3] proved that a sum of at most 4n−4−2ℓ4n-4-2\ell suffices. At 4n−2−2ℓ4n-2-2\ell they left open whether an obstruction can have a leaf or more than six vertices. Only (45,2)(4^5,2) fails there (Theorem 3.2), and Theorem 3.3 classifies the next layer, 4n−2ℓ4n-2\ell.

An appended two raises this boundary by four and the sum by two. For a graphic list hh as in Theorem 1.1 with p=∣h∣≥8p=|h|\ge8, the boundary is reached after p−6p-6 twos and the resulting list is planaric (Corollary 3.4). § 5 asks how large T(h)T(h), the minimum needed for planarity, can be.

Criteria for general degree lists

An ordered interval criterion

Each move updates residual degrees, as in the Havel–Hakimi rule [16, 13]. The choice is nondeterministic and respects the order of the positive residual degrees on a disk boundary. Discard the zeros and start with an empty row. Remove one unused occurrence of a degree dd and choose a consecutive block of k≤dk\le d row entries. For k≥2k\ge2, every strict interior entry must equal one. Replace the block a1,…,aka_1,\ldots,a_k by (a1−1,d−k,ak−1)(a_1-1,d-k,a_k-1). For k=1k=1, subtract one from the chosen entry and insert d−1d-1 on either side. For k=0k=0, insert dd at any gap, including either end. Erase zeros after every move.

Theorem 2.1. A list of nonnegative integers has a simple planar realization if and only if some sequence of these moves consumes all its positive entries and ends with an empty row.

Proof. Draw the partial graph in a disk with the vertices still needing neighbours on its boundary in row order. Join a new vertex outside the disk to the block by a noncrossing fan. The strict interior vertices receive their last neighbour, so enlarging the disk around the fan gives the new row. An accepting run realizes the list once the isolates are restored.

Conversely, complete a planar realization on the positive entries to a plane triangulation on the same vertices (orders below three are immediate). Colour the original edges red. Follow a canonical ordering from a base edge [8], recording along the outer path the positive counts of red neighbours still to come. Insert the two base vertices first, counting their edge if red. Each new vertex covers an interval of the outer path. Every strict interior vertex still in the row leaves the path now, so its sole remaining red neighbour is the new vertex. The red predecessors thus form a legal block, with any unchosen endpoints retained on their respective sides. After the last vertex the row is empty.

An accepting run is a polynomial certificate. Deciding whether one exists is NP-complete by Theorem 1.1. Free permutations would admit (53,33)(5^3,3^3). Join two degree-five vertices, bring them together to attach each cubic vertex to both, then join the last vertex to all five. The resulting graph contains the forced K3,3K_{3,3} of Figure 1.

A midpoint obstruction on thirteen vertices

The interval rule maintains a boundary order. The Erdős–Gallai test [10] for graphicness uses only the sorted degrees. At even sum its minima expand into simultaneous affine inequalities.

Proposition 2.2. For the sorted lists

hj=(12,7+j,7−j,55,35),j=0,1,2,h_j=(12,7+j,7-j,5^5,3^5),\qquad j=0,1,2,

h0h_0 and h2h_2 have stacked planar realizations, and their midpoint h1h_1 is graphic and has no planar realization. Thus no system of affine inequalities in the sorted entries characterizes planar realizability even among graphic lists of length thirteen and sum 66.

Proof. Each list has sum 66=6⋅13−1266=6\cdot13-12. Every planar realization is a triangulation. Deleting its universal vertex leaves a triangulated 12-gon. Coning its boundary reverses the operation.

For h0h_0, label a heptagon cyclically from 0 to 6, draw diagonals 35, 36, 26, 16, and attach an ear to each boundary edge except 12 and 56. For h2h_2, use the fan at 0 and omit the ears on 23 and 45. Coning the two polygons in Figure 2 gives the stated degrees. Successive ear deletions reduce each cone to a tetrahedron, so both triangulations are stacked.

Endpoint polygons for the two stacked planar realizations

Figure 2. The endpoint polygons have degrees (62,45,25)(6^2,4^5,2^5) (left) and (8,46,25)(8,4^6,2^5) (right). The filled vertices form the heptagon and the five open vertices are its added ears.

The polygon for h1h_1 would have degrees (7,5,43,25)(7,5,4^3,2^5). Remove its five pairwise nonadjacent ears. Call the two boundary edges of the remaining heptagon PP that carried no ear bare. If vv meets bvb_v bare edges, its former degree was dP(v)+2−bvd_P(v)+2-b_v. At the vertex AA of former degree seven, dP(A)=5+bA≤6d_P(A)=5+b_A\le6. If bA=1b_A=1, then PP is a fan at AA. The bare edge at AA ends at a fan vertex of degree two whose former degree was at most three, below the required four.

If bA=0b_A=0, the five neighbours of AA form its link path UU. The sole vertex XX outside this fan forms an ear on a link edge yzyz. Both boundary edges at XX carried ears since its former degree was at least four. For v∈{y,z}v\in\{y,z\}, only link edges other than yzyz can be bare. Thus bv≤dU(v)−1b_v\le d_U(v)-1 and dP(v)=2+dU(v)d_P(v)=2+d_U(v). Both yy and zz formerly had degree at least five, although the target allows only one such vertex besides AA.

To see that h1h_1 is graphic, take vertices a,ba,b of degrees nine and five in the realization of h2h_2. Some neighbour ww of aa lies outside N(b)∪{b}N(b)\cup\{b\}, so replacing awaw by bwbw realizes h1h_1. Every affine inequality satisfied by the two endpoints holds at their midpoint.

Thirteen is the first order with a missing integral midpoint at sum 6n−126n-12. Order three is immediate. Using plantri [6], we checked all pairs of distinct sorted triangulation degree lists at orders four through thirteen. The 947 lists at order thirteen have five distinct missing midpoints.

An arithmetic criterion in the degrees

Counting embeddings by their number of faces gives a nonlinear test in the degrees alone. It distinguishes the missing midpoint of Proposition 2.2 from its two endpoints.

Discard zeros, accepting the empty list. For the remaining nn entries reject a degree at least nn or an odd sum. Write 2m=∑idi2m=\sum_i d_i. If m≤n−1m\le n-1, construct a forest by leaf removal. While a degree exceeds one, remove a one and decrement a largest degree. The sum bound guarantees a one and persists after each step. Pair the remaining ones and reverse the steps by attaching leaves. For n≥3n\ge3, reject m>3n−6m>3n-6.

Let BB be the oriented incidence matrix of KnK_n with one row deleted. For integer q≥1q\ge1, let XiX_i be q×qq\times q matrices of independent commuting variables, ∂i\partial_i their matrices of entrywise partial derivatives, and CC diagonal with cij=tr⁡(XiXj)c_{ij}=\operatorname{tr}(X_iX_j) for i<ji<j.

Theorem 2.3. Let dd have nn positive integer entries, even sum 2m2m, and max⁡idi<n\max_i d_i<n. Suppose n≤m≤3n−6n\le m\le3n-6 and put f=m−n+2f=m-n+2. Then dd has a simple planar realization if and only if

∑q=1f(−1)f−q(fq)Hd(q)>0,Hd(q)=(∏itr⁡(Xidi))det⁡(I+CCBT−B0)∣X=0.\sum_{q=1}^{f}(-1)^{f-q}\binom{f}{q}H_d(q)>0,\qquad H_d(q)=\left(\prod_i\operatorname{tr}(X_i^{d_i})\right)\det\begin{pmatrix}I+C&C B^{\mathsf T}\\-B&0\end{pmatrix}\Bigg|_{X=0}.

Extracting the sphere term gives this algebraic existence criterion (Appendix § 7). The separate face search in Theorem 1.2 constructs a witness in O(L)+2O(n)O(L)+2^{O(\sqrt n)} time.

Exact recognition at sparse degree sums

One vertex of degree two suffices to make the midpoint h1h_1 of Proposition 2.2 planaric. In the plane realization of h2h_2, take vertices uu, aa, bb of degrees twelve, nine and five. Delete uaua and draw a new two-edge path from uu to bb alongside the retained edge ubub. This realizes (h1,2)(h_1,2), so the least numbers of twos needed for h0,h1,h2h_0,h_1,h_2 are 0,1,00,1,0, respectively.

To count the twos needed in general, remove the zeros and write d=(h1,…,hp,2t,1ℓ)d=(h_1,\ldots,h_p,2^t,1^\ell) with hi≥3h_i\ge3. Put H=∑ihiH=\sum_i h_i, n=p+t+ℓn=p+t+\ell and S=H+2t+ℓS=H+2t+\ell. When p=0p=0, every graphic list is planaric, since every component of any realization is a path or a cycle. Assume p≥1p\ge1 and H+ℓH+\ell is even. Let T(h,ℓ)T(h,\ell) be the smallest tt for which dd is planaric. We write T(h)=T(h,0)T(h)=T(h,0).

When ℓ>H\ell>H, attach hih_i separate leaves to vertex ii and pair the remaining leaves. This gives T(h,ℓ)=0T(h,\ell)=0. Suppose henceforth that ℓ≤H\ell\le H. Set e=(H−ℓ)/2e=(H-\ell)/2. Consider the planar multigraphs MM on the pp core vertices with exactly ee edges and deg⁡M(i)≤hi\deg_M(i)\le h_i. Loops and parallel edges are allowed, and a loop contributes two to its vertex degree. Let s(M)s(M) count distinct adjacent pairs of different vertices and let λ(M)\lambda(M) count loops with multiplicity.

Lemma 3.1. The minimum number of degree-two vertices is

T(h,ℓ)=e−max⁡M(s(M)−λ(M)).T(h,\ell)=e-\max_M\bigl(s(M)-\lambda(M)\bigr).

The list (h,2t,1ℓ)(h,2^t,1^\ell) is planaric exactly when t≥T(h,ℓ)t\ge T(h,\ell).

Proof. The maximum is over a finite, nonempty set. Choose integers 0≤ri≤hi0\le r_i\le h_i summing to 2e2e. Pair the odd demands by disjoint edges and fill the remaining even demands with loops. For any candidate MM, attach hi−deg⁡M(i)h_i-\deg_M(i) leaves to vertex ii. Keep one edge from each nonloop parallel class and subdivide each additional copy once. Subdivide each loop twice. The result is a simple planar graph with the required degrees using e−s(M)+λ(M)e-s(M)+\lambda(M) twos. Further twos can be placed along a single edge.

Conversely, take a simple planar realization, discard components consisting entirely of twos, and suppress the paths through the remaining twos. In the resulting plane multigraph, each nonloop parallel class needed at least one subdivision per extra copy, and each loop needed at least two. If two leaves form an isolated edge uwuw, some core edge xyxy must exist: with bb leaf–leaf edges the core has e+be+b edges. Replace uw,xyuw,xy by pendant edges xu,yvxu,yv, also when x=yx=y. The leaves can be drawn at their new endpoints, and deleting a core edge cannot increase the required subdivisions. Repeat until all leaves are pendant. Removing them leaves a candidate MM whose subdivision cost is at most the original tt.

For a list with no ones or twos and H=6p−12H = 6p - 12, zero cost requires s(M)−λ(M)=3p−6s(M) - \lambda(M) = 3p - 6. Since MM has exactly 3p−63p - 6 edges, each must join a distinct pair. Its support is then a triangulation. Theorem 1.1 concerns exactly this equality case.

For the sparse layers write S=4n−2ℓ−2jS = 4n - 2\ell- 2j. Substitution gives e−t=2p−je - t = 2p - j, so for ℓ≤H\ell\le H Lemma 3.1 reads

d is planaric  ⟺  max⁡M(s(M)−λ(M))≥2p−j.(1)d\text{ is planaric} \iff\max_{M}\bigl(s(M)-\lambda(M)\bigr) \ge2p-j. \tag*{(1)}

Bar-Noy et al. [3, Theorem 2] prove that every positive graphic list with j>2j > 2 is planaric. For p≥1p \ge1, the next two layers automatically satisfy ℓ≤H\ell\le H, since H−ℓ=4p+2t−2jH-\ell= 4p+2t-2j. Their targets in (1) are 2p−12p-1 and 2p2p. The following results classify precisely which graphic lists miss them.

Theorem 3.2. A positive graphic list with S≤4n−2−2ℓS \le4n - 2 - 2\ell is planaric if and only if d≠(45,2)d \ne(4^5,2), up to order.

The exceptional list was identified by Schmeichel and Hakimi [26, Theorem 4]. This answers the two questions of Bar-Noy et al. [2, Section 4.4], [3 Section 7] about larger leaf-free obstructions and obstructions with a leaf at this sum.

Theorem 3.3. A positive graphic list with S=4n−2ℓS = 4n - 2\ell has no planar realization exactly in the following cases, up to order:

  1. p=5p = 5.

  2. p=6p = 6 and exactly three of the hih_i are three.

  3. dd is (ℓ+5,44,3,1ℓ)(\ell+ 5,4^4,3,1^\ell), (ℓ+6,45,2,1ℓ)(\ell+ 6,4^5,2,1^\ell), or (ℓ+6,52,34,1ℓ)(\ell+ 6,5^2,3^4,1^\ell) for some ℓ≥0\ell\ge0.

  4. dd is (55,3,22)(5^5,3,2^2), (47)(4^7) or (63,34,2)(6^3,3^4,2).

If t≥3t \ge3, only the first two cases remain. The graphic exception (55,3,22)(5^5,3,2^2) shows that this simplification already fails at t=2t = 2. Appendix § 8 proves both boundary theorems.

Corollary 3.4. On S=4n−2ℓS = 4n - 2\ell, every positive graphic list with p≥8p \ge8 is planaric. For every ℓ\ell there is an exception with p=7p = 7.

Proof. The exceptional list (ℓ+6,52,34,1ℓ)(\ell+ 6,5^2,3^4,1^\ell) is graphic: add a vertex adjacent to all six vertices of K2,4K_{2,4} and attach ℓ\ell leaves to it. □

Through S=4n−2ℓS = 4n - 2\ell, recognition takes deterministic linear time on a word RAM. After checking the degree bound and parity, a degree histogram and its prefix sums suffice for both the Erdős–Gallai test [19] and the exceptions above.

Let hh be graphic with p≥8p \ge8, minimum degree at least three and H=6p−12H = 6p - 12. Subdividing an edge p−6p - 6 times gives a graphic list at S=4nS = 4n. Thus Corollary 3.4 gives T(h)≤p−6T(h) \le p - 6, improving the bound p−4p - 4 from Bar-Noy et al. [3]. On this class, deciding T(h)≤rT(h) \le r is strongly NP-complete for every fixed integer r≥1r \ge1 and for r=p/29−1r = p/29 - 1 when 29∣p29 \mid p (Theorem A.2). Binary search with Theorem 1.2 finds T(h)T(h) and a witness in 2O(p)2^{O(\sqrt p)} time after input reading, using O(log⁡p)O(\log p) calls on lists of length at most 2p−62p - 6.

Proposition 3.5. For each p≥4p \ge4, every integer mm from 00 to ⌊(p−4)/2⌋\lfloor(p - 4)/2 \rfloor occurs as T(h)T(h) for a graphic list hh of length pp, minimum degree at least three and sum 6p−126p - 12. In fact, with q=2m+4q = 2m + 4 and k=p−qk = p - q, one may take

h=((p−1)2,q−1,4k,3q−3).h = \bigl((p-1)^2,q-1,4^k,3^{q-3}\bigr).

The construction and the matching lower bound are given in Appendix § 6.

Encoding prescribed edges by degrees

For a graphic list hh of length n≥4n \ge4, minimum degree at least three and sum 6n−126n-12, T(h)=0T(h)=0 exactly when hh is realized by a sphere triangulation, a simple graph embedded on the sphere with triangular faces. The reduction for Theorem 1.1 encodes prescribed edges by stacking a vertex in a triangular face and joining it to the three corners. A triangulation built from K4K_4 by such steps is stacked.

A bin represented by a triangular face

Take a unary instance of 3-PARTITION with m≥1m \ge1, capacity BB, and 3m3m positive item sizes wjw_j satisfying

B/4<wj<B/2,∑jwj=mB.B/4 < w_j < B/2,\qquad\sum_j w_j=mB.

The problem remains NP-complete with these bounds and unary encoding [12]. We first construct a degree list qq together with a set FF of prescribed edges on its positions.

Figure 3 shows how one triangular face can accommodate a bin. Beginning in the face RiAiCiR_iA_iC_i, insert the BB item vertices in succession, each adjacent to RiR_i, AiA_i and its predecessor, with CiC_i as the predecessor of the first. A final vertex yiy_i caps the chain. Each item vertex then has degree four, the cap has degree three, and the three corners gain B+1B+1, B+1B+1, 11 neighbours, respectively.

A bin of capacity nine holding three items of size three

Figure 3. A bin of capacity nine holding three items of size three. The bold edges are all the prescribed edges visible in this face. They comprise the three skeleton edges, the three item paths and the cap edge RiyiR_i y_i. Thin edges complete the triangulation. Reading from CiC_i towards RiAiR_i A_i, each item vertex acquires four neighbours and the cap yiy_i acquires three.

For the skeleton QQ take the third power of the path on 0,…,4m+20,\ldots,4m+2, a stacked triangulation also used by Maffucci [23 Appendix A]. The first four vertices form a tetrahedron, and each subsequent vertex can be stacked on the face formed by its three immediate predecessors. For bin ii, where 0≤i<m0 \le i < m, take

(Ri,Ai,Ci)=(4i,4i+1,4i+3).(R_i,A_i,C_i)=(4i,4i+1,4i+3).

This triangle is a face of the initial tetrahedron when i=0i=0 and is created at the insertion of 4i+34i+3 otherwise. Because its three labels are not consecutive, it remains a face throughout the construction. The bin faces use disjoint sets of vertices, and the roots RiR_i are pairwise nonadjacent in QQ.

To form qq, take the degrees in QQ with the increments just described at the bin corners. For each item jj add a path on wjw_j new vertices of target degree four, and for each bin add a cap of target degree three. Prescribe the edges of QQ, the edges within each item path and the edge RiyiR_iy_i at each cap. Since QQ has maximum degree at most six, the prescribed graph has maximum degree at most seven. The increments at the old vertices total m(2B+3)m(2B+3), and the new vertices contribute 4mB+3m4mB+3m. Thus qq has order s=4m+3+m(B+1)s=4m+3+m(B+1) and vol⁡(q)=6s−12\operatorname{vol}(q)=6s-12.

Lemma 4.1. The list qq has a planar realization containing FF if and only if the items admit a 3-partition. In that case there is a stacked realization containing FF. For every source instance, qq alone has a stacked realization.

Proof. Given a packing, concatenate the item paths assigned to each bin, preserving the order of the vertices along each path. The construction of Figure 3 realizes all the required degrees, and the edges within each item path and at each cap are present. If only the degree list matters, we can distribute the mBmB item vertices arbitrarily into groups of size BB and apply the same construction.

Conversely, suppose a planar realization contains FF. Its skeleton vertices induce exactly QQ, since QQ already attains Euler’s edge bound. Each item path, even one consisting of a single vertex, lies in one open face of QQ by connectedness. Any edge from the path to a root ends at a corner of that face. Since the three corners form a triangle and the roots are independent in QQ, at most one of them is a root. The cap yiy_i likewise lies in a single open face, with RiR_i on its boundary by the prescribed edge RiyiR_iy_i. Thus each new vertex meets at most one root. increments at the roots sum to m(B+1)m(B+1), the number of new vertices, so every new vertex meets exactly one root, the same one for all vertices of an item. Once its cap is counted, each root has BB neighbours left for items. Since B/4<wj<B/2B/4 < w_j < B/2, these neighbours belong to exactly three items.

Reading a layer backwards

The list qq alone always has a stacked realization. To force the edges of FF by degrees, we use layers of insertions that record which corners belong to skipped faces. Let π\pi have N≥4N \ge4 positions, all of degree at least three, with vol⁡(π)=6N−12\operatorname{vol}(\pi)=6N-12. Choose a set UU of 3t3t distinct positions. One round produces the list π′\pi' given by

πv′=2πv−1v∈U(v old),b=2N−4−tnew entries of degree three.(2)\pi'_v = 2\pi_v - 1_{v\in U}\quad(v\ \text{old}),\qquad b=2N-4-t\quad\text{new entries of degree three}. \tag*{(2)}

Since 3t≤N3t \le N and N≥4N \ge4, we have b≥3b \ge3, including when t=0t=0. The new order is N′=3N−4−t>4N'=3N-4-t>4 and vol⁡(π′)=6N′−12\operatorname{vol}(\pi')=6N'-12. When t=0t=0, write F(π)=(2π,32N−4)\mathcal{F}(\pi)=(2\pi,3^{2N-4}) for this full face insertion.

Lemma 4.2. Let π′\pi', UU, and tt be as in (2). From a triangulation of π\pi in which UU is the union of the corners of tt vertex-disjoint faces, inserting one vertex in every other face gives a triangulation of π′\pi'.

Conversely, take any planar realization of π′\pi' and assign its vertices to positions of the same degree in any order. In a sphere embedding the cubic vertices are independent. Deleting all of them leaves a triangulation on the old positions with degrees π\pi. Precisely tt of its faces received no insertion. Their vertex sets are disjoint and have union UU.

Proof. If we leave the specified faces empty and stack once on each remaining face, each vertex vv gains a neighbour in every one of its πv\pi_v incident faces except for the unique skipped face when v∈Uv\in U. For example, filling three faces of K4K_4 changes (34)(3^4) to (6,53,33)(6,5^3,3^3).

For the converse, label a triangulation of π′\pi' by the indicated positions. Since every old degree is at least five, the new vertices are precisely those of degree three. Two cubic vertices cannot be adjacent in a simple sphere triangulation of order greater than four. Indeed, the two faces at their common edge would give them the same two other neighbours, and the four triangles at the pair would form an entire tetrahedral sphere.

We can therefore delete all the cubic vertices, replacing each three-face fan by its boundary triangle. The remaining triangulation has order NN, and the deleted fans give distinct restored faces. In fact, two fans on opposite sides of one boundary triangle would fill the sphere and leave only three old vertices. A fan opposite an unfilled face with the same boundary would fill a tetrahedral sphere of order four.

Write ava_v for a remaining degree and hvh_v for the number of incident faces without an insertion. Counting incident edges before deletion gives

2av−hv=2πv−1v∈U.2a_v-h_v=2\pi_v-1_{v\in U}.

Since hv≥0h_v\ge0 and degrees are integral, av≥πva_v\ge\pi_v at every vertex. Both degree sums equal 6N−126N-12, so equality holds everywhere and hv=1v∈Uh_v=1_{v\in U}. Precisely tt faces were skipped, each selected position is used once, and the other positions are unused.

Reading a degree through several layers. Fix the total number RR of layers. Suppose a position xx first appears in round jj with degree aa, where j=0j=0 for an original position and a=3a=3 for an inserted one. If DrD_r denotes its degree after round rr and εr=1x∈Ur\varepsilon_r=1_{x\in U_r} for r>jr>j, then (2) gives

Dj=a,Dr=2Dr−1−εr,DR=2R−ja−∑r=j+1R2R−rεr.D_j=a,\qquad D_r=2D_{r-1}-\varepsilon_r,\qquad D_R=2^{R-j}a-\sum_{r=j+1}^{R}2^{R-r}\varepsilon_r.

The last degree determines the entire record. At round r≥1r\ge1, a value of three identifies a position born in that round, since every surviving old degree is at least five. At any larger value DD, its parity gives εr\varepsilon_r and ⌈D/2⌉\lceil D/2\rceil gives the previous degree. If the descent reaches round zero, the remaining value is the original degree, which may itself be three. Thus positions of equal final degree have the same birth round, initial degree and subsequent selection bits.

Eliminating prescribed edges

Place a marker over each prescribed edge so that its only two original neighbours are the ends of that edge. To recover their identities from degrees alone, group disjoint edges into matchings and number the edges within each matching. Each application of Lemma 4.2 forces incidences for a selected group of markers. By selecting one binary digit class at a time, we identify both ends of every edge in a logarithmic number of rounds per matching.

Lemma 4.3 (Elimination of prescribed edges). Fix a nonnegative integer cc. Let qq be a list on s≥4s\ge4 positions with 3≤qv<s3\le q_v<s and vol⁡(q)=6s−12\operatorname{vol}(q)=6s-12, and let FF be a simple graph on the positions with maximum degree at most cc. In polynomial time one can write an ordinary degree multiset dd with all entries at least three and sum 6∣d∣−126|d|-12, where ∣d∣|d| is its number of entries. It has a planar realization if and only if some sphere triangulation with degrees qvq_v contains all the edges of FF.

Every such triangulation extends by face insertions to a realization of dd. From every planar realization of dd one can recover, by deleting layers of cubic vertices and identifying the surviving positions, an induced triangulation realizing (q,F)(q,F). In particular a stacked witness for (q,F)(q,F) extends to a stacked witness for dd.

Proof. If FF has no edges, use the multiset of entries of qq. Any planar realization can be given the prescribed positions by assigning its vertices to positions of the same degree. If ∣E(F)∣>3s−6|E(F)|>3s-6 or some deg⁡F(v)>qv\deg_F(v)>q_v, we may output (53,33)(5^3,3^3), whose three universal vertices force K3,3K_{3,3}. Assume henceforth that neither bound is exceeded and that FF has an edge.

Construction. Set π(0)=q\pi^{(0)}=q. The first three rounds skip no faces. The first divides each original face into three triangles, each incident with exactly one original edge. In the second round a vertex inserted in such a triangle marks the two ends of that edge. The third round supplies a fresh third corner on either side of each edge from a marker to an endpoint. In each later round, the parity of a surviving degree records whether its position was selected, by (2).

For each edge e∈E(F)e\in E(F), reserve a distinct second-round position mem_e. This is possible for every s≥4s\ge4, since the second round adds 6s−126s-12 vertices and ∣E(F)∣≤3s−6|E(F)|\le3s-6. In any triangulation recovered through the three full rounds, the markers are pairwise nonadjacent, and the two original neighbours of each marker are the ends of an original edge. Conversely, if a triangulation with degrees qq contains FF, we may assign mem_e to a vertex inserted over ee in the second round. Distinct edges use distinct triangles of the first refinement Figure 4.

Testing the endpoint $u_i$ of a prescribed edge $u_iv_i$

Figure 4. Testing the endpoint uiu_i of a prescribed edge uiviu_iv_i. In the left panel a first-round vertex zz and the edge bound the face in which the second round inserts its marker mim_i. The right panel enlarges the triangle uivimiu_iv_im_i after the third round. Skipping the shaded face uimiau_im_ia tests the adjacency uimiu_im_i.

A greedy edge-colouring partitions FF into at most 2c−12c-1 matchings, since at most 2c−22c-2 other edges meet the endpoints of an edge. Take the edges in lexicographic order and assign the first available colour. In each nonempty matching write the edges in that order as uiviu_iv_i with ui<viu_i < v_i, 0≤i<k0 \le i < k, and write mim_i for their markers.

For this matching first test the whole index set on the uu-side and on the vv-side. Next write each index in ⌈log⁡2k⌉\lceil\log_2 k\rceil bits. For each bit, test its nonempty zero class and its nonempty one class, each on both sides. For k=1k=1 the two whole-set tests suffice. A test of JJ on the side ξ∈{u,v}\xi\in\{u,v\} specifies one further round rr with

Ur={mi:i∈J}∪{ξi:i∈J}∪Ar,U_r=\{m_i:i\in J\}\cup\{\xi_i:i\in J\}\cup A_r,

where ArA_r consists of the first ∣J∣|J| positions born in round r−1r-1. Indeed, ∣J∣≤s/2|J|\le s/2, while the preceding round skipped at most s/2s/2 faces on at least ss vertices and so inserted at least 2s−4−s/2≥s/22s-4-s/2\ge s/2 vertices. Visit the matchings by colour, the bits from low to high, and the zero class before the one class, taking the uu-side before the vv-side in each test pair. In every round compute π(r)\pi^{(r)} from π(r−1)\pi^{(r-1)} and UrU_r by (2), appending the new positions at the end. The output dd is the multiset of entries of π(R)\pi^{(R)} after the last round.

Extending a prescribed realization. Take a triangulation of qq containing FF and choose the second-round marker of each prescribed edge as above. Suppose round rr tests JJ on the ξ\xi-side. On each edge miξim_i\xi_i with i∈Ji\in J, at least one incident face has a third corner born in round r−1r-1. In the first test both sides were just subdivided. At each later test the preceding round skipped vertex-disjoint faces, so it could not skip both sides of this edge. The edges miξim_i\xi_i are pairwise disjoint. A fresh vertex has only three older neighbours and thus cannot be the third corner for two of these edges. Assign the names in ArA_r to the chosen third corners and skip the corresponding faces. These fresh vertices all have degree three, and this is their first use in a test. After round rr they are too old to serve as auxiliaries again. All earlier assignments, in particular those of the markers, remain fixed. Iterating constructs a realization of dd by face insertions and preserves stackedness.

Recovering all prescribed edges. Fix a planar realization of dd and a degree-preserving bijection ϕ\phi from its vertices to the positions of π(R)\pi^{(R)}. As we apply Lemma 4.2 backwards, we restrict this same bijection to the surviving vertices. Their degree histories determine which positions to delete and which were selected in each round. The original positions thus induce a single triangulation of qq to which all tests refer.

In the round testing JJ on the ξ\xi-side, the ∣J∣|J| skipped faces partition UrU_r. Both the markers and the fresh auxiliaries are independent sets of size ∣J∣|J|, so each face contains one of each and one selected endpoint. Its marker–endpoint edge persists when we delete the later layers. Applying the two whole-set tests shows that mim_i has an original neighbour on each side of its matching. These neighbours are unique because the two sides are disjoint and mim_i has only two original neighbours. For each bit of ii, the test of its digit class forces the neighbour on the ξ\xi-side to have that same bit. Thus the neighbours of mim_i are uiu_i and viv_i, and the original edge over which the marker was inserted is uiviu_iv_i. This holds for every prescribed edge in the triangulation recovered using ϕ\phi.

Output size. A matching of size kk uses at most 2+4⌈log⁡2k⌉2 + 4\lceil\log_2 k\rceil tests. In the nonempty case c≥1c \ge1, so

R≤3+(2c−1)(2+4⌈log⁡2s⌉),∣d∣≤3Rs.R \le3 + (2c - 1)(2 + 4\lceil\log_2 s\rceil), \qquad|d| \le3^R s.

Each layer at most doubles the largest degree. The entries thus have at most O(R+log⁡s)O(R + \log s) bits, and generating the successive lists takes polynomial time for fixed cc. In the bin construction c=7c = 7, giving the upper bound ∣d∣=O(s1+52log⁡23)|d| = O(s^{1+52\log_2 3}), with exponent about 83.4283.42. Here ss measures the prescribed-edge instance constructed from unary 3-PARTITION.

Completing the reduction

We apply Lemma 4.3 to the bin construction with c=7c = 7. To check the degree bound, recall that the bin faces are vertex-disjoint, so a skeleton vertex of degree at most six gains at most B+1B + 1 neighbours. Therefore qv≤B+7<s=mB+5m+3q_v \le B + 7 < s = mB + 5m + 3 for every skeleton vertex, including when m=1m = 1, while the remaining entries are three or four. All degrees are at least three. Since s=O(mB)s = O(mB) is polynomial in the unary input length, Lemmas 4.1 and 4.3 give a polynomial reduction from 3-PARTITION with a stacked realization for every yes-instance. Invalid inputs may be mapped to (53,33)(5^3, 3^3), realized by the 3-connected join of a triangle and three isolated vertices.

The output has nn entries of sum 6n−126n - 12, so its unary representation, including separators, uses only O(n)O(n) symbols. This proves strong NP-hardness. For membership in NP, a labelled edge list allows us to check simplicity and the input degrees directly and test planarity in time linear in the size of the graph [17].

To prove the assertion about no-instances, start with the unrestricted stacked realization of qq, which is 3-connected because each insertion from K4K_4 joins a new vertex to three old ones. More generally, given a 3-connected simple realization of a current list π\pi, we shall extend it by attaching πv−1v∈U\pi_v - 1_{v\in U} new neighbours to each old vertex vv. The demands sum to 3b3b, and no demand exceeds bb, since 3t≤N3t \le N and N≥5N \ge5 give b≥N−1≥πvb \ge N - 1 \ge\pi_v. Repeat the bb new names three times in the same cyclic order and cut the resulting word into blocks of the required lengths, one per old vertex. No block repeats a name, so every new vertex has three distinct old neighbours. After deleting at most two vertices the surviving old graph is still connected and contains a neighbour of every surviving new vertex, as required for Theorem 1.1.

The stacked witnesses give NP-completeness for planar 3-degree lists (Corollary A.1). For explicit lists with a fixed number of distinct degrees, the face recurrence in Appendix § 6.§ 1 recognizes stacked realizations in polynomial time.

The asymptotic subdivision budget

Consider the graphic lists hh of length p≥8p \ge8, minimum degree at least three and sum 6p−126p - 12. On this class even testing T′(h)≤p/29−1T'(h) \le p/29 - 1 is strongly NP-complete when 29∣p29 \mid p (Theorem A.2). To measure how many twos suffice for every such list of order pp, put M(p)=max⁡hT(h)M(p) = \max_h T(h). Proposition 3.5 and Corollary 3.4 give

⌊p−42⌋≤M(p)≤p−6.\left\lfloor\frac{p - 4}{2} \right\rfloor\le M(p) \le p - 6.

The symmetric lists ((p−1)3,3p−3)((p - 1)^3, 3^{p-3}) attain the lower bound (Appendix § 6.§ 3).

Open problem. Determine the leading asymptotic term of M(p)M(p). Are the three-pole lists asymptotically extremal, in the sense that M(p)=p/2+o(p)M(p) = p/2 + o(p)?

Stacked realizations and subdivision budgets

Stacked triangulations

Corollary A.1. Recognition of explicitly listed degree sequences is NP-complete both for maximal planar graphs and for planar 3-trees.

Proof. At orders n≥4n \ge4, planar 33-trees are precisely stacked triangulations [21 Sec. 2]. The reduction gives stacked realizations on positive instances and excludes every planar realization on negative ones. For NP membership, verify the degrees and either a planar edge list with 3n−63n-6 edges or a stacking order from K4K_4. Smaller orders are immediate.

For an explicit list of length nn with jj distinct degrees, stacked recognition takes (n+1)3jnO(1)(n+1)^3j^n O(1) time after input. For each submultiset of interior degrees, tabulate the possible triples of new-neighbour counts at the ordered corners of a triangular face. The empty filling gives (0,0,0)(0,0,0). A first insertion of degree kk splits the face into three. Their counts at the new vertex sum to k−3k-3 and each old corner gains one plus its two incident counts. Conversely, glue the three fillings in their respective faces. At K4K_4, choose four corner degrees and combine four fillings whose counts at each corner sum to its degree minus three. Among at most (n+1)j(n+1)^j submultisets, three child multisets and kk determine their parent, and at K4K_4 three multisets and the corner degrees determine the fourth. Each count is at most nn.

Hardness with a prescribed subdivision budget

Theorem A.2. For every fixed integer r≥1r \ge1, deciding whether T(h)≤rT(h) \le r is strongly NP-complete even for graphic lists hh of length pp, minimum degree at least three and sum 6p−126p-12. On the same class with 29∣p29 \mid p, deciding whether T(h)≤p/29−1T(h) \le p/29-1 is also strongly NP-complete.

Proof. Reduce from the graphic maximal-sum instances dd of Theorem 1.1 with n=∣d∣≥r+3n=|d| \ge r+3. Omitting finitely many orders preserves hardness. Let π(1)=F(d)\pi^{(1)}=\mathcal{F}(d) and π(2)=F(π(1))\pi^{(2)}=\mathcal{F}(\pi^{(1)}) be two rounds of full face insertion, and put N=∣π(2)∣N=|\pi^{(2)}|. Mark rr original positions and rr positions born in the first round, with union UU. Set b=2N−4+2rb=2N-4+2r and take

h=((2πi(2)+31i∈U)i=1N,3b).h=\left(\left(2\pi_i^{(2)}+3\mathbf{1}_{i\in U}\right)_{i=1}^{N},3^b\right).

This list has p=N+bp=N+b entries of sum 6p−126p-12. At each marked position ii, the edge count alone will allow the recovered degree to exceed πi(2)\pi_i^{(2)} by one. The full layer beneath it forces both degrees to be even, ruling out that extra unit.

In a triangulation of dd, Hall’s theorem matches the marked original vertices to distinct incident faces. Each vertex meets at least three faces and each face meets at most three marked vertices. Assign the marked new positions to the corresponding face centers in the first round. Two further full insertions preserve the resulting matching and give the list F(π(2))\mathcal{F}(\pi^{(2)}). Along each matched edge xyxy draw three two-edge paths and join two consecutive internal vertices. This raises both endpoint degrees by three and adds two cubic vertices and one degree-two vertex per edge, realizing (h,2r)(h,2^r).

Conversely, suppose (h,2s)(h,2^s) has a planar realization for some s≥0s \ge0. The NN vertices from π(2)\pi^{(2)} induce at most 3N−63N-6 edges, so at least 2∑iπi(2)+6r−2(3N−6)=3b2\sum_i\pi_i^{(2)}+6r-2(3N-6)=3b edges join them to the remaining vertices. These crossing edges form a simple bipartite planar graph, giving 3b≤2(N+b+s)−43b \le2(N+b+s)-4. Since 3b=2(N+b+r)−43b=2(N+b+r)-4, we have s≥rs \ge r. It remains to consider s=rs=r. Both edge bounds are then tight, so the old vertices induce a triangulation. The crossing graph has 2(N+b+r)−42(N+b+r)-4 edges, the largest possible number for any bipartite planar graph on these vertices. Move a single old vertex ii to the other side of the cut. If its degree in the old triangulation is gig_i, the move adds gig_i crossing edges and removes deg⁡(i)−gi\deg(i)-g_i. The new cut cannot be larger, so 2gi≤deg⁡(i)=2πi(2)+31i∈U2g_i \le\deg(i)=2\pi_i^{(2)}+3\mathbf{1}_{i\in U}. The positions born in round two are exactly the old positions of target degree six in hh. They were unmarked and cubic in π(2)\pi^{(2)}, whereas the positions inherited from π(1)\pi^{(1)} had degree at least six there. The inequality gives gi=3g_i = 3 at the round-two positions, since a triangulation has minimum degree three. Deleting these 2∣π(1)∣−42|\pi^{(1)}| - 4 cubic vertices restores distinct faces as in Lemma 4.2, regardless of any other cubic vertices. Their number is the full face count of the remaining triangulation, so each surviving vertex had one deleted neighbour in every incident face. At each such vertex both gig_i and its round-two target πi(2)\pi_i^{(2)} are even. At a marked position the inequality gives gi≤πi(2)+1g_i \leq\pi_i^{(2)} + 1, which by parity improves to gi≤πi(2)g_i \leq\pi_i^{(2)}. The same bound holds at the unmarked positions. The two degree sums equal 6N−126N - 12, so g=π(2)g = \pi^{(2)}. Reversing the two full insertions now gives a triangulation of dd.

Finally hh is graphic for every source instance. The cyclic assignment in the proof of Theorem 1.1 realizes each F(x)\mathcal{F}(x) from a simple realization of xx while preserving the old induced graph. After the first round each marked original vertex has at least (2n−4)−(n−1)≥r(2n - 4) - (n - 1) \geq r new nonneighbours. Choose distinct ones greedily and assign them the marked new positions. After two further full rounds, add each such missing edge xyxy and two adjacent vertices both joined to x,yx,y. This realizes hh. Since ∣F(x)∣=3∣x∣−4|\mathcal{F}(x)| = 3|x| - 4, the output core has order p=27n−52+2rp = 27n - 52 + 2r. Choosing r=n−3r = n - 3 gives p=29(r+1)p = 29(r + 1). Both choices of rr yield outputs of linear order and linear unary length. A planar realization of (h,2r)(h,2^r) certifies membership in NP.

The range of subdivision budgets at fixed order

Proof of Proposition 3.5. The vertices A,B,CA,B,C of the first three entries send at least 2(p−1)+(q−1)−6=2p+q−92(p - 1) + (q - 1) - 6 = 2p + q - 9 edges across their cut in any planar realization of (h,2t)(h,2^t). The bipartite planar bound 2(p+t)−42(p + t) - 4 gives t≥⌈(q−5)/2⌉=mt \geq\lceil(q - 5)/2\rceil= m.

Start with K4K_4 on A,B,C,uA,B,C,u. Inside the face ABCABC draw mm internally disjoint two-edge paths along each side. Order the internal vertices of the ABAB and BCBC strips from ABAB inwards and then out to BCBC. Join them in consecutive pairs, each in its own quadrilateral or in the central face. The 2m2m paired vertices are cubic, the mm along CACA have degree two, and each corner has degree 3+2m=q−13 + 2m = q - 1.

Stack kk vertices starting in ABuABu, using the new face at ABAB each time. Each insertion raises both A,BA,B by one, raises the preceding cubic vertex to degree four, and adds a cubic vertex. This gives (h,2m)(h,2^m). To realize hh alone, join a triangle to q−3q - 3 independent vertices and make the same additions starting at any independent vertex. Its degrees sum to 6p−126p - 12.

The symmetric list gp=((p−1)3,3p−3)g_p = ((p - 1)^3,3^{p-3}) satisfies T(gp)=⌈(p−5)/2⌉T(g_p) = \lceil(p - 5)/2\rceil for every p≥8p \geq8. Even orders follow by taking k=0k = 0. For odd p=2m+5p = 2m + 5 the same cut gives t≥mt \geq m. Before pairing the strip vertices, add a vertex adjacent to A,B,CA,B,C in the central face. Within the strips there are 3⌊m/2⌋≥m3\lfloor m/2\rfloor\geq m disjoint consecutive pairs since m≥2m \geq2. Joining any mm pairs in their quadrilaterals leaves mm twos and gives each corner degree 4+2m=p−14 + 2m = p - 1.

Derivation of the arithmetic criterion

Proof of Theorem 2.3. Take a Schur complement of I+CI + C and apply the weighted matrix-tree theorem [20] with edge weights ce/(1+ce)c_e/(1 + c_e). Writing TT for a spanning tree of KnK_n, the determinant expands as

∑T∏e∈Tce∏e∉T(1+ce).\sum_T \prod_{e\in T} c_e \prod_{e\notin T}(1+c_e).

Each simple graph GG thus has weight equal to its number of spanning trees. Differentiation at zero keeps precisely the graphs with degree list dd.

In the trace expansion [18], matching derivative positions to incident edge ends chooses a cyclic order at each vertex and a starting end. Write σ\sigma for the permutation of ends in these orders and α\alpha for edge reversal. Since tr⁡(XiXj)\operatorname{tr}(X_iX_j) pairs matrix entries with reversed indices, the free indices run once per cycle of σα\sigma\alpha, the face permutation. A connected rotation system with bb faces contributes a positive multiple of qbq^{b}. Euler’s formula gives 1≤b=f−2g1 \le b = f - 2g for genus gg. Hence the constant term vanishes, and the ffth forward difference at zero is f!f! times the coefficient of qfq^{f}, which counts the weighted spherical systems.

The determinant counts only connected graphs. If a planar realization is disconnected, m≥nm \ge n guarantees a cycle in one component. Expose a cycle edge and an edge of another component on their outer faces. Delete both and reconnect their endpoints across the components without crossings. This preserves degrees and merges the components even if the second edge was a bridge. Iteration gives the connected spherical realization counted above.

Proof of the sparse boundary theorems

In the notation of Section 3 put δ=4n−2ℓ−S\delta= 4n - 2\ell- S and j=δ/2j = \delta/2. The two boundary layers have j=1,0j = 1, 0, respectively. We first treat leaf-free lists (h,2t)(h,2^{t}), writing a,b,c,…a,b,c,\ldots for the core degrees in descending order, pp for their number and HH for their sum. The budget and the degree bound are

t=H/2−2p+j,Umax⁡=p+t−1.(3)t = H/2 - 2p + j, \qquad U_{\max} = p + t - 1. \tag*{(3)}

By Lemma 3.1, (h,2t)(h,2^{t}) is planaric exactly when some plane multigraph MM of degrees hh satisfies s(M)−λ(M)≥2p−js(M) - \lambda(M) \ge2p - j. Here s(M)s(M) counts the distinct nonloop adjacencies and λ(M)\lambda(M) counts loops with multiplicity.

Section C.1 gives the local constructions for extending a smaller realization. They yield all leaf-free exceptions with p≤7p \le7 in Section C.2 and the base cases for induction. For p≥8p \ge8, Section C.3 reduces repeated core degrees in pairs and restores degrees four and three individually. Section C.4 then restores the leaves and tracks which exceptions survive.

We shall also use a cut count with leaves present. On j=0j = 0 let CC be the core and RR its complement. Subtracting the two parts’ degree sums gives e(C)−e(R)=2pe(C) - e(R) = 2p. Hence p≥5p \ge5 for any nonempty realization, and p=5p = 5 forces K5K_{5}. For p=6p = 6, 2e(C)≥242e(C) \ge24. Four or more threes would give 2e(C)≤4⋅3+2⋅5=222e(C) \le4 \cdot3 + 2 \cdot5 = 22. Exactly three threes force equality in 2e(C)≤3⋅3+3⋅5=242e(C) \le3 \cdot3 + 3 \cdot5 = 24: the induced graph on CC has three vertices adjacent to every other core vertex, so it contains K3,3K_{3,3}.

Construction rules

Lemma C.1. Suppose p≥5p \ge5, HH is even, jj is a nonnegative integer, p+j≥6p + j \ge6, and t=H/2−2p+j≥0t = H/2 - 2p + j \ge0. Then (h,2t)(h,2^{t}) is graphic exactly when a≤Umax⁡a \le U_{\max}. In that case H−a−b≥2p+2−2jH - a - b \ge2p + 2 - 2j.

Proof. In the Erdős–Gallai test [10] the first inequality is a≤Umax⁡a \le U_{\max} and the second follows from H−a−b≥H−2Umax⁡=2p+2−2jH - a - b \ge H - 2U_{\max} = 2p + 2 - 2j. For 3≤k≤p3 \le k \le p the right side minus the left is at least k(k−1)+6(p−k)+2t−H=k2−7k+2p+2j≥0k(k - 1) + 6(p - k) + 2t - H = k^{2} - 7k + 2p + 2j \ge0. For k≥pk \ge p and k≥3k \ge3 the difference equals k(k−5)+2j≥0k(k - 5) + 2j \ge0.

Lemma C.2. In a simple plane realization of minimum degree at least two, a prescribed vertex can gain one neighbor while a three is added to the list. A four can be added with every old degree fixed if m<3n−6m < 3n - 6.

Proof. For the first move take an edge wuwu at the prescribed vertex ww. Subdivide the next edge at uu and join its new vertex to ww through the intervening sector. For the second move take two disjoint edges on one face, join their four ends to a new vertex in that face and erase both edges. Edges in different components can be placed on the outer face. In a connected realization Euler gives a nontriangular face. Its boundary walk has three distinct vertices in every consecutive triple (minimum degree two). If every consecutive quadruple repeats a vertex, the walk is periodic of period three and uses a directed edge twice unless it is a triangle. Hence the required pair exists.

Lemma C.3. From a planar realization of (h,2s)(h,2^s) with s≥2s \ge2, one can realize (h,q,g,2s+g−4)(h,q,g,2^{s+g-4}) for g≥3g \ge3.

Proof. If a two has nonadjacent neighbors, suppress it. At a remaining two zz subdivide an incident edge by xx and add g−2g-2 parallel two-edge paths alongside zxzx. Otherwise delete a two whose neighbors are u,vu,v, glue a copy of K4K_4 along uvuv in a thin sector, and erase uvuv. Along the edge joining its two fresh vertices add g−3g-3 parallel two-edge paths. Both operations preserve the other prescribed degrees.

Lemma C.4. If p≥6p \ge6, every hi≥5h_i \ge5 and t+5−j≤a≤Umax⁡t+5-j \le a \le U_{\max}, then (h,2t)(h,2^t) is planaric on either boundary.

Proof. The square of a path on q=p−1q=p-1 vertices is outerplanar with 2q−32q-3 edges and maximum degree four. Cone it and repeat the spokes to fill all rim targets. The apex has degree H−a−4q+6H-a-4q+6, so a−t−5+ja-t-5+j loops at it complete the degrees. The support has 3p−63p-6 edges and the cost is a−p+1≤ta-p+1 \le t.

We use two edge-weighting rules. On a complete multipartite graph, nonnegative increments summing to 2s2s are attainable by copying edges exactly when each part needs at most ss: pair a unit in each of two parts of largest positive demand. All parts of demand ss are chosen, so induction applies. On the planar double fan K2∨PqK_2 \vee P_q, let A≥BA \ge B be the two poles’ residual demands and RR the total residual path demand. Assume even total, all demands nonnegative, and R≥A−BR \ge A-B. If one can place max⁡{0,(R−A−B)/2}\max\{0,(R-A-B)/2\} path-edge copies within the path capacities, the degrees can be completed. For R≥A+BR \ge A+B place exactly that many copies; for R<A+BR < A+B copy the pole edge (A+B−R)/2≤B(A+B-R)/2 \le B times. The remaining path demand equals the total remaining pole demand and all spokes are available.

Lemma C.5. Let T(h)T(h) denote the minimum number of additional twos. For h=(a,b,c,d,e,f)h=(a,b,c,d,e,f) with f≥4f \ge4 and HH even, T(h)=max⁡{H/2−12,a−5}T(h)=\max\{H/2-12,a-5\}, except that T(6,45)=2T(6,4^5)=2.

Proof. The two lower bounds follow from the maximum number of edges on a six-vertex planar support and from the maximum degree of a simple graph. If a+f≤H/2−4a+f \le H/2-4, take K2,2,2K_{2,2,2} with parts (a,f),(b,e),(c,d)(a,f),(b,e),(c,d). Each vertex needs its degree minus four in extra copies. For the last two parts, H−2(b+e)≥d+f≥8H-2(b+e) \ge d+f \ge8 and H−2(c+d)≥e+f≥8H-2(c+d) \ge e+f \ge8. Thus every part needs at most (H−24)/2(H-24)/2, and the multipartite rule gives a completion at cost H/2−12H/2-12.

Suppose b≥5b \ge5 and a≥H/2−7a \ge H/2-7. To give the cone apex degree aa, we need a base on aa vertices. Start with a triangulated pentagon of degrees 4,3,3,2,24,3,3,2,2, placing bb at its vertex of degree four. Attach H−a−19H-a-19 leaves to bring the five degrees to b−1,…,f−1b-1,\ldots,f-1. The base still needs (a−5)−(H−a−19)=2a−H+14(a-5)-(H-a-19)=2a-H+14 vertices. This number is nonnegative by the bound on aa and even since HH is even. Add them in disjoint pairs joined by an edge. Coning this outerplane base turns all a−5a-5 vertices outside the pentagon into degree-two vertices. If b=4b=4, the five smallest targets are all four, so H=a+20H=a+20 forces aa even. We treat a=6a=6 at the end of the proof. For a=4a=4 use the octahedron. For a≥8a \ge8, add one chord to a pentagon and attach a leaf to each of its three vertices of degree two. Add isolated edges on a−8a-8 vertices and cone.

In the remaining case with b≥5b \ge5, we have a+f≥H/2−3a+f \ge H/2-3 and a≤H/2−8a \le H/2-8. Put a,ba,b at the poles of K2∨P4K_2 \vee P_4. Here A=a−5A=a-5, B=b−5B=b-5, R=c+d+e+f−14R=c+d+e+f-14, and R−(A−B)=H−2a−14≥2R-(A-B)=H-2a-14 \ge2. If a+b≥H/2−2a+b \ge H/2-2, then R≤A+BR \le A+B and the double-fan rule applies. Otherwise a+b=H/2−3=a+fa+b=H/2-3=a+f, whence b=c=d=e=f≥5b=c=d=e=f \ge5. Now R=A+B+2R=A+B+2 and any path edge accommodates the one extra copy needed.

For (6,45,2)(6,4^5,2) the six-valent vertex is universal. Its deletion in a planar drawing would leave all the other vertices on one face and give the outerplanar sequence (35,1)(3^5,1). Deleting its leaf gives a five-vertex, seven-edge outerplanar graph of maximum degree at most three. Such a graph triangulates a pentagon, whose two diagonals share a vertex of degree four. Conversely, attaching a triangle at one vertex of the octahedron realizes (6,45,22)(6,4^5,2^2).

At most seven vertices of degree at least three

Proposition C.6. For a leaf-free graphic sequence on either boundary with p≤7p \le7, the nonplanaric sequences are as follows. For δ=2\delta= 2 the only one is (45,2)(4^5,2). For δ=0\delta= 0, every sequence with p=5p = 5 is nonplanaric. With p=6p = 6 the exceptions are the lists with exactly three core entries equal to three, together with (5,44,3)(5,4^4,3), (55,3,22)(5^5,3,2^2) and (6,45,2)(6,4^5,2). With p=7p = 7 they are (47)(4^7), (6,52,34)(6,5^2,3^4) and (63,34,2)(6^3,3^4,2).

The support inequality s(M)−λ(M)≥2p−js(M) - \lambda(M) \ge2p - j and Euler’s bound s(M)≤3p−6s(M) \le3p - 6 leave at most p−6+jp - 6 + j for the sum of the missing support edges and the loops when p≥3p \ge3.

Five core vertices For p≤4p \le4, or p=5p = 5 with some core degree three, no realization can contain a subdivision of K5K_5 or K3,3K_{3,3}, by counting branch vertices of the required degrees. On the upper boundary, the core cut count rules out p≤4p \le4 and forces K5K_5 on the core when p=5p = 5.

On the lower boundary with p=5p = 5, assume all five degrees are at least four. Delete from K5K_5 the edge between the vertices of targets d,ed,e. The resulting graph is complete multipartite, with these two vertices in one part and the vertices of targets a,b,ca,b,c in three singleton parts. The increments needed are a−4,b−4,c−4,d−3,e−3a - 4,b - 4,c - 4,d - 3,e - 3 and their sum is 2t=H−182t = H - 18. Each singleton part needs at most a−4≤ta - 4 \le t. The last part needs d+e−6≤td + e - 6 \le t unless all entries are four: indeed H−2(d+e)=(a−d)+(b−e)+c≥4H - 2(d + e) = (a - d) + (b - e) + c \ge4, with equality only in that case, and its value is even. The multipartite rule supplies the extra copies on this nine-edge support. When h=(45)h = (4^5), t=1t = 1 and the complement has degree sequence (3,15)(3,1^5), realized only by K1,3⊔K2K_{1,3} \sqcup K_2. The original graph is K5K_5 with one edge subdivided.

Six core vertices Lemma C.5 treats cores of minimum degree at least four on both boundaries. Write rr for the number of core entries equal to three. On the upper boundary t=H/2−12t = H/2 - 12. A planar realization gives s(M)−λ(M)≥12s(M) - \lambda(M) \ge12. A simple planar support on six vertices has at most twelve edges, so s(M)=12s(M) = 12 and λ(M)=0\lambda(M) = 0. Such a triangulation is either the octahedron or K2∨P4K_2 \vee P_4. Indeed, minimum degree four forces regularity and a perfect matching in the complement. Otherwise remove a degree-three vertex. The resulting triangulation is K5K_5 minus an edge, the triangular bipyramid, all of whose faces are equivalent. Inserting a vertex in one face gives K2∨P4K_2 \vee P_4. The core cut count settles r≥3r \ge3, so it remains to consider r=2r = 2 and r=1r = 1.

For r=2r = 2 let h=(a,b,c,d,3,3)h = (a,b,c,d,3,3). We have b≥5b \ge5, since b=4b = 4 would force a≤4a \le4 by the degree bound, and then H<24H < 24. Place both threes at the ends of P4P_4. The largest number of additional path edges is d−4d - 4. In the double-fan rule, A=a−5A = a - 5, B=b−5B = b - 5, R≥A−BR \ge A - B is the degree bound a≤H/2−7a \le H/2 - 7, and (R−A−B)/2=(c+d−a−b+2)/2(R - A - B)/2 = (c + d - a - b + 2)/2. This is at most d−4d - 4 exactly when (a−c)+b+d≥10(a - c) + b + d \ge10. Since a≥ca \ge c, b≥5b \ge5 and d≥4d \ge4, the left side is at least nine, and it has the parity of HH.

For r=1r = 1 write h=(a,b,c,d,e,3)h = (a,b,c,d,e,3). When b=4b = 4, the degree bound and H≥24H \ge24 force h=(5,44,3)h = (5,4^4,3). The octahedron has minimum degree four, and the double fan requires two targets of degree at least five. For b≥5b \ge5 order the path capacities as (0,d−4,c−4,e−3)(0,d - 4,c - 4,e - 3). Only the two edges incident with the third path vertex can take extra copies. They share its c−4c - 4 units of capacity, and their other ends supply d+e−7d + e - 7 units between them. The maximum number of copies is therefore min⁡{c−4,d+e−7}\min\{c - 4,d + e - 7\}. We have R−(A−B)=H−2a−14≥0R - (A - B) = H - 2a - 14 \ge0, as required by the double-fan rule. The quantity (R−A−B)/2=(c+d+e−a−b−1)/2(R - A - B)/2 = (c + d + e - a - b - 1)/2 is at most d+e−7d + e - 7, since (a−c)+b+d+e≥0+5+4+4=13(a - c) + b + d + e \ge0 + 5 + 4 + 4 = 13. It is at most c−4c - 4 provided a+(b−d)+(c−e)≥7a + (b - d) + (c - e) \ge7. This quantity is odd and at least five. Equality with five forces h=(53,3)h = (5^3,3). Both poles are then saturated. The cubic target must occupy a path endpoint, so up to reversal the capacities are (0,1,1,2)(0,1,1,2). They require two extra copies but permit only one.

On the lower boundary t=H/2−11t = H/2 - 11. Suppose 1≤r≤31 \le r \le3. If a=4a = 4, then H=24−rH = 24 - r is even, so r=2r = 2 and deleting an octahedron edge realizes (44,32)(4^4,3^2). For a≥5a \ge5 all three cases use the cone with apex x0x_0 over the cycle x1x2vxwx1x_1x_2vxwx_1 with chord x1x2x_1x_2. Its degrees in order x0,x1,x2,u,v,wx_0,x_1,x_2,u,v,w are 5,4,4,3,3,35,4,4,3,3,3. Give x0,x1,x2x_0,x_1,x_2 the targets a,b,ca,b,c. For r=2r = 2 put dd at uu, and for r=1r = 1 put ee, dd at vv, ww. All remaining targets are three. Choose the extra edge copies from the complete multipartite subgraph indicated for each rr.

rrPartsRemaining demand in each part
3{x0},{x1},{x2}\{x_0\}, \{x_1\}, \{x_2\}a−5a - 5, b−4b - 4, c−4c - 4
2{x0},{x1},{x2},{u}\{x_0\}, \{x_1\}, \{x_2\}, \{u\}a−5a - 5, b−4b - 4, c−4c - 4, d−3d - 3
1{x0},{x1,v},{x2,w}\{x_0\}, \{x_1,v\}, \{x_2,w\}a−5a - 5, b+e−7b + e - 7, c+d−7c + d - 7

The demands sum to H−22=2tH - 22 = 2t, so the multipartite rule requires only that each part have demand at most tt. The degree bound gives a−5≤ta - 5 \le t throughout. For r=2,3r = 2, 3 we have H−2b≥c+9≥13H - 2b \ge c + 9 \ge13. As HH is even, H−2b≥14H - 2b \ge14, or b−4≤tb - 4 \le t, which also bounds c−4c - 4. For r=2r = 2 we have H−2d≥a+b+6≥15H - 2d \ge a + b + 6 \ge15, so H−2d≥16H - 2d \ge16, or d−3≤td - 3 \le t. For r=1r = 1 we have H−2(b+e)=(a−b)+(d−e)+c+3≥7H - 2(b + e) = (a - b) + (d - e) + c + 3 \ge7 and H−2(c+d)=(a−c)+(b−d)+e+3≥7H - 2(c + d) = (a - c) + (b - d) + e + 3 \ge7. Both are even, so both are at least eight, as required. Pairing the demands gives tt extra edge copies, each of which we subdivide once.

For r=4r = 4 the degree bound forces h=(a,a,34)h = (a,a,3^4) with t=a−5t = a - 5. The graph K2∨(2K2⊔tK1)K_2 \vee(2K_2 \sqcup tK_1) realizes it and is a subgraph of a double fan. For r≥5r \ge5, the sum and maximum degree requirements are incompatible: for (a,35)(a,3^5) they give a≥7a \ge7 and a≤3a \le3, respectively.

Seven core vertices on the upper boundary First suppose the minimum target gg is at least five, so t=H/2−14t = H/2 - 14. If a=Umax⁡a = U_{\max}, start with a hexagon carrying two noncrossing chords with disjoint endpoints. Attach leaves to its vertices until each has its target degree minus one. The number attached is H−a−22=a−6=tH - a - 22 = a - 6 = t. Coning gives the required realization.

Otherwise a≤H/2−9a \le H/2 - 9. If a−g≥2a - g \ge2, remove gg and replace aa by a−g+4a - g + 4 in the core. The six remaining targets have sum K=H−2g+4K = H - 2g + 4 and maximum at most K/2−7K/2 - 7. For the changed target this follows from a≤H/2−9a \le H/2 - 9. For the unchanged targets it suffices to bound bb: we need H−2(b+g)≥10H - 2(b + g) \ge10, and H−2(b+g)=(a−b)+(c−g)+d+e+f≥3g≥15H - 2(b + g) = (a - b) + (c - g) + d + e + f \ge3g \ge15. All six targets are at least five, so Lemma C.5 gives a simple plane realization with K/2−12K/2 - 12 twos. Suppress its degree-two paths to obtain a plane multigraph MM with s(M)−λ(M)≥12s(M) - \lambda(M) \ge12. Its simple support has at most twelve edges, so it is a triangulation and MM has no loops. The vertex ww of target a−g+4≥6a - g + 4 \ge6 has at most five neighbors, so some edge wuwu is repeated. Fix a plane embedding of the support and let vv immediately follow uu in the cyclic order at ww. Draw the parallel copies in narrow bundles and take the two facing outermost copies of wuwu and wvwv. In the sector between the two edges, replace both copies by xuxu, xvxv and g−2g - 2 copies of xwxw for a new vertex xx. The degree of ww rises by g−4g - 4 and the new vertex has degree gg. Another copy of wuwu survives, so only wvwv can disappear from the support. The three new edges xuxu, xvxv, xwxw bring the support to at least fourteen edges, and its subdivision cost is at most H/2−14=tH/2 - 14 = t.

If a−g≤1a - g \le1, use the pentagonal bipyramid with apexes 0,10,1 and equator 2,3,4,5,62,3,4,5,6 in that order. Its support has fifteen edges. Adding a copy of every edge of the Hamilton cycle 0231456002314560 raises every degree by two. Subtracting two from all targets until the minimum is five or six therefore reduces the construction to the following bases. Since HH is even, minimum five requires an odd number of sixes and minimum six an even number of sevens.

Targets in vertex orderExtra edge copies
(6,56)(6,5^6)06, 23, 45
(63,54)(6^3,5^4)06, 12, 23, 45
(65,52)(6^5,5^2)06, 14, 45, 23, 23
(67)(6^7)06, 16, 23, 23, 45, 45
(72,65)(7^2,6^5)06, 06, 23, 23, 14, 15, 45
(74,63)(7^4,6^3)06, 06, 23, 23, 23, 14, 15, 45
(76,6)(7^6,6)06, 06, 45, 45, 23, 23, 23, 14, 15

If the minimum is four, the construction for a=Umax⁡a = U_{\max} still works. For a<Umax⁡a < U_{\max} remove one four. The residual remains graphic by Lemma C.1. On the upper boundary the residual has m′=2n′m' = 2n', so m′<3n′−6m' < 3n' - 6 exactly when n′≥7n' \ge7. Lemma C.2 then restores the four in any planar residual. If n′=6n' = 6, all six vertices are core vertices of degree at least four and their degrees average four. This gives (4^6) and hence the parent (4^7). Among the six-core residuals with all core degrees at least four, Lemma C.5 leaves only (6,45,2)(6,4^5,2) as nonplanaric. Table 2 realizes its parent (6,46,2)(6,4^6,2).

Residual corePossible parent cores
(6,45)(6,4^5)(7,45,3)(7,4^5,3)
(5,44,3)(5,4^4,3)(6,44,32)(6,4^4,3^2), (52,43,32)(5^2,4^3,3^2)
(55,3)(5^5,3)(6,54,32)(6,5^4,3^2)

Table 2.

For (4^7) there is a short face count (see also [26]). A realization would be connected since every component has at least five vertices. Its even degrees give a decomposition of the edges into simple cycles. Thus it is bridgeless, and we may color each face by the parity of the number of these cycles surrounding it. Crossing any edge changes the color, so the face lengths in each color sum to the number of edges, 14. Its nine faces have total length 28, and every face has length at least three because the graph is simple and bridgeless. Exactly one face is a quadrilateral. The color without that face gives 3∣143 \mid14, a contradiction.

Now let rr count the threes. If r≥5r \ge5, the five smallest entries sum to 15, below the 16 required by Lemma C.1. If r=4r = 4 write h=(a,b,c,34)h = (a,b,c,3^4), with c≥4c \ge4, a≤b+c−4a \le b + c - 4 and a+b+c≥16a + b + c \ge16. The graph K2∨(P3⊔P2)K_2 \vee(P_3 \sqcup P_2) has degrees (6,6,4,34)(6,6,4,3^4), with the first three vertices forming a triangle. Denote them by x0,x1,x2x_0, x_1, x_2 in target order. The extra multiplicities on xixjx_i x_j are

m01=a+b−c−82,m02=a+c−b−42,m12=b+c−a−42.m_{01} = \frac{a+b-c-8}{2}, \qquad m_{02} = \frac{a+c-b-4}{2}, \qquad m_{12} = \frac{b+c-a-4}{2}.

Their sum is tt. If b≤5b \le5, the two displayed constraints force (a,b,c)=(6,5,5)(a,b,c) = (6,5,5). For b≥6b \ge6 the second multiplicity is nonnegative since a≥ba \ge b and c≥4c \ge4. The third is nonnegative since a≤b+c−4a \le b + c - 4. If the first is negative, then $6 \le a \le a + b - c < 8$. Since a+b−ca + b - c has the parity of HH, it must equal six, giving (6,6,6)(6,6,6).

To exclude (6,52,34)(6,5^2,3^4), remove its universal vertex. An outerplanar graph of degrees (42,24)(4^2,2^4) would have eight edges. It must be connected, since two components of minimum degree two on six vertices can only be triangles. Deleting a cut vertex leaves five vertices, and every component has at least two since the original minimum degree is two. The two components thus have orders two and three. Together with the cut vertex, they induce outerplanar graphs with at most three and five edges respectively. Equality forces a triangle glued to a diamond, giving degrees (5,3,24)(5,3,2^4) or (4,32,23)(4,3^2,2^3). In the remaining two-connected case the outer boundary is a hexagon, and both diagonals would have to join the same two degree-four vertices.

For (63,34,2)(6^3,3^4,2), suppress the two-vertex if its neighbors are nonadjacent. This would give a seven-vertex triangulation with four degree-three vertices. Such vertices are independent in any triangulation on more than four vertices (two adjacent ones force all four faces of a tetrahedron), so their twelve incident edges violate the bipartite planar edge bound 2⋅7−42 \cdot7 - 4. If its neighbors are adjacent, remove the two-vertex to get a seven-vertex plane graph with fourteen edges and four vertices of degree at most three. None can have degree two, since deleting it would leave a six-vertex triangulation with at least three vertices of degree at most three. The only six-vertex triangulations, the octahedron and K2∨P4K_2 \vee P_4, have zero and two such vertices, respectively. Hence both neighbors had degree six, leaving the previously excluded sequence (6,52,34)(6,5^2,3^4).

Finally suppose 1≤r≤31 \le r \le3. Remove a three and reduce a largest entry by one. The largest entry was at least five, and two entries equal to Umax⁡U_{\max} would leave only sixteen for the other five entries, whose sum is at least 20−r≥1720-r \ge17. The residual maximum is at most Umax⁡−1U_{\max}-1, so the residual is graphic by Lemma C.1. Lemma C.2 lifts any planar residual. Lowering a maximum of at least five creates no new three, so the residual has r−1≤2r-1 \le2 threes. For each remaining exceptional residual core, the right column lists the preimages obtained by adjoining a three and raising one of the old entries by one to a (possibly tied) maximum.

The first core with its one two-vertex is obtained by taking a hexagon with disjoint chords 02, 35, attaching a leaf at vertex 1, and coning. The first preimage in the second row is the cone on the same hexagon and both chords. Table 2 gives the other two.

Seven core vertices on the lower boundary If a three occurs, remove one three and lower a largest entry by one. That entry is at least four, and if it equals Umax⁡U_{\max} it is unique, since H−2Umax⁡=14<3(7−2)H - 2U_{\max} = 14 < 3(7 - 2). The residual list remains on δ=2\delta= 2 and is graphic by Lemma C.1. The six-core case gives a planar realization with the same tt twos. Reinserting the three finishes. Otherwise every core degree is at least four and t≥1t \ge1. If a=Umax⁡a = U_{\max}, take a hexagon with one chord, then add leaves to attain the six targets minus one. The number of leaves is H−a−20=tH - a - 20 = t; coning finishes. If a<Umax⁡a < U_{\max}, remove one two. The upper-boundary residual has maximum at most Umax⁡−1U_{\max} - 1 and is graphic by Lemma C.1. We may subdivide one edge of its planar realization unless its core is (47)(4^7). For that core, subdivide an octahedron edge once and apply the four-insertion of Lemma C.2 to the resulting seven-vertex graph. This proves Proposition C.6.

Eight or more core vertices

Proposition C.7. If p≥8p \ge8, every leaf-free graphic sequence on either boundary is planaric.

Upper boundary with all core degrees at least five

Lemma C.8. Let a,b,ca, b, c be the three largest entries, in descending order, of a core hh with p≥8p \ge8 and hp≥5h_p \ge5. Suppose HH is even and t=H/2−2p≥0t = H/2 - 2p \ge0. If a≤t+5a \le t + 5 and a≤Umax⁡=p+t−1a \le U_{\max} = p + t - 1, then (h,2t)(h, 2^t) is planaric in either of the following cases.

  1. b≥p−1b \ge p - 1 and a+b−c≥2p−4a + b - c \ge2p - 4.

  1. All core entries are distinct.

Proof. Put a,ba, b at the poles of K2∨Pp−2K_2 \vee P_{p-2}. Their residual demands are A=a−p+1A = a - p + 1 and B=b−p+1B = b - p + 1. For the second case, strict descent gives c≥p+2c \ge p + 2, so both demands are nonnegative there as well. The path vertices have residual sum R=H−a−b−4p+10R = H - a - b - 4p + 10, and R−(A−B)=2(t+5−a)≥0R - (A - B) = 2(t + 5 - a) \ge0. By the double-fan rule it suffices to place extra path edges leaving capacity at most A+BA + B.

Set q=p−2q = p - 2 and write w1≤⋯≤wq=c−4w_1 \le\cdots\le w_q = c - 4 for the remaining target degrees minus four. We may order these capacities along the path as we please. The two ends each have one further unit of capacity. For the first assertion, pair consecutive capacities, leaving the smallest one unpaired when qq is odd. In each pair use the smaller capacity in edge copies. The unused capacities of the pairs are differences over disjoint intervals in the ordered list, so they sum to at most wq−w1w_q - w_1. When qq is odd the unpaired vertex contributes a further w1w_1. In either parity at most wqw_q units remain before the two endpoint units are counted, and wq+2=c−2≤A+Bw_q + 2 = c - 2 \le A + B.

For the second assertion consider four consecutive capacities α<β<γ<η\alpha< \beta< \gamma< \eta. Pairing them consecutively leaves (β−α)+(η−γ)(\beta- \alpha) + (\eta- \gamma) unused. Instead order the path as α,γ,η,β\alpha,\gamma,\eta,\beta and use α\alpha and β\beta extra copies of its first and last edges. This saturates both ends and leaves γ−α\gamma- \alpha and η−β\eta- \beta units at the middle vertices. Copies of the middle edge can now use one unit from each until only ∣(η−γ)−(β−α)∣|(\eta- \gamma) - (\beta- \alpha)| units remain. Since both outer gaps are positive integers, their difference in absolute value is at most (η−γ−1)+(β−α−1)(\eta- \gamma- 1) + (\beta- \alpha- 1). Let ss be the remainder of qq modulo four. Set aside the smallest ss entries and apply the block construction to the rest in increasing order, using zero extra multiplicity on joins between blocks. For s=0,1,2,3s = 0, 1, 2, 3 the leftover small block can have unused capacity respectively

0,w1,w2−w1,∣w3−w2−w1∣.0,\quad w_1,\quad w_2 - w_1,\quad\lvert w_3 - w_2 - w_1\rvert.

For s=2s = 2, the difference w2−w1w_2-w_1 is one plus the excess of the first gap over one. For s=3s = 3, place w3w_3 in the middle. Its two incident edges can take min⁡{w3,w1+w2}\min\{w_3,w_1+w_2\} extra copies in total, leaving ∣w3−w1−w2∣\lvert w_3-w_1-w_2\rvert units. Since both w3−w2w_3-w_2 and w1w_1 are positive integers, their absolute difference is at most (w3−w2−1)+(w1−1)(w_3-w_2-1)+(w_1-1). Write Δ=wq−w1−(q−1)\Delta=w_q-w_1-(q-1) for the sum of all gap excesses. The four-entry blocks and the small block use disjoint gaps. Thus the unused capacity before counting endpoints is at most Δ\Delta, w1+Δw_1+\Delta, 1+Δ1+\Delta, or w1−1+Δw_1-1+\Delta, respectively. Since w1≥1w_1\ge1, all four bounds are at most w1+Δw_1+\Delta. Adding the two endpoint units gives w1+Δ+2=wq−q+3=c−p+1≤A≤A+Bw_1+\Delta+2=w_q-q+3=c-p+1\le A\le A+B. In either construction the support has 3p−6≥2p3p-6\ge2p edges, so its cost is at most tt.

Lemma C.9. Every leaf-free graphic sequence on S=4nS=4n with p≥6p\ge6 and hp≥5h_p\ge5 has a planar realization.

Proof. Choose a counterexample with pp as small as possible. Proposition C.6 excludes p=6,7p=6,7, so p≥8p\ge8. Lemma C.4 gives a≤t+4a\le t+4, and Lemma C.8 rules out distinct core degrees. Choose the smallest repeated value gg. After removing two copies the core has p′=p−2≥6p'=p-2\ge6 vertices and degree sum H′=H−2g≥5p′H'=H-2g\ge5p'. To stay on the upper boundary we take t′=H′/2−2p′=t−g+4≥⌈p′/2⌉≥3t'=H'/2-2p'=t-g+4\ge\lceil p'/2\rceil\ge3. If the new maximum a′a' were at most p′+t′−1=Umax⁡−g+2p'+t'-1=U_{\max}-g+2, the reduced sequence would be graphic by Lemma C.1 and planaric by minimality. Since t′≥2t'\ge2, Lemma C.3 would then restore the equal pair. Hence Umax⁡−g+2<a′≤aU_{\max}-g+2<a'\le a. Since Umax⁡=p+t−1U_{\max}=p+t-1, integrality gives a+g≥p+t+2a+g\ge p+t+2. Together with a≤t+4a\le t+4, this gives g≥p−2g\ge p-2.

We claim a≥2p−4a\ge2p-4. This holds immediately if g≥2p−4g\ge2p-4. Otherwise remove a largest entry and one remaining copy of gg. Their removal leaves p−2p-2 entries of sum σ=H−a−g\sigma=H-a-g. Substituting 2t=H−4p2t=H-4p in 2(a+g)≥2(p+t+2)2(a+g)\ge2(p+t+2) yields a≥σ−g−2p+4a\ge\sigma-g-2p+4. Since g≥p−2≥6g\ge p-2\ge6 is the smallest repeated value, at most one five occurs, so σ≥6(p−2)−1\sigma\ge6(p-2)-1. Using g≤2p−5g\le2p-5 gives

a≥σ−g−2p+4≥2p−4.a\ge\sigma-g-2p+4\ge2p-4.

Now a+b−c≥a≥2p−4a+b-c\ge a\ge2p-4, so Lemma C.8(1) applies whenever b≥p−1b\ge p-1. Since b≥g≥p−2b\ge g\ge p-2, only b=g=p−2b=g=p-2 remains. Then a+g≥p+t+2a+g\ge p+t+2 and a≤t+4a\le t+4 force a=t+4a=t+4.

For this last case take K2∨Pp−2K_2\vee P_{p-2} and erase one edge from the second pole to the path. The second pole now has degree p−2=bp-2=b. The first pole needs A=a−p+1A=a-p+1 more incidences, and the path vertices need R=H−a−b−(4p−11)R=H-a-b-(4p-11) in total. As a=t+4a=t+4 and b=p−2b=p-2, we have R−A=4R-A=4. Each path vertex needs at least one incidence, since its target is at least five and its present degree at most four. Double two vertex-disjoint path edges and supply every remaining path incidence on its spoke to the first pole. The support has 3p−7≥2p3p-7\ge2p edges, so the subdivision count yields a realization with tt degree-two vertices.

Restoring degrees four and three on the upper boundary

We first prove by induction on p≥7p\ge7 that every leaf-free graphic sequence on the upper boundary with minimum core degree at least four is planar, with the sole exception of (47)(4^7). Proposition C.6 gives the base case p=7p=7. For p≥8p\ge8, Lemma C.9 covers minimum core degree at least five. Suppose then that hp=4h_p=4. If a=Umax⁡a=U_{\max}, put the other q=p−1q=p-1 core vertices on a cycle and add two endpoint-disjoint noncrossing chords. Its maximum degree is three. Attach leaves to raise the cycle vertices to the corresponding targets minus one. Since a=q+ta=q+t, precisely H−a−3q−4=tH-a-3q-4=t leaves are needed. The cone is the required simple plane graph. For a<Umax⁡a<U_{\max}, remove a four, leaving tt twos and maximum at most Umax⁡−1U_{\max}-1. The reduced sequence is graphic by Lemma C.1. The residual has n′≥p−1≥7n'\ge p-1\ge7 vertices and m′=2n′m'=2n' edges on the upper boundary. Hence m′<3n′−6m'<3n'-6, and Lemma C.2 restores the four in any planar realization. A nonplanar residual is possible only for p=8p=8 and core (47)(4^7). A square antiprism realizes (48)(4^8).

We now allow threes and induct on p≥8p\ge8. For a core containing a three, delete it and reduce the maximum aa by one. This leaves the number tt of twos unchanged. We have a≥5a\ge5 since H≥4pH\ge4p and the core contains a three. For p≥9p\ge9 a universal entry is unique, since two equal to Umax⁡U_{\max} would leave sum H−2Umax⁡=2p+2<3(p−2)H-2U_{\max}=2p+2<3(p-2). The reduced sequence has maximum at most Umax⁡−1U_{\max}-1 and at least eight core entries. It is therefore graphic by Lemma C.1 and planaric by induction. Lemma C.2 restores the three.

At p=8p=8 the reduction gives seven core entries and the new degree bound is Umax⁡−1U_{\max}-1. By Lemma C.1 the residual is graphic unless two original entries equal Umax⁡U_{\max}. In that case the other six sum to H−2Umax⁡=18H-2U_{\max}=18, so all six are threes. The original sequence has core (a,a,36)(a,a,3^{6}) and t=a−7t=a-7. It is realized by K2∨(3K2⊔tK1)K_2\vee(3K_2\sqcup tK_1), a subgraph of a double fan. If the residual is graphic and nonplanaric, Proposition C.6 gives the following possible reduced cores and their preimages.

Reduced coreOriginal core
(47)(4^{7})(5,46,3)(5,4^{6},3)
(6,52,34)(6,5^{2},3^{4})(7,52,35)(7,5^{2},3^{5}), (62,5,35)(6^{2},5,3^{5})
(63,34)(6^{3},3^{4})(7,62,35)(7,6^{2},3^{5})

Table 2 gives a realization for each of the four preimages with its required twos. This establishes the induction for the upper boundary.

The lower boundary Here t=H/2−2p+1t=H/2-2p+1. When a three occurs, delete it and lower a largest entry by one. We have a≥4a\ge4. If a=Umax⁡a=U_{\max} then it is unique since H−2Umax⁡=2p<3(p−2)H-2U_{\max}=2p<3(p-2). The reduced sequence still has tt twos, its maximum is at most Umax⁡−1U_{\max}-1, and it is graphic by Lemma C.1 since p−1≥6p-1\ge6. Induction on pp using Proposition C.6 and Lemma C.2 thus handles this case.

If all core entries are at least four, then t≥1t\ge1. When a=Umax⁡a=U_{\max} use a cycle on q=p−1q=p-1 with one chord, complete its degrees to the targets minus one by adding H−a−3q−2=tH-a-3q-2=t leaves, and cone. When a<Umax⁡a<U_{\max}, remove a single two. The resulting upper-boundary sequence has t−1t-1 twos and maximum at most Umax⁡−1U_{\max}-1, so it is graphic by Lemma C.1. The upper-boundary result just proved realizes it for p≥8p\ge8. Subdividing any edge restores the lost two and finishes the proof of Proposition C.7.

Restoring the leaves

Lemma C.10. Suppose a positive graphic sequence contains a one and its maximum entry DD is at least three. Delete a one, lower a maximum entry by one and reorder. The resulting positive sequence is graphic. If it is planaric, so is the original sequence.

Proof. In a realization let the chosen leaf zz have neighbor uu, and choose a vertex vv of degree DD. If u≠vu\ne v, then deg⁡(v)≥deg⁡(u)\deg(v)\ge\deg(u) and ∣N(v)∖{u}∣>∣N(u)∖{v,z}∣|N(v)\setminus\{u\}|>|N(u)\setminus\{v,z\}|. There is thus a w∈N(v)∖{u}w\in N(v)\setminus\{u\} adjacent to neither uu nor zz, with w≠zw\ne z. Replace zu,vwzu,vw by zv,uwzv,uw. The degrees are unchanged and zz can now be deleted. In the reverse construction a leaf can always be attached to the prescribed vertex in a planar embedding. □

Proof of Theorem 3.2. For δ≥4\delta\ge4 the conclusion is due to Bar-Noy et al. [3 Theorem 2]. By parity it remains to consider δ=2\delta=2. We induct on ℓ\ell. For ℓ=0\ell=0, Propositions C.6 and C.7 give the unique exception (45,2)(4^{5},2). Take ℓ>0\ell>0. If the maximum degree is at most two, every realization is planar. Otherwise Lemma C.10 gives a graphic residual with ℓ−1\ell-1 leaves and the same δ\delta, since (n,S,ℓ)(n,S,\ell) becomes (n−1,S−2,ℓ−1)(n-1,S-2,\ell-1). By induction we can attach the deleted leaf unless the residual is (45,2)(4^{5},2). The only entry we could raise to recover the deleted maximum is a four, so the original list is (5,44,2,1)(5,4^{4},2,1). To realize it, delete an edge abab from K4K_4 and draw the resulting graph with all vertices on the outer face. Attach a leaf xx to aa in that face, cone the resulting outerplane graph, and then attach a new leaf to bb. The cone vertex has degree five, the four original vertices have degree four and xx has degree two, as required. □

Proof of Theorem 3.3. We induct on ℓ\ell. Propositions C.6 and C.7 give the base case ℓ=0\ell=0, and the core cut count settles the first two classes of Theorem 3.3 for every ℓ\ell. Outside these classes take ℓ>0\ell> 0. Since H=4p+2t+ℓ>4pH = 4p + 2t + \ell> 4p, a maximum entry is at least five. Lemma C.10 thus preserves δ=0\delta= 0, pp, tt and the number of threes. If the residual is planaric, attaching the leaf finishes the construction. By induction we need only consider residuals in the last two classes of the theorem.

When ℓ=1\ell= 1 there are six such residuals. In reversing the deletion one may raise any entry that, after its increment, is a maximum. Table 1 lists all such choices. The middle column gives the degrees before the leaf was deleted, with that single leaf omitted. Each sequence in the last column is obtained by lowering a different vertex in the middle column. Attaching a leaf at the vertex just lowered in a planar realization of the alternative residual gives a planar realization of the predecessor.

EndpointPredecessor, omitting the leafAlternative residual
(5,44,3)(5,4^{4},3)(6,44,3)(6,4^{4},3)universal vertex
(52,43,3)(5^{2},4^{3},3)(52,43,3)(5^{2},4^{3},3)(52,42,32)(5^{2},4^{2},3^{2})
(55,3,22)(5^{5},3,2^{2})(6,54,3,22)(6,5^{4},3,2^{2})(6,53,4,3,22)(6,5^{3},4,3,2^{2})
(6,45,2)(6,4^{5},2)(7,45,2)(7,4^{5},2)universal vertex
(47)(4^{7})(5,46)(5,4^{6})(5,45,3)(5,4^{5},3)
(6,52,34)(6,5^{2},3^{4})(7,52,34)(7,5^{2},3^{4})universal vertex
(62,5,34)(6^{2},5,3^{4})(62,4,34)(6^{2},4,3^{4})
(63,34,2)(6^{3},3^{4},2)(7,62,34,2)(7,6^{2},3^{4},2)(7,6,5,34,2)(7,6,5,3^{4},2)

Table 1. First predecessors of the six remaining leaf-free exceptions.

The first alternative residual is realized by the double fan K2∨P4K_{2} \vee P_{4}. The other four have maximum degrees 6, 5, 6, 7 in table order and respective degree bounds Umax⁡=7,6,6,7U_{\max} = 7, 6, 6, 7. Each is therefore graphic by Lemma C.1 and planaric by the leaf-free classification. Attaching the leaf in each case realizes its predecessor.

The other three predecessors begin the families in part 3. For ℓ≥2\ell\ge2 the residual still has a leaf, so by induction it belongs to one of these families. Its universal vertex exceeds every other degree by at least two. Only that entry can be raised to recover a maximum, giving the next member of the same family. Conversely, every member is graphic by attaching leaves to the maximum of its leaf-free endpoint. In every realization the maximum is universal, so deleting its leaves recovers that endpoint. Its nonplanarity rules out a planar realization of the entire family.

Degree sequence012345678Faces
(6,46,2)(6,4^{6},2)4576265346131542062331605124076010
(6,54,32,22)(6,5^{4},3^{2},2^{2})16243505326147064150823807310201423411
(52,43,32)(5^{2},4^{3},3^{2})16352024361054406125314203019
(5,46,3)(5,4^{6},3)3675425763416042652301407103250110
(7,52,35)(7,5^{2},3^{5})1543762023451067320110540120760210
(62,5,35)(6^{2},5,3^{5})1657240327561340721430210650120110
(7,62,35,2)(7,6^{2},3^{5},2)17643250526781503462043022102011087111

Table 2 (PDF p. 21). Spherical rotation systems for the finite exceptions to the reductions.

Each column gives the neighbors of the indicated vertex in cyclic order. To trace a face, follow (u,v)(u,v) by (v,w)(v,w), where ww follows uu in the cyclic list at vv. The number ff of cycles of this permutation appears in the last column. Since n=m+f−2n = m + f - 2 in every row, capping the face walks with disks gives a sphere embedding.

Finding a realization by reading triangular faces

The states

For n≤3n \le3 enumerate the simple graphs. For n≥4n \ge4 reject entries above n−1n-1 and sums odd or above 6n−126n-12. Any planar realization extends to an edge-maximal simple plane graph TT on the same vertices, including isolates. Maximality rules out distinct components on a common face and consecutive edges at a cut vertex leading to different components of its deletion. Every face boundary is therefore a cycle. Among four consecutive corners, the two diagonals between alternate corners cannot both lie outside the face, so every face is triangular. Colour the original edges red and the added edges blue. The search tries possible faces and edge colours one at a time. A complete run reads f=2n−4f=2n-4 faces and counts each red edge at its first appearance.

An edge used by one face so far is open, and an edge used twice is sealed. The active vertices are the endpoints of the open edges. A state consists of the following data.

  1. The numbers of faces read and vertices introduced, together with the multiset of target degrees still to be assigned. We remove a vertex’s degree from this multiset only when the vertex ceases to be active.

  1. All open and sealed edges between active vertices. We retain a sealed edge to prevent a later face from creating a second edge with the same endpoints. The open edges are partitioned into blocks according to which component of the read-face dual contains their incident read face.

  1. The red degree accumulated at each active vertex. A red edge contributes at its first appearance.

We identify states under bijections of the active vertices preserving these data. The colour of a newly seen edge affects only its two endpoint counts, so the state need not store it separately.

To add a face, choose three distinct vertices, each active or previously unused. The choice is admissible only if no two are joined by a sealed edge. Any open side of the new face becomes sealed, while each previously absent side becomes an open edge and receives its colour. In the read-face dual the new face joins all the blocks it meets across old open edges, so we merge these blocks and include its new open sides in the resulting block. If it meets no block, it starts one. Once a block loses its last open edge, no further face can attach to it. We therefore allow this to happen only for the sole remaining block on the final step.

When a vertex loses its last open edge, its red degree is final. We remove one copy of that degree from the residual multiset, rejecting the step if none remains. We can now forget all sealed edges incident with the vertex, since a retired name is never used again. The search starts with an empty boundary, the entire input multiset and nn unused names. After ff steps it accepts if the sole face component has closed, all nn names have been used and the residual multiset is empty. Figure 5 illustrates the transition across a shared edge.

Figure 5. Two faces of a tetrahedral host. Thick edges are red, thin edges blue. Reading abdabd seals abab (double line) and introduces one red edge adad. In panel (b) the red counters at (a,b,c,d)(a,b,c,d) are (2,2,1,1)(2,2,1,1) and the four open edges form one block. The shared edge abab contributes only once.

What an accepting run represents

The states forget the cyclic order at each vertex. To recover a sphere at acceptance, we must rule out several disjoint fans of triangles meeting at a vertex.

Lemma D.1. For any sphere triangulation whose red subgraph has the input degrees, the unrestricted transitions accept every ordering of its faces. Conversely, every accepting run gives a simple planar realization of the input.

Proof. In a triangulation the faces around a vertex form a cycle. If some of them have been read and others have not, the cycle crosses from a read face to an unread face across an incident open edge. Consequently a vertex needed later is still available. The full face dual is connected, so every proper component of read faces has an open edge. A true face ordering obeys all transition and retirement rules.

Conversely, follow an accepting run, assigning a different permanent name to every introduced vertex. A pair of active vertices cannot reopen a sealed edge, and a pair with a retired endpoint cannot occur again. Each edge thus has exactly two occurrences at closure. The transition tests do allow two face instances with the same unordered triple of corners. Those two faces would use up both occurrences of all three sides and hence form an entire component of the face dual. At acceptance the dual is connected and f=2n−4≥4f=2n-4\ge4, so no triple is repeated.

Glue the triangles along paired sides, matching their named endpoints. The interior of every edge has a disk neighbourhood. To examine a vertex, consider its link, with one vertex for each incident edge and one edge for each face corner. Since every side occurs twice, every vertex of the link has degree two. The link is therefore a disjoint union of circles. Splitting the original vertex into one copy per circle gives each copy a disk neighbourhood, and faces sharing an edge still share it after splitting. The connected face dual thus gives a connected closed surface.

If splitting adds hh vertices, the surface has n+hn+h vertices, 3f/23f/2 edges and ff faces. Its Euler characteristic is

n+h−3f/2+f=2+h.n+h-3f/2+f=2+h.

By the classification of compact surfaces, a connected closed surface has Euler characteristic at most two, and equality characterizes the sphere, with or without an orientability assumption. Hence h=0h=0 and the gluing itself lies on the sphere. Distinct corners and the pair rule give a simple graph. Its red subgraph realizes the input because each red edge was counted once at each endpoint and every vertex retired exactly once.

A boundary catalogue independent of the host

A given embedding supplies boundaries for a surface decomposition [25]. For triangulating a prescribed point set, Lingas [22] and Marx and Miltzow [24] choose separators from the given points. For degree realization the catalogue must be built from nn alone.

Lemma D.2 (Boundary catalogue). For every n≥4n\ge4 there is a deterministic 2O(n)2^{O(\sqrt n)}-time algorithm that, given nn, lists at most 2O(n)2^{O(\sqrt n)} records of O(n)O(\sqrt n) bits each. For every red-blue sphere triangulation on nn vertices, its faces admit an order in which each prefix has a matching record. A match is a bijection from the active vertices of the prefix to those of the record that preserves the current red degrees, the open and retained sealed edge sets, and the partition of the open edges into read-face components.

Proof. Choosing the order. An unweighted separator bounds the number of vertices we must remember. Charging each of them ⌈log⁡2n⌉\lceil\log_2 n\rceil bits would still leave a logarithmic factor in the exponent. We charge vertex vv of the host TT only c(v)=⌈log⁡2(2+deg⁡T(v))⌉c(v)=\lceil\log_2(2+\deg_T(v))\rceil, enough to store any red degree it can attain, and give it weight w(v)=c(v)2w(v)=c(v)^2. Since c(v)2≤9(deg⁡T(v)+1)c(v)^2\le9(\deg_T(v)+1) and ∑vdeg⁡T(v)=6n−12\sum_v\deg_T(v)=6n-12, we have w(T)≤63nw(T)\le63n.

The vertex separator theorem of Aleksandrov et al. [1 Theorem 2] applies to any planar graph HH with nonnegative vertex costs and weights. For 0<t<10<t<1 it gives a set of cost at most 42∑v∈Hc(v)2/t4\sqrt{2\sum_{v\in H}c(v)^2}/t whose removal leaves each component with weight at most t w(H)t\,w(H). With the weights above and t=1/2t=1/2, this costs at most 8w(H)8\sqrt{w(H)}. Recurse on the remaining components, assigning every removed vertex to the node where it is removed. The weights are positive and halve at each step. The sum of the separator costs along a root-to-leaf path is therefore bounded by

8w(T)∑i≥02−i/2=O(n).(4)8\sqrt{w(T)}\sum_{i\ge0}2^{-i/2}=O(\sqrt{n}). \tag*{(4)}

Vertices assigned to incomparable nodes lie in different components after their last common separator is removed. Hence the endpoints of an edge belong to comparable nodes, and the three nodes containing the corners of a face lie on one path. Assign each face to the deepest of these nodes and read the faces at each node before visiting its children in depth-first order. While reading the faces at zz, every vertex in a completed side branch has seen all its incident faces, and every vertex in an untouched subtree has seen none. The active vertices therefore lie on the separators along the path to zz. If there are bb such vertices and rvr_v is the current red degree of vv, then rv≤deg⁡T(v)r_v\le\deg_T(v) gives

b≤∑v active⌈log⁡2(2+rv)⌉=O(n).b\le\sum_{v\ \mathrm{active}}\left\lceil\log_2(2+r_v)\right\rceil=O(\sqrt{n}).

Encoding the boundary. Let JJ consist of the retained edges on the bb active vertices, with s=∣E(J)∣≤3bs=|E(J)|\le3b. Subdivide its edges at their midpoints. To encode the open-edge partition in the same plane drawing, cut the read-face dual wherever it crosses JJ. Each cut-dual component now joins read face centres only through unretained sides, so it can be contracted disjointly from JJ. Keep the components incident with JJ and draw a spoke from each retained side’s midpoint to the component of each incident read face. An open midpoint has one spoke and a sealed midpoint has two, with duplicate spokes suppressed. Passing through a sealed midpoint restores exactly the dual adjacency cut there. Thus two open midpoints are joined by a path of spokes precisely when their read faces were connected. The marked plane graph has 2s2s primal segments, at most 2s2s spokes and O(b)O(b) vertices.

As long as the drawing is disconnected, some face has vertices from two components on its boundary. Join such a pair by an arc inside the face and mark the new edge for deletion. Each step reduces the component count by one and preserves planarity. There are at most b+3sb+3s vertices, so the connected drawing still has only e=O(b)e=O(b) edges. Choose a spanning tree and a root corner. A clockwise tour of the tree records an opening and a closing symbol for each tree edge, with a placeholder at every non-tree half-edge encountered on the tour. Cutting the sphere along the tree leaves a disk whose boundary follows this tour. The non-tree edges run through that disk as disjoint arcs, so their endpoints form a noncrossing matching of the placeholders. Writing an opening symbol at the first endpoint of each arc and a closing symbol at the second uniquely records the matching, since each closing symbol pairs with the most recent unmatched opening. Together the two words specify the tree, the corner of every placeholder and the edge incident there.

Prefix each word of ℓ\ell symbols with 1ℓ01^\ell0. The rooted tour numbers vertices and edges by their first occurrence, with the root vertex first. In this order, append two bits per vertex for its type (original, open midpoint, sealed midpoint or dual component) and two per edge for its type (primal segment, spoke or bridge). The two words and the marks take O(e+1)O(e+1) bits. Finally, for each active vertex append the kvk_v binary digits of rv+1r_v+1 preceded by 1kv01^{k_v}0, where kv=⌊log⁡2(2+rv)⌋k_v=\lfloor\log_2(2+r_v)\rfloor. These fields take at most 3∑vkv3\sum_v k_v bits. One initial bit distinguishes the empty drawing. The size bound on ee and (4) give a fixed constant CC for which the whole record fits in C⌈n⌉C\lceil\sqrt{n}\rceil bits.

Enumerating all strings up to this length gives the catalogue. A string must decode in full into the two words, their tree traversal and matching, and the required marks and counters. After the bridges are deleted, every primal segment must join an original vertex to a midpoint. Exactly two such segments must meet each midpoint, with distinct original endpoints, and no two midpoints may give the same endpoint pair. Every original vertex must meet an open midpoint. Spokes join midpoints to component vertices, with one spoke at an open midpoint, one or two at a sealed midpoint, and at least one at each component vertex. The open midpoints in each connected component of the spoke subgraph form a block whenever this set is nonempty. We require at most nn original vertices and one counter in [0,n−1][0,n-1] for each. These tests take polynomial time per string. The surviving records, including the empty boundary, form the allowed table in any fixed order. Several records may represent the same boundary, and some may occur in no triangulation. The construction above ensures that every prefix of the chosen face order has a record in the table.

Using the catalogue. Assign each proposed successor the index of its first isomorphic record, discarding it if none matches. Suppose two prefixes agree on the counts and residual multiset, and their active data are isomorphic. For any next face, the isomorphism identifies its active corners. Equal numbers of unused names let us pair the fresh corners and give the new edges the same colours. Both steps then merge corresponding blocks, remove the same degrees and again have isomorphic active data. Induction shows that the prefixes admit the same continuations, so one history per state suffices. Each retained history consists of actual transitions, and Lemma D.1 applies if it accepts.

Counting states and recovering the graph

The data to be compared have a natural representation by a coloured incidence graph. Its four colour classes distinguish active vertices, open edges, sealed edges and blocks, with the first class further refined by current red degree. Each edge vertex is adjacent to its two endpoints, and each open-edge vertex also to its block. Colour-preserving isomorphism of these graphs is precisely equivalence of the active data. The plane drawing also gives a short path decomposition for this comparison.

Let K=4C⌈n⌉K = 4C\lceil\sqrt{n}\rceil, an upper bound on the sizes of the decoded drawings and incidence graphs. For a true boundary, apply the separator theorem to its plane drawing with unit costs and weights. Visit the recursion tree in depth-first order, with a bag at each node containing its separator and all ancestor separators. A vertex occurs precisely during the visit to its subtree, and the ends of every edge share a bag. The geometric sum in (4) now bounds the bag size by O(K)O(\sqrt{K}).

To pass to the incidence graph, delete the temporary bridges and split each midpoint into two copies in every bag containing it. Give one copy the two primal segments and the other its spokes. Link the copies of an open midpoint, whose edge needs a block incidence. Leave the copies of a sealed midpoint unlinked. Contract each connected component of the spoke subgraph to one vertex, keeping it as a block only if it contains an open midpoint. The bags meeting a connected subgraph form an interval, so the contraction preserves the path decomposition. The splitting at most doubles the bag size. Write ww for twice the ceiling of 8K/(1−1/2)8\sqrt{K}/(1-1/\sqrt{2}), an upper bound on the resulting bag size.

Order the vertices by their last bag, breaking ties arbitrarily. At the end of any nonempty prefix, every unprocessed neighbour of a processed vertex belongs to the last bag of the most recently processed vertex. Thus the prefix has at most ww external neighbours. We can find an order with this property by a subset search, extending a reached set by one vertex whenever the enlarged set has at most ww external neighbours. Keeping one order per reached set costs 2O(K)2^{O(K)} time per pattern. We discard patterns with more than KK vertices or with no such order. Every boundary required for completeness survives these tests.

To compare a surviving pattern PP with a candidate HH, first check that their orders and edge counts agree. For each X⊆V(H)X \subseteq V(H) count the colour-preserving homomorphisms P→H[X]P \to H[X]. In the saved order v1,…,vkv_1,\ldots,v_k of PP, let Si={v1,…,vi}S_i = \{v_1,\ldots,v_i\} and let Bi=N(Si)∖SiB_i = N(S_i) \setminus S_i be its external neighbours. For each assignment on BiB_i, store the number of extensions to SiS_i preserving the colours there and the edges incident with SiS_i. Since Bi−1∖{vi}⊆BiB_{i-1} \setminus\{v_i\} \subseteq B_i, an assignment on BiB_i and a choice for the image of viv_i supply the entire preceding table key. Check the colour of viv_i and its edges to later neighbours, and sum over its possible images. This costs KO(w+1)K O(w+1) time for each XX.

Inclusion–exclusion over XX counts the maps onto V(H)V(H). With equal orders these maps are bijections, and with equal edge counts they are isomorphisms. Even the sum of the absolute values in the inclusion–exclusion calculation is at most 2KKK2^K K^K for K≥1K \ge1. We thus need only O(Klog⁡(K+2))O(K \log(K+2)) bits per integer. Since K=O(n)K = O(\sqrt{n}) and w=O(K)=O(n1/4)w = O(\sqrt{K}) = O(n^{1/4}), the bag factor is 2O(n1/4log⁡n)=2O(n)2^{O(n^{1/4}\log n)} = 2^{O(\sqrt{n})}. A comparison, successful or otherwise, takes Q(n)=2O(K)KO(w+1)=2O(n)Q(n) = 2^{O(K)}K^{O(w+1)} = 2^{O(\sqrt{n})} time.

The positive entries of the residual multiset form a partition of an integer at most 6n6n, while the number of zeros can take at most n+1n+1 values. Write p(m)p(m) for the ordinary partition number. The Hardy–Ramanujan asymptotic formula [15] gives p(m)=exp⁡(O(m))p(m) = \exp(O(\sqrt{m})), and hence P(6n)=∑m=06np(m)=2O(n)P(6n) = \sum_{m=0}^{6n} p(m) = 2^{O(\sqrt{n})}. If AA is the allowed-table length, the number SS of possible state keys is at most (f+1)(n+1)2P(6n)A=2O(n)(f+1)(n+1)^2P(6n)A = 2^{O(\sqrt{n})}, including the introduced-vertex count and the multiplicity of zero.

There are f+1f+1 layers indexed by the number of faces read and at most SS keys per layer. Keep one history with permanent labels in [n][n] per key. Each has at most 8n38n^3 extensions, one for each choice of corners and edge colours. Finding the first matching catalogue record costs at most AQ(n)AQ(n) per extension. Its index, the global counts and the residual multiset identify the successor. Scanning the next layer for this key costs SnO(1)Sn^{O(1)}, since a history has at most 2n−42n-4 faces and takes polynomial time to copy or update. Together these costs give 2O(n)2^{O(\sqrt{n})} time. An accepting history records every red edge at its first appearance. Matching final degrees to equal input entries recovers the edges on the given labels.

On a deterministic multitape Turing machine, a first scan tallies the entries to obtain nn. A second scan skips leading zeros, records all-zero entries as zero, and rejects a positive entry as soon as its significant part exceeds n−1n-1. Only O(log⁡(n+1))O(\log(n+1)) significant bits per entry need examination or storage. The scans take O(L)+nO(1)O(L)+n^{O(1)} steps. All subsequent tables and histories together use 2O(n)2^{O(\sqrt{n})} bits, so even a full tape scan per table access multiplies the search time by at most 2O(n)2^{O(\sqrt{n})}. This proves Theorem 1.2.

Corollary D.3. The potentially planar degree multisets on nn vertices can be listed without repetition in 2O(n)2^{O(\sqrt{n})} total time. Their number is 2Θ(n)2^{\Theta(\sqrt{n})}.

Proof. Generate the partitions of integers at most 6n6n with at most nn parts by appending parts in nonincreasing order. Each prefix is itself a partition in the same range. Pad with zeros and apply Theorem 1.2 to each of the 2O(n)2^{O(\sqrt{n})} candidates. For n≥2n \ge2, trees alone give p(n−2)p(n-2) different multisets. Pad a partition of n−2n-2 to length nn and take the resulting entries as the label multiplicities in a Prüfer word. The tree degrees recover those entries by subtracting one. The partition asymptotic [15] gives the claim. □

Data and acknowledgements. The Lean 4 companion [27] indexes the formal results by theorem number and includes scripts for the finite enumerations. The interval rule, the search algorithm and the arithmetic criterion use the canonical-ordering theorem, the cost-weight planar separator theorem and the weighted matrix-tree theorem, respectively, as explicit hypotheses in Lean. We thank the members of The Kai Project for discussions on AI-assisted verification.

Declaration of generative AI use. We used OpenAI Codex (including GPT-6.2 Astra for the sparse classification) to develop and check proofs, search the literature, draft and edit the manuscript, and write Lean, Python and TikZ code. We take responsibility for the contents of this paper.

References

  1. [1]L. Aleksandrov, H. Djidjev, H. Guo and A. Maheshwari, Partitioning planar graphs with costs and weights, ACM J. Exp. Algorithmics 11 (2006 volume, published 2007), Article 1.5, Definition 1 and Theorem 2.
  2. [2]A. Bar-Noy, T. Böhnlein, D. Peleg, Y. Ran and D. Rawitz, Sparse graphic degree sequences have planar realizations, in MFCS 2024, LIPics 306 (2024), 18:1–18:17.
  3. [3]A. Bar-Noy, T. Böhnlein, D. Peleg, Y. Ran and D. Rawitz, Sparse graphic degree sequences have planar realizations, J. Graph Theory 113 (2026), 571–594.
  4. [4]J. A. Bondy and U. S. R. Murty, Graph Theory with Applications, Macmillan, 1976, Appendix IV, Problem 35.
  5. [5]G. Böttger and H. Harders, Note on a problem by S. L. Hakimi concerning planar graphs without parallel elements, J. Soc. Indust. Appl. Math. 12 (1964), 838–839.DOI
  6. [6]G. Brinkmann and B. D. McKay, Fast generation of planar graphs, MATCH Commun. Math. Comput. Chem. 58 (2007), 323–357. plantri, version 5.8.
  7. [7]V. Chvátal, D. A. Klarner and D. E. Knuth, Selected combinatorial research problems, Stanford CS-TR-72-292 (1972), Problem 24.
  8. [8]H. de Fraysseix, J. Pach and R. Pollack, How to draw a planar graph on a grid, Combinatorica 10 (1990), 411–51.DOI
  9. [9]J. Edmonds, Minimum partition of a matroid into independent subsets, J. Res. Nat. Bur. Standards Sect. B 69B (1965), 67–72.
  10. [10]P. Erdős and T. Gallai, Gráfok előírt fokszámú pontokkal, Mat. Lapok 11 (1960), 264–274.
  11. [11]S. Fanelli and C. Zaffiri, Un algoritmo per la caratterizzazione della non planarità di partizioni grafiche massimali, Calcolo 23 (1986), 305–326.DOI
  12. [12]M. R. Garey and D. S. Johnson, Computers and Intractability, W. H. Freeman, 1979, Section 4.2 and Problem SP15.
  13. [13]S. L. Hakimi, On realizability of a set of integers as degrees of the vertices of a linear graph. I, J. Soc. Indust. Appl. Math. 10 (1962), 496–506.DOI
  14. [14]S. L. Hakimi, On realizability of a set of integers as degrees of the vertices of a linear graph, II. Uniqueness, J. Soc. Indust. Appl. Math. 11 (1963), 135–147.DOI
  15. [15]G. H. Hardy and S. Ramanujan, Asymptotic formulae in combinatory analysis, Proc. London Math. Soc. (2) 17 (1918), 75–115.
  16. [16]V. Havel, Poznámka o existenci konečných grafů, Časopis Pěst. Mat. 80 (1955), 477–480.
  17. [17]J. Hopcroft and R. Tarjan, Efficient planarity testing, J. ACM 21 (1974), 549–568.DOI
  18. [18]M. Kang and M. Loebl, The enumeration of planar graphs via Wick’s theorem, Adv. Math. 221 (2009), 1703–1724.arxiv.org/abs/math/0605218
  19. [19]Z. Király, Recognizing graphic degree sequences and generating all realizations, Tech. Rep. TR-2011-11, Egerváry Research Group, Budapest, 2011.
  20. [20]S. Klee and M. T. Stamps, Linear algebraic techniques for weighted spanning tree enumeration, Linear Algebra Appl. 582 (2019), 391–402.DOI
  21. [21]J. Kratochvíl and M. Vaner, A note on planar partial 3-trees, arXiv:1210.8113, 2012.arxiv.org/abs/1210.8113
  22. [22]A. Lingas, Subexponential-time algorithms for minimum weight triangulations and related problems, in Proc. 10th Canadian Conference on Computational Geometry, 1998.
  23. [23]R. W. Maffucci, Constructing certain families of 3-polytopal graphs, J. Graph Theory 102 (2023), 484–501.arxiv.org/abs/2105.00022
  24. [24]D. Marx and T. Miltzow, Peeling and nibbling the cactus: subexponential-time algorithms for counting triangulations and related problems, in SoCG 2016, LIPics 51, Article 52.
  25. [25]J. Rué, I. Sau and D. M. Thilikos, Dynamic programming for graphs on surfaces, ACM Trans. Algorithms 10 (2014), Article 8, 1–26.
  26. [26]E. F. Schmeichel and S. L. Hakimi, On planar graphical degree sequences, SIAM J. Appl. Math. 32 (1977), 598–609.DOI
  27. [27]Z. Zhang and R. Tian, Recognizing potentially planar degree sequences, Lean 4 proofs and verification scripts, 2026, GitHub revision 1571a7a24790.arxiv.org/abs/2611.32060

Paper details

vlnc:W_4g4um7bc
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents