---
title: Ordered Level Planarity
url: https://www.emergentmind.com/topics/ordered
type: topic
---

# Ordered Level 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 \(y\)-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 \(\mathcal{NP}\)-complete even for instances with maximum degree \(\Delta=2\) and level-width \(\lambda=2\), 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 [1708.07428].

## 1. Formal model and the ordered constraint

A level graph is a directed graph
\[
\mathcal G=(G,\gamma), \qquad G=(V,E),
\]
with a surjective level assignment
\[
\gamma:V\rightarrow \{0,\dots,h\},
\]
such that
\[
\gamma(u)<\gamma(v)\quad \text{for every edge }(u,v)\in E.
\]
The \(i\)-th level is
\[
V_i=\{v\mid \gamma(v)=i\},
\]
its width is
\[
\lambda_i=|V_i|,
\]
and the level-width is
\[
\lambda=\max_i \lambda_i.
\]
A level planar drawing places each vertex \(v\) on the horizontal line
\[
L_i:=\{(x,y)\mid y=i\}
\]
with \(i=\gamma(v)\), and draws each edge \((u,v)\) as a \(y\)-monotone curve from \(u\) to \(v\) without crossings [1708.07428].

Ordered Level Planarity adds a prescribed left-to-right position on each level. An ordered level graph is
\[
\mathcal G=(G=(V,E),\gamma,\chi),
\]
where \((G,\gamma)\) is a level graph and
\[
\chi:V\rightarrow \{0,\dots,\lambda-1\}
\]
is a level ordering such that, for each level \(V_i\), the restriction of \(\chi\) to \(V_i\) is a bijection onto
\[
\{0,\dots,\lambda_i-1\}.
\]
An ordered level planar drawing is then a level planar drawing in which every vertex \(v\) is placed at the prescribed coordinates
\[
(x(v),y(v))=(\chi(v),\gamma(v)).
\]

This is the essential distinction from standard Level Planarity. Ordinary Level Planarity fixes only the \(y\)-coordinates via \(\gamma\); Ordered Level Planarity fixes both the \(y\)-coordinate through \(\gamma\) and the left-to-right order, equivalently the \(x\)-coordinate, through \(\chi\). The paper stresses that \(\chi\) and \(\gamma\) 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
\[
\gamma(v)=\gamma(u)+1 \quad \text{for every edge }(u,v)\in E.
\]

## 2. Complexity dichotomy

The central theorem is a sharp dichotomy in terms of maximum degree and level-width. Ordered Level Planarity is \(\mathcal{NP}\)-complete even for maximum degree
\[
\Delta=2
\]
and level-width
\[
\lambda=2.
\]
By contrast, three regimes are linear-time solvable: the case \(\lambda=1\), the case
\[
\Delta^+=\Delta^-=1,
\]
and proper instances [1708.07428].

The hard side is unusually strong. The first reduction yields instances of degree at most \(2\), 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 \(1\) and in-degree at most \(1\). 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 \(\lambda=1\), each level contains only one vertex, so Ordered Level Planarity collapses to Level Planarity on a graph with one vertex per level. If
\[
\Delta^+=\Delta^-=1,
\]
the graph is a disjoint union of \(y\)-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 \(2\) and degree \(2\) already suffice for \(\mathcal{NP}\)-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 \(\mathcal R\) of the variable-clause graph: variables are horizontal segments on a line \(\ell\), positive clauses lie above \(\ell\), negative clauses lie below \(\ell\), and clauses are represented by rotated E-shapes. From such an instance \(\varphi\), the construction builds an ordered level graph
\[
\mathcal G=(G,\gamma,\chi)
\]
with four tiers of levels,
\[
\mathcal T_0=\{0,\dots,l_0\},\quad \mathcal T_1=\{l_0+1,\dots,l_1\},\quad \mathcal T_2=\{l_1+1,\dots,l_2\},\quad \mathcal T_3=\{l_2+1,\dots,l_3\}.
\]
Each clause \(c_i\) is represented by a clause edge
\[
e_i=(c_i^s,c_i^t)
\]
from tier \(\mathcal T_0\) to tier \(\mathcal T_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 [1708.07428].

Tier \(\mathcal T_0\) contains clause gadgets. Each gadget has \(11\) vertices and three distinguished segments, the gates
\[
v_1'v_6,\quad v_2'v_7,\quad v_3'v_8.
\]
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 \(\mathcal T_1\) merges gates belonging to the same literal into literal tunnels. For variable \(u_j\), the paper denotes the positive and negative tunnels by
\[
T_j^p=(t_j^P,t_j^p),\qquad T_j^n=(t_j^N,t_j^n).
\]
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 \(\mathcal T_1\) and \(\mathcal T_3\). They are nested: they start in the order
\[
u_1,u_2,\dots,u_{|\mathcal U|}
\]
in \(\mathcal T_1\) and end in reverse order in \(\mathcal T_3\). The long edge
\[
(u_j^s,u_j^t)
\]
must be drawn either to the left or to the right of a designated vertex \(u_j^c\) in \(\mathcal T_3\), and this choice propagates through the construction. In one state the gadget blocks \(T_j^p\), and in the other state it blocks \(T_j^n\). The blocking is enforced by edges such as
\[
(u_j^s,u_j^p)\quad\text{and}\quad (u_j^q,u_j^p),
\]
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 \(T_j^p\), or negative clauses may route through \(T_j^n\), but not both.

Tier \(\mathcal T_2\) is largely technical. It contains \(|\mathcal C|\) levels, one terminal vertex \(c_i^t\) per level, with
\[
\gamma(c_i^t)=l_1+i.
\]
Because each such level contains only one vertex, arrivals there impose no further ordering constraints.

Correctness is bidirectional. From a drawing, one sets \(u_j=\text{true}\) if \(T_j^n\) is blocked and \(u_j=\text{false}\) 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
\[
\Delta^+=\Delta^-=1,
\]
the graph is a set \(P\) of disjoint \(y\)-monotone paths. The paper defines a precedence relation on paths:
\[
p\prec q
\]
if \(p,q\in P\) have vertices \(v_p,v_q\) on a common level with
\[
\gamma(v_p)=\gamma(v_q)\quad\text{and}\quad \chi(v_q)=\chi(v_p)+1.
\]
This means that \(p\) must be drawn to the left of \(q\). If \(\prec\) is acyclic, a linear extension provides a feasible left-to-right ordering of the paths and hence a drawing; if \(\prec\) contains a cycle, no drawing exists. The test is executable in
\[
O(|V|)
\]
time by topological sorting [1708.07428].

When \(\lambda=1\), 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
\[
\mathcal G=(G=(V,E),x,y,S),
\]
where \(x,y:V\to\mathbb R\) prescribe vertex positions and \(S\subset \mathbb Q^2\) is a finite direction set symmetric with respect to the origin. A drawing is geodesic with respect to \(S\) if each edge is a polygonal path using two adjacent directions from \(S\). The paper proves that for every symmetric direction set \(S\) with
\[
|S|\ge 4,
\]
Geodesic Planarity is \(\mathcal{NP}\)-hard, even when the graph is a perfect matching and the prescribed coordinates are in general position [1708.07428].

The reduction proceeds in two steps. First, an Ordered Level Planarity instance with
\[
\Delta=2,\qquad \lambda=2
\]
is sheared by translating vertices on level \(V_i\) by \(3i\) 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 \(L_1\)-geodesic path. Second, each vertex \(v\) is split into a small gadget placed in a square \(r_v\) centered at
\[
p_v=(x'(v),\gamma(v)).
\]
Incident edges are attached to degree-\(1\) 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 \(S\) 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
\[
\mathcal P=\mathcal{NP}.
\]

Bi-Monotonicity asks for a planar drawing with fixed vertex positions in which every edge is both \(x\)-monotone and \(y\)-monotone. The paper notes that every \(L_1\)-geodesic rectilinear path can be transformed into a bi-monotone curve and vice versa. Hence the Manhattan reduction immediately yields:
\[
\text{Bi-Monotonicity is }\mathcal{NP}\text{-hard, even for perfect matchings.}
\]
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 [1708.07428].

For T-Level Planarity, each level \(V_i\) is equipped with a tree \(T_i\), and leaves in each subtree must appear consecutively. The paper reduces Ordered Level Planarity to T-Level Planarity by first ensuring width \(2\), then adding two global paths \(p_l\) and \(p_r\) intended to stay to the left and right of the original vertices, and choosing the level trees so that the designated vertex \(v_i^0\) must be consecutive with the left anchor \(v_i^l\) and \(v_i^1\) with the right anchor \(v_i^r\). Any T-level planar drawing then forces \(v_i^0\) to lie left of \(v_i^1\) on every level, thereby recovering the ordered constraint.

For Clustered Level Planarity, the reduction uses only two non-trivial clusters,
\[
c_0,\quad c_1.
\]
After padding levels if necessary, the designated vertices \(v_i^0\) and \(v_i^1\) are assigned so that \(c_0\) contains all \(v_i^0\) and \(c_1\) contains all \(v_i^1\). 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 \(c_0\) is always left of \(c_1\), so the ordered constraint is encoded by cluster membership. This yields the consequence that Clustered Level Planarity remains \(\mathcal{NP}\)-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-\(2\), width-\(2\) instances.

Source: https://www.emergentmind.com/topics/ordered