Manuscript Offprint
arXiv:2610.37379Decomposing Directed Graphs into Partial Orders is Hard
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Comparability graphs represent partial orders and provide natural building blocks for representing a graph as a union of simpler graphs. The analogous task in the directed setting is to represent a digraph as a union of partial orders. Aboulker et al. [1] recently introduced the partial order decomposition number as a useful structural parameter in their study of tournaments. Formally, a partial order decomposition of a digraph is a cover of its arc set by transitive acyclic subdigraphs, each representing a strict partial order on the vertex set of . The partial order decomposition number is the minimum number of such subdigraphs needed. We also consider the partitioning variant, in which every arc belongs to exactly one of the partial orders in the decomposition. We prove that, for every fixed , deciding whether a digraph admits a decomposition into at most partial orders is NP-complete, even for directed acyclic graphs (DAGs). For , we reduce from NAE-3-SAT. For , we reduce from -COLORING, and the reduction yields DAGs with triangle-free underlying graphs. Both reductions establish hardness for both variants. We further show that the minimum cover size and the minimum partition size can differ even on DAGs.
2012 ACM Subject Classification Theory of computation → Problems, reductions and completeness
Keywords and phrases Partial Order Decomposition, Directed Graphs, Complexity
Funding Grzegorz Gutowski: Partially supported by grant no. 2023/49/B/ST6/01738 from National Science Centre, Poland.
1 Introduction
Representing a graph as a union of simpler graphs is a standard way to measure its structural complexity. Different choices of which graphs are considered simpler lead to different interesting classifications. For the purpose of this paper, we say that a graph is simple if it is a comparability graph. A comparability graph has the elements of a partially ordered set as its vertices, with two distinct vertices adjacent if and only if they are comparable. Equivalently, it is a graph that admits a transitive acyclic orientation. Comparability graphs are perfect: in every induced subgraph, the chromatic number equals the clique number. In particular, the chromatic number of a comparability graph equals the clique number. Consequently, if the edge set of a graph G is covered by r comparability subgraphs, then we get from the product coloring obtained from proper colorings of the covering graphs. This principle has geometric applications. For example, Larman, Matoušek, Pach, and Töröcsik [5] cover the disjointness graph of a family of planar convex sets by four comparability graphs. More recently, Gyárfás, Marits, and Tóth [3] studied covers and edge
Decomposing Directed Graphs into Partial Orders is Hard
partitions into comparability graphs systematically.
In the directed setting, the orientations of the edges are prescribed, and we ask for a decomposition into transitive acyclic digraphs. We identify such a digraph with a strict partial order on its vertex set. Following Aboulker, Crew, Duron, Fan, Jacob, Kimbrough, Koerts, Moore, Spirkl, and Thomassé [1], a partial order decomposition of a digraph is a family of partial orders on such that
The minimum possible number of parts is the partial order decomposition number, denoted by pod(D). We also consider the partitioning variant, in which the arc sets of the partial orders must be pairwise disjoint, and define the corresponding partial order partition number, denoted by pop(D). For a fixed integer k, the associated decision problems ask whether pod(D) ≤ k or pop(D) ≤ k, respectively.
The structural motivation for this parameter comes from directed coloring. Aboulker et al. [1] prove that
where is the minimum number of acyclic induced subdigraphs partitioning , and is the minimum clique number of a backedge graph over all vertex orderings of . Here, a backedge graph has an undirected edge for each arc directed backwards in the chosen ordering. Thus, bounding the number of partial orders gives a polynomial bound on the dichromatic number in terms of the directed clique number. The same work asks about the complexity of computing or approximating pod for a tournament . These results motivate the algorithmic study of partial order decompositions on general digraphs and on restricted classes.
Directed acyclic graphs (DAGs) are a particularly natural class to consider. Every subdigraph of a DAG is already acyclic, so the decomposition problem concerns only transitivity. Nevertheless, transitivity imposes constraints between different arcs: if a part contains and , it must also contain . In particular, if the latter arc is absent in the input graph, the two former arcs cannot belong to the same part. Moreover, deleting an arc from a partial order can destroy transitivity, so assigning each covered arc to just one of its covering parts need not produce a valid partition. The covering and partitioning variants therefore require separate consideration. In Figure 1, we present a simple example of a digraph that has a unique covering with two partial orders. To see that the covering is unique, it is enough to observe that any two arcs that meet head-to-tail, , with the arc not present in , cannot be in the same partial order. In the unique covering, the arc in the center of the figure is contained in both partial orders, so the digraph cannot be partitioned into two partial orders, and we have pod and pop .
▶ Theorem. For every fixed integer , deciding whether the arcs of a DAG can be covered by at most partial orders is NP-complete, as is deciding whether they can be partitioned into at most partial orders. For , both statements hold even when the underlying graph is triangle-free.

Figure 1 A DAG D with pod and pop . The graph has a unique covering with two partial orders (depicted blue and red). Since the central arc must be contained in both partial orders, the graph cannot be partitioned into two partial orders.
For , both problems are polynomial-time solvable by checking acyclicity and transitivity. Our reduction for is from NAE-3-SAT and applies simultaneously to covering and partitioning. It shows that allowing transitive triangles makes the two-part problem hard even on DAGs, whereas the triangle-free case is polynomial-time solvable. For , we present a reduction from -COLORING using partial-order-critical DAGs. In Section 2, we present the reduction for , and in Section 3, we develop the partial-order-critical digraphs and show the reduction for . In Section 4, we discuss remaining open problems.
2 Hardness Result for k = 2
This section is devoted to the following theorem.
▶ Theorem 1. The problems of deciding whether pod and pop are both NP-complete, even when G is restricted to be a directed acyclic graph.
We reduce from NOT-ALL-EQUAL-3-SAT, abbreviated as NAE-3-SAT. An instance consists of a set of variables and a family of triples of literals, where . We call these triples clauses. A truth assignment extends to literals by . It satisfies a clause if the clause contains both a true and a false literal, and it satisfies if it satisfies every clause. Equivalently, we require
The problem asks whether such an assignment exists. We use the NP-complete variant in which each clause contains literals over three distinct variables [8]. The order within each triple is arbitrary but fixed for the construction.
Proof of Theorem 1. Both problems are clearly in NP since we can verify a solution in polynomial time. Let be an instance of NAE-3-SAT as defined above. We construct a directed acyclic graph as follows. The same construction will work for both the covering and the partitioning variants, as will be discussed later in the proof. For each variable , create a variable gadget that consists of a directed path . Since the shortcut is absent, transitivity prevents the two arcs of this path from belonging to the same partial order. Consequently, in every decomposition into two partial orders, they belong to different partial orders. The variable gadget therefore has two possible states,
Decomposing Directed Graphs into Partial Orders is Hard
corresponding to the two possible truth values of . For each clause , we create a clause gadget that consists of a directed path together with the shortcut arcs , . In particular, the arc is not present. The three consecutive path arcs will encode the truth values of the three literals in each clause. In particular, they cannot all belong to the same partial order, since transitivity would then require the existence of . The gadgets are shown in Figure 2. We connect the gadgets as follows:

(a)
(b)
Figure 2 The gadgets used in the reduction. (a) The two states of a variable gadget. (b) Representative colorings of a clause gadget. The three consecutive path arcs encode the truth values of the respective literals in the clause. A monochromatic clause path would require the missing shortcut , shown dotted.
for a literal , define its attachment vertex by if and if . We also write for the variable-gadget arc entering . That is, for we have and for we have . For each clause , we add three connecting arcs , , and . Furthermore, we add three guard arcs , , and . An example is shown in Figure 3.

Figure 3 The construction with clauses , , , . The coloring corresponds to the NAE assignment and . Guard arcs are shown dotted.
Note that contains exactly vertices and arcs. Clearly, can be constructed from in polynomial time. Note also that contains no cycles. We also observe that, on the constructed instances, a cover by two partial orders exists if and only if a partition into two partial orders exists. Indeed, every arc of belongs to a directed 2-path whose shortcut is absent. This is obvious for the arcs belonging to variable gadgets. Each connecting or guard arc leaving forms such a path with . Each clause-path arc forms such a path with . Finally, each of the two clause-gadget shortcuts lies on a 2-path from to , whose shortcut is absent. Consequently, admits a cover by two partial orders if and only if it admits a partition into two partial orders. We may therefore treat both variants as an arc coloring with colors blue and red in which each color class is transitive. The preceding observations also imply that, in every valid such coloring, all connecting and guard arcs leaving have the color opposite to , while has the same color as .
Suppose first that satisfies . If is true, color blue and red; otherwise reverse the colors. Thus, is blue if and only if . Color every connecting and guard arc leaving opposite to , and color the clause-path arc with the same color as . Finally, color opposite to and opposite to .
We verify transitivity by considering monochromatic 2-paths. No such path lies within a variable gadget or consists of a variable arc followed by a connecting or guard arc. Within a clause gadget, if two path arcs have the same color, the third has the opposite color because satisfies the clause. Moreover, all 2-paths within the clause gadget involving the shortcuts and are not monochromatic by definition. For every connecting arc followed by an arc of the clause path, the two arcs have opposite colors, so the 2-path is not monochromatic. Furthermore, there are two cases where a connecting arc is followed by a shortcut arc of the clause gadget: if and are monochromatic, then the transitive arc must also have the same color, which is guaranteed by the coloring of the guard arcs. Similarly, if and are monochromatic, then the transitive guard arc has the same color. Finally, if and are monochromatic, then the transitive guard arc also has the same color.
Conversely, suppose that admits a valid blue-red arc coloring. Define if and only if is blue. The two variable-gadget arcs have opposite colors, so is blue if and only if . By the forced color relations established above, the three clause-path arcs encode the values of . They cannot all have the same color, since transitivity would then force the missing arc . Hence, each clause contains both a true and a false literal, and satisfies .
We were able to use a similarly constructed reduction to prove NP-hardness for , but not for . Two issues occur when trying this approach for : gadgets are difficult to find, and the relation between the decomposition and the partition (coloring) variants becomes unclear. To address these problems, we present a completely different reduction that proves hardness for , but does not seem to be applicable in the case .
3 Hardness Result for
The main theorem of this section is the following one.
▶ Theorem 2. For every fixed integer , the problems of deciding whether and are both NP-complete, even when is restricted to be a directed acyclic graph whose underlying graph is triangle-free.
Decomposing Directed Graphs into Partial Orders is Hard
In the following, we start by investigating some properties of both the partial order decomposition and partition numbers and their relation to colorings of line digraphs. We further introduce k-pop-critical digraphs and the properties needed for our reduction.
3.1 Structural Properties
The underlying graph of a digraph is defined as a graph with and if or . Given a digraph , the line digraph has vertex set and arc set . Informally, whenever two arcs of meet head-to-tail, there is an arc between them in the natural direction in . We will use the following result on line digraphs.
▶ Theorem 3 (Erdős and Hajnal [2], Harner and Entringer [4]). For any digraph , we have
For convenience, we call a digraph a triangle-free DAG if it is a directed acyclic graph whose underlying undirected graph is triangle-free. As in the reduction given in Section 2, we refer to partial orders in a partition as color classes. We abuse notation and denote by the set of colors used by the coloring on a subset of arcs .
As described in the introduction, the partial order decomposition number and the partial order partition number can differ even for DAGs. As the following lemma shows, this separation is not possible for triangle-free DAGs.
▶ Lemma 4. For every triangle-free DAG , we have .
Proof. Let be a triangle-free DAG. Since every partition of is also a cover, we have . Let and let be a decomposition of . Let be an arc in . Since is triangle-free, there is no such that both are in . It follows that remains a partial order. We can therefore delete an arc covered by multiple partial orders from any of them. This allows us to transform the decomposition into a partition, so .
This lemma allows us to show hardness for both variants while only considering the partition variant. We continue with a lemma that relates the partial order partition number to the chromatic number of the underlying graph of the line digraph. Before stating the lemma, we give a necessary and sufficient condition for Q to be a partial order. By definition, a DAG Q is a partial order if and only if
We can also characterize partial orders of DAGs in terms of forbidden induced subgraphs. Note that if two arcs and meet head-to-tail in a DAG, the vertices induce either a directed path or a transitive tournament . Thus, a DAG is a partial order if and only if it contains no as an induced subgraph.
▶ Lemma 5. Let be a triangle-free DAG and . Then, is a partial order if and only if is an independent set in .
Proof. ( ) Since is a partial order, there is no induced , as a violates transitivity. Since is triangle-free, there is also no in . Therefore, does not contain two arcs meeting head-to-tail, so is an independent set in .
( ) Since is an independent set in , does not contain a three-vertex directed path as a subgraph, which proves the claim.
A proper coloring of is a partition of into independent sets, which leads to the following conclusion.
▶ Corollary 6. For every triangle-free DAG D, we have
We can now use properties of proper colorings to investigate the partial order partition number in triangle-free DAGs.
▶ Lemma 7. Let be a triangle-free DAG, let and let . Then is a triangle-free DAG and .
Proof. We first observe that remains acyclic and remains triangle-free after the removal of an arc . It follows that is a triangle-free DAG. By Corollary 6, we have , and therefore removing a vertex from can decrease its chromatic number by at most 1 while not increasing it.
The authors of [1] already showed that there exist triangle-free DAGs with an arbitrarily large partial order decomposition number. We include a proof for completeness.
▶ Proposition 8. For every integer k there exists a triangle-free DAG D that has pod .
Proof. Let be a triangle-free undirected graph with , which can be obtained using a known construction from the literature (e.g., [7]). We set to be an acyclic orientation of . By Theorem 3 and Corollary 6, it follows that
concluding the proof.
We proceed by defining k-pop-critical digraphs and r-rainbow arc sets. We then show that there exist triangle-free DAGs that are k-pop-critical and how to use this property to create a digraph that contains a r-rainbow arc set.
▶ Definition 9 (k-pop-critical digraph). A digraph D is k-pop-critical if and only if:
-
and
-
for every arc : .
▶ Lemma 10. For every integer there exists a triangle-free DAG that is k-pop-critical.
Proof. We start with an arbitrary triangle-free DAG with pop , guaranteed to exist by Proposition 8, and iteratively apply the following procedure:
-
If there exists an arc such that pop , we remove .
-
Otherwise, return D.
Let be a digraph returned by this procedure. As shown in Lemma 7, at each step of the procedure, the partial order partition number decreases by at most 1, so . Thus, is a k-pop-critical triangle-free digraph.
We now define r-rainbow arc sets, which will be crucial for our reduction. We also show how to construct them using pop-critical digraphs.
▶ Definition 11 (r-rainbow arc set). Let be a digraph and . The subset is a r-rainbow arc set if and only if:
Decomposing Directed Graphs into Partial Orders is Hard
-
for any -coloring corresponding to a partial order partition of , we have and
-
there exists such an -coloring such that .
In the following, we write in(v) and out(v) for the sets of arcs entering and leaving a vertex v, respectively. In order to construct a -rainbow arc set, we make use of the following lemma.
▶ Lemma 12. Let be a -pop-critical triangle-free DAG, let be a sink, let and let . Let be a -coloring of the arcs of corresponding to a partial order partition of . Then
-
-
u is a sink in .
Proof. By Corollary 6, we have that is also a proper coloring of . In , the arc is only connected to the arcs in in, since out. Thus, if , we could color with one of the colors not used in , which would yield a proper coloring of with colors. This contradicts the assumption that is -pop-critical.
For the second statement, assume there exists an arc in . Since and is connected to all arcs from in , we cannot color it with any of these colors. This contradicts pop , which is implied by being -pop-critical and Lemma 7.
The following lemma shows that we can construct a -rainbow arc set on triangle-free DAGs by removing a single arc from a -pop-critical triangle-free DAG.
▶ Lemma 13. Let be a -pop-critical triangle-free DAG, let be a sink, let be an arc to the sink, and let . There exists a -rainbow arc set in .
Proof. We start by choosing with the following properties:
-
In every k-coloring c corresponding to a partial order partition of , we have and
-
is a minimal set with that property.
Such a set exists, since in(u) satisfies the first property by Lemma 12, and we can therefore choose a subset of in(u) that is minimal under inclusion and has the desired property. Let , and let . For any k-coloring c, we have . Since was chosen to be minimal, there exists a k-coloring of with .
3.2 Reduction
We are now ready to prove the main theorem of the section.
Proof of Theorem 2. Both problems are clearly in NP since we can verify a solution in polynomial time. To prove NP-hardness of both variants, by Lemma 4, it is sufficient to show hardness for partial order partitions, as we restrict our problem to triangle-free DAGs. We reduce from k-COLORING, which is NP-hard for even when restricted to triangle-free graphs [6].
Let be a triangle-free instance of k-COLORING. For each , we create a vertex gadget as follows.

(a)

(b)

(c)
Figure 4 A part of for . (a) Deletion of from a 5-pop-critical DAG. (b) Selection of the 3-rainbow arc set (shaded). (c) Copy of to , leaving one color for , which is the same color as of edge excluded from in the construction of the 3-rainbow arc set.
-
Create a -pop-critical triangle-free DAG D, which is guaranteed to exist by Lemma 10.
-
Choose a sink s and an arc and delete the arc from D.
-
Add an isolated vertex to D.
-
Choose a -rainbow arc set , which exists by Lemma 13.
-
For each arc , add an arc to .
See Figure 4 for an example. By construction, the gadget is also a triangle-free DAG.
▷ Claim 1. For any vertex gadget constructed as above, in(v') is a (k - 1)-rainbow arc set.
Proof. To prove the claim, let be a proper -coloring of corresponding to a partial order partition of , and let be the -rainbow arc set chosen in the construction of the vertex gadget. No arc in is adjacent to an arc of in . Moreover, for every , the two arcs and have the same neighborhood outside , as and are sinks. For , this is due to Lemma 12, and for it is by construction. Consequently, we may recolor every arc with the color , and the resulting coloring is still proper. Since is a -rainbow arc set, it receives at least colors in the resulting coloring. Therefore, we have .
Conversely, consider a proper -coloring of in which receives exactly colors. Such a coloring exists because is a -rainbow arc set. We can extend to by assigning to for every . The neighborhood property above, together with the fact that there are no adjacencies between and , ensures that this extension is valid. Thus, we have . Together with the first part of the proof, this shows that every proper -coloring assigns at least colors to , and there exists a proper -coloring assigning exactly colors to it. Hence is a -rainbow arc set, which proves the claim.
We now construct a triangle-free DAG D from G as follows; see Figure 5 for an example.
-
Start with an empty digraph D.
-
For each vertex , create a vertex gadget and add it to . Furthermore, for each vertex , add a vertex and the arc to .
-
Choose any order of the vertices of G.
-
Create an arc between the two vertices of and of in if the corresponding vertices are adjacent in and .
Suppose first that admits a proper -coloring . We construct a -arc-coloring of corresponding to a partial order partition. For each vertex in , we color each arc leaving the corresponding vertex in with . By the claim above, we may color each vertex
Decomposing Directed Graphs into Partial Orders is Hard
gadget so that in receives exactly the colors different from . Suppose that an arc receives the same color as the outgoing arcs of . By construction, , which contradicts the assumption that is a proper coloring of , as and are adjacent in . Hence, no 2-path through is monochromatic, and since every other 2-path lies entirely within one vertex gadget, whose coloring is proper on by construction, is a proper coloring of . By Corollary 6, this corresponds to a partial order partition of into at most parts.
Conversely, suppose that pop with a corresponding -arc-coloring . Each has at least one outgoing arc, , so there is at least one color in . By the claim above, , so there is at most one color in . Thus, we can construct a coloring of the vertices of by letting denote the unique color in . Assume that is not a proper coloring, meaning that there exists such that . Without loss of generality, we may assume that the arc is in . We consider the directed path formed by the vertices and observe that , a contradiction. This concludes the reduction.

(a)

(b)
Figure 5 The reduction for . (a) A 3-coloring of . (b) The corresponding DAG , with shaded vertex gadgets and a sink for each . For we orient the arc from to .
Notice that our construction works for every fixed k, but we do not construct the vertex gadget explicitly and we do not have a polynomial bound in terms of k on the size of a vertex gadget. It would be interesting to have an explicit, polynomial-time construction of k-pop-critical digraphs.
4 Open Problems
While we were able to characterize the complexity of partial order decomposition on triangle-free DAGs, the complexity of this problem on tournaments remains open for . Furthermore, we introduced the partial order partition number and showed that it can differ from the partial order decomposition number. It is an intriguing question whether the difference between the two parameters can be arbitrarily large.
References
1 Pierre Aboulker, Logan Crew, Julien Duron, Xinyue Fan, Hugo Jacob, Rémy Kimbrough, Hidde Koerts, Benjamin Moore, Sophie Spirkl, and Stéphan Thomassé. Decomposing tournaments into comparability graphs, 2026. URL: https://arxiv.org/abs/2606.07748.
2 Paul Erdős and András Hajnal. On chromatic number of infinite graphs. In Theory of Graphs (Proceedings of the Colloquium held at Tihany, 1966), pages 83–98, 1968.
3 András Gyárfás, Márton Marits, and Géza Tóth. Partitioning perfect graphs into comparability graphs, 2024. URL: https://arxiv.org/abs/2408.13523, arXiv:2408.13523, doi:10.48550/arXiv.2408.13523.
4 C. C. Harner and R. C. Entringer. Arc colorings of digraphs. Journal of Combinatorial Theory, Series B, 13(3):219–225, 1972. doi:10.1016/0095-8956(72)90057-3.
5 David Larman, Jiří Matoušek, János Pach, and Jenő Töröcsik. A Ramsey-type result for convex sets. Bulletin of the London Mathematical Society, 26(2):132–136, 1994. doi:10.1112/blms/26.2.132.
6 Frédéric Maffray and Myriam Preissmann. On the np-completeness of the k-colorability problem for triangle-free graphs. Discrete Mathematics, 162(1):313–317, 1996. doi:10.1016/S0012-365X(97)89267-9.
7 Jan Mycielski. Sur le coloriage des graphes. Colloquium Mathematicum, 3(2):161–162, 1955. doi:10.4064/cm-3-2-161-162.
8 Thomas J. Schaefer. The complexity of satisfiability problems. In Proceedings of the Tenth Annual ACM Symposium on Theory of Computing, pages 216–226. Association for Computing Machinery, 1978. doi:10.1145/800133.804350.