Ordered Level Planarity
- Ordered Level Planarity is a graph drawing model where vertices are assigned fixed levels and prescribed left-to-right positions, enforcing strict planar y-monotone curves.
- The problem is NP-complete even with maximum degree 2 and level-width 2, while specific cases such as single-vertex levels or proper instances are solvable in linear time.
- The rigid ordering not only complicates the drawing process but also underpins the computational hardness of related problems like Geodesic, Manhattan, and Bi-Monotonicity planarity.
Searching arXiv for the target paper and closely related graph-drawing context. {} Ordered Level Planarity is the fully position-constrained analogue of Level Planarity: vertices are assigned both levels and prescribed left-to-right positions, and every edge must be drawn as a planar -monotone curve. In this formulation, the ordered constraint is not a cosmetic refinement of ordinary level drawing; it changes the complexity landscape decisively. The problem is -complete even for instances with maximum degree and level-width , while several sharply delimited subclasses remain linear-time solvable. The same ordered rigidity also serves as a hardness source for Geodesic Planarity, Manhattan Geodesic Planarity, Bi-Monotonicity, T-Level Planarity, Clustered Level Planarity, and Constrained Level Planarity (Klemz et al., 2017).
1. Formal model and the ordered constraint
A level graph is a directed graph
with a surjective level assignment
such that
The -th level is
its width is
and the level-width is
0
A level planar drawing places each vertex 1 on the horizontal line
2
with 3, and draws each edge 4 as a 5-monotone curve from 6 to 7 without crossings (Klemz et al., 2017).
Ordered Level Planarity adds a prescribed left-to-right position on each level. An ordered level graph is
8
where 9 is a level graph and
0
is a level ordering such that, for each level 1, the restriction of 2 to 3 is a bijection onto
4
An ordered level planar drawing is then a level planar drawing in which every vertex 5 is placed at the prescribed coordinates
6
This is the essential distinction from standard Level Planarity. Ordinary Level Planarity fixes only the 7-coordinates via 8; Ordered Level Planarity fixes both the 9-coordinate through 0 and the left-to-right order, equivalently the 1-coordinate, through 2. The paper stresses that 3 and 4 are merely encodings of total and partial orders: the problem is unchanged if one lets them map to arbitrary reals, or if one requires only that vertices on each level appear in the prescribed total order rather than at exact integer coordinates. A level graph is called proper if
5
2. Complexity dichotomy
The central theorem is a sharp dichotomy in terms of maximum degree and level-width. Ordered Level Planarity is 6-complete even for maximum degree
7
and level-width
8
By contrast, three regimes are linear-time solvable: the case 9, the case
0
and proper instances (Klemz et al., 2017).
The hard side is unusually strong. The first reduction yields instances of degree at most 1, and a separate width-reduction lemma converts them to width 2. The construction also has a more refined property: all vertices on levels of width at least 3 can be arranged to have out-degree at most 4 and in-degree at most 5. Thus hardness does not arise from high local branching or from wide levels alone; it survives after both parameters are tightly constrained.
The easy side isolates exactly those situations where the prescribed order does not create enough combinatorial rigidity to encode crossings or choices. If 6, each level contains only one vertex, so Ordered Level Planarity collapses to Level Planarity on a graph with one vertex per level. If
7
the graph is a disjoint union of 8-monotone directed paths, and the remaining problem is only to decide a consistent global left-to-right ordering of those paths. If the instance is proper, all interactions are local between consecutive levels, and a sweep through the levels suffices.
These results identify the negative corner of the landscape precisely: prescribing a total order on each level is algorithmically harmless only under strong structural restrictions, while width 9 and degree 0 already suffice for 1-completeness.
3. NP-completeness proof architecture
The hardness reduction is from Planar Monotone 3-Satisfiability. The source instance is given by a monotone 3SAT formula together with a monotone rectilinear representation 2 of the variable-clause graph: variables are horizontal segments on a line 3, positive clauses lie above 4, negative clauses lie below 5, and clauses are represented by rotated E-shapes. From such an instance 6, the construction builds an ordered level graph
7
with four tiers of levels,
8
Each clause 9 is represented by a clause edge
0
from tier 1 to tier 2. The geometric idea is a rigid system of tunnels: each clause edge must pass through one tunnel corresponding to one literal of its clause, while each variable gadget blocks either the positive or the negative tunnel family for that variable (Klemz et al., 2017).
Tier 3 contains clause gadgets. Each gadget has 4 vertices and three distinguished segments, the gates
5
The gadget, without its clause edge, has a unique ordered level planar drawing in the sense that on every level the left-to-right sequence of vertices and intersected edges is fixed. Because of this rigidity, the clause edge must pass through exactly one of the three gates, corresponding to one of the clause’s literals. This is the first decisive use of the ordered constraint: the prescribed order forces a unique combinatorial layout.
Tier 6 merges gates belonging to the same literal into literal tunnels. For variable 7, the paper denotes the positive and negative tunnels by
8
A clause edge is drawn in such a tunnel when it lies in the region between the two paths defining that tunnel. After leaving its clause gadget, the clause edge must continue inside the chosen literal tunnel.
The variable gadgets occupy tiers 9 and 0. They are nested: they start in the order
1
in 2 and end in reverse order in 3. The long edge
4
must be drawn either to the left or to the right of a designated vertex 5 in 6, and this choice propagates through the construction. In one state the gadget blocks 7, and in the other state it blocks 8. The blocking is enforced by edges such as
9
together with the fixed vertex order. The outcome is that for each variable exactly one corridor family remains usable: either positive clauses may route through 0, or negative clauses may route through 1, but not both.
Tier 2 is largely technical. It contains 3 levels, one terminal vertex 4 per level, with
5
Because each such level contains only one vertex, arrivals there impose no further ordering constraints.
Correctness is bidirectional. From a drawing, one sets 6 if 7 is blocked and 8 otherwise. Every clause edge must choose one of its gates and then a corresponding literal tunnel, and that tunnel is usable only if the associated literal is true. Conversely, from a satisfying assignment, one draws the nested variable gadgets according to the truth values, leaves the appropriate tunnel family unblocked, and routes each clause edge through a gate and tunnel associated with a true literal. The fixed order is indispensable throughout: without it, standard Level Planarity could permute vertices on levels and destroy the tunnel-and-barrier mechanism.
4. Linear-time regimes
The tractable subclasses all arise from strong structural simplifications. When
9
the graph is a set 0 of disjoint 1-monotone paths. The paper defines a precedence relation on paths: 2 if 3 have vertices 4 on a common level with
5
This means that 6 must be drawn to the left of 7. If 8 is acyclic, a linear extension provides a feasible left-to-right ordering of the paths and hence a drawing; if 9 contains a cycle, no drawing exists. The test is executable in
00
time by topological sorting (Klemz et al., 2017).
When 01, there is no left-right choice at all. Ordered Level Planarity reduces to ordinary Level Planarity on a graph with one vertex per level, so the case is linear-time solvable.
For proper instances, the paper states that Ordered Level Planarity is solvable in linear time by sweeping through the levels. The structural reason is localness: every edge connects consecutive levels, so the interaction pattern can be checked incrementally. This suggests that the source of hardness in the general problem is not only fixed order, but fixed order together with long-range edge interactions across multiple levels.
5. Geodesic Planarity and Bi-Monotonicity
A major consequence of the ordered framework is that it transfers hardness to fixed-position drawing problems. A Geodesic Planarity instance is
02
where 03 prescribe vertex positions and 04 is a finite direction set symmetric with respect to the origin. A drawing is geodesic with respect to 05 if each edge is a polygonal path using two adjacent directions from 06. The paper proves that for every symmetric direction set 07 with
08
Geodesic Planarity is 09-hard, even when the graph is a perfect matching and the prescribed coordinates are in general position (Klemz et al., 2017).
The reduction proceeds in two steps. First, an Ordered Level Planarity instance with
10
is sheared by translating vertices on level 11 by 12 units to the right. This preserves the encoded left-right constraints while making every edge segment have positive slope; in the Manhattan case it can then be replaced by a nearby orthogonal 13-geodesic path. Second, each vertex 14 is split into a small gadget placed in a square 15 centered at
16
Incident edges are attached to degree-17 vertices near the square’s corners, and an additional blocking edge is inserted from top-left to bottom-right. Every non-blocking edge runs from bottom-left to top-right, so it cannot pass through another gadget square without crossing that square’s blocking edge. This localizes the geometry and turns the graph into a perfect matching.
The result applies in particular to Manhattan Geodesic Planarity, where 18 consists of the four horizontal and vertical directions. Katz, Krug, Rutter, and Wolff had claimed polynomial-time solvability for perfect matchings, but the hardness theorem implies that this is incorrect unless
19
Bi-Monotonicity asks for a planar drawing with fixed vertex positions in which every edge is both 20-monotone and 21-monotone. The paper notes that every 22-geodesic rectilinear path can be transformed into a bi-monotone curve and vice versa. Hence the Manhattan reduction immediately yields: 23 Ordered Level Planarity is therefore not only a graph-drawing problem in its own right, but also a hardness core for several fixed-position variants.
6. Ordered Level Planarity inside broader constrained level models
Ordered Level Planarity is a very restricted special case of several broader level-drawing models, so its hardness results strengthen earlier negative results for those settings. The reduction to Constrained Level Planarity is immediate: Ordered Level Planarity is exactly the case in which the allowed order on each level is a single total order (Klemz et al., 2017).
For T-Level Planarity, each level 24 is equipped with a tree 25, and leaves in each subtree must appear consecutively. The paper reduces Ordered Level Planarity to T-Level Planarity by first ensuring width 26, then adding two global paths 27 and 28 intended to stay to the left and right of the original vertices, and choosing the level trees so that the designated vertex 29 must be consecutive with the left anchor 30 and 31 with the right anchor 32. Any T-level planar drawing then forces 33 to lie left of 34 on every level, thereby recovering the ordered constraint.
For Clustered Level Planarity, the reduction uses only two non-trivial clusters,
35
After padding levels if necessary, the designated vertices 36 and 37 are assigned so that 38 contains all 39 and 40 contains all 41. The edges are heavily subdivided to satisfy cluster-boundary crossing rules. Because the two cluster regions pass through every level and cannot intersect or nest improperly, one may assume 42 is always left of 43, so the ordered constraint is encoded by cluster membership. This yields the consequence that Clustered Level Planarity remains 44-hard even for flat hierarchies with only two non-trivial clusters, answering a question posed by Angelini, Da Lozzo, Di Battista, Frati, and Roselli.
The overall significance is structural. Standard Level Planarity is polynomial-time solvable, but fixing a total order on every level removes exactly the flexibility that makes the ordinary problem tractable. In the ordered setting, levels become rigid corridors, clause gadgets become unique, tunnels become unavoidable, and variable gadgets can block whole route families. This suggests that Ordered Level Planarity is a minimal rigid form of level drawing: once the per-level order is prescribed, Boolean choice and clause satisfaction can already be encoded within degree-45, width-46 instances.