Abstract 1 Introduction 2 Hardness Results 3 Approximation Algorithms 4 Conclusions and Open Questions References

Hardness and Approximation for Coloring Digraphs

Parinya Chalermsook ORCID University of Sheffield, UK    Harmender Gahlawat ORCID Department of Mathematics, Indian Institute of Technology Delhi, India    Felix Klingelhoefer G-SCOP, Grenoble-INP, France    Alantha Newman ORCID CNRS and ENS Lyon, France    Chaoliang Tang Fudan University, Shanghai, China
Abstract

The dichromatic number χ(D) of a digraph is the minimum number k such that V(D) can be partitioned into k subsets, each inducing an acyclic digraph. The acyclic number α(D) is the cardinality of a largest induced acyclic subdigraph of D.

We study these problems from an approximation point of view. We begin with establishing that even when restricted to tournaments, approximating χ and α remain as challenging as their undirected counterparts on general graphs. Specifically, we establish that for every ϵ>0, it is hard to approximate both α and χ up to a factor of n1ϵ even when restricted to tournaments.

We next consider approximate coloring of digraphs in special cases. We begin with establishing that we can color -dicolorable digraphs using at most n11 colors in time O(n2); in particular, we can color 2-dicolorable digraphs with 2n colors in polynomial time. We then focus on bounding the dichromatic number of dense digraphs as a function of the independence number α of the underlying graph. We consider two special cases in this regard: digraphs with χ(D)2 and digraphs that do not contain any directed triangle. For these cases, we present algorithms which generalize and improve existing tools and results.

Keywords and phrases:
Graph Algorithms, Hardness of Approximation, Polynomial Time Approximation Algorithms, Structural Graph Theory
Category:
Track A: Algorithms, Complexity and Games
Funding:
Parinya Chalermsook: Partially funded by the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme under grant agreement No 759557.
Harmender Gahlawat: Partially funded by European Research Council (ERC) grant titled PARAPATH.
Chaoliang Tang: Partially funded by Chinese Scholarship Council (CSC).
Copyright and License:
[Uncaptioned image] © Parinya Chalermsook, Harmender Gahlawat, Felix Klingelhoefer, Alantha Newman,
and Chaoliang Tang; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Mathematics of computing Approximation algorithms
; Mathematics of computing Graph algorithms
Acknowledgements:
We thank Pierre Charbit and Samuel Coulomb for communicating their nice proof of Theorem 40 and letting us include it in our paper.
Related Version:
Full Version: https://arxiv.org/abs/2605.19654
Editors:
Sayan Bhattacharya, Danupon Nanongkai, Michael Benedikt, and Gabriele Puppis

1 Introduction

Let D=(V,A) be a digraph with vertex set V and arc set A. The minimum number of induced acyclic sets into which the vertices of D can be partitioned is known as its dichromatic number [23]. We use χ(D) to denote the dichromatic number of D. If χ(D)k, we say that D is k-dicolorable or simply k-colorable. The dichromatic number of a digraph is related to the chromatic number of a graph. Consider a simple undirected graph G, and replace each edge with a directed 2-cycle (also known as a digon) to obtain a digraph D on the same vertex set. Now fix a k-coloring that is proper in G (i.e., the endpoints of each edge have different colors). Then each color class forms an independent set in G and an induced acyclic set in D. Hence, the coloring problem in undirected graphs and the dicoloring problem in directed graphs in which each pair of vertices is either connected by a digon or not connected at all are equivalent. This directly implies that for a digraph D, the problem of computing χ(D) and the problem of computing a maximum induced acyclic set, denoted by α(D), are 𝖭𝖯-hard.

However, if we consider an arbitrary directed graph or even an oriented graph (in which digons are not allowed), then the direct equivalence between dicoloring a digraph and coloring a graph described above no longer applies. A well-studied class of oriented graphs is tournaments. While the underlying undirected graph is complete and thus has chromatic number equal to the number of vertices, the dichromatic number can be as low as one if the orientation of the arcs results in an acyclic or transitive tournament.

In the graph theory literature, the problem of proving upper bounds on the dichromatic number of digraphs has been extensively studied [22, 4, 1, 2], motivated by its connection to the Erdős-Hajnal conjecture [13, 10]. This conjecture states that for any graph H, there is an absolute constant γH such that an H-free graph G has a clique or independent set of size nγH, where n is the number of vertices in G. For example, by a famous algorithm of Wigderson [27], a triangle-free graph has an independent set of size at least n.

This conjecture has an analogous formulation for tournaments, which states that for any tournament H, there is an absolute constant τH such that an H-free tournament T has an induced acyclic set of size at least nτH, where n is the number of vertices in T [3]. The conjecture has been proved for many classes of H-free tournaments. For example, heroes are the set of all tournaments whose exclusion results in constant dichromatic number and linear sized induced acyclic sets, and [4] gave a complete description of all heroes. Another example is tournaments that excludes any particular six vertex tournament [11, 25].

Much of the work in the graph theory arena is based on proving upper bounds by establishing existential results. There has also been some investigation into this topic from the algorithmic or complexity perspective. As noted above, computing the value χ(D) is 𝖭𝖯-hard. Moreover, it is 𝖭𝖯-hard to decide if an oriented graph is 2-colorable [5], to decide if a tournament is 2-colorable [9] or to decide if a tournament is k-colorable [16]. In fact, it is 𝖭𝖯-hard to decide if a digraph D is 2-colorable even if it contains two vertices u,v such that D{u,v} is acyclic (i.e., α(D)V(D)2) [17]. Recently, the complexity of approximating the dichromatic number in tournaments was studied [21]. For example, it was shown that one can color a 2-colorable tournament with ten colors and that it is 𝖭𝖯-hard to color a 2-colorable tournament with three colors. It was also shown that coloring 3-colorable tournaments and 3-colorable graphs are very close in terms of their complexity. They also showed that it is 𝖭𝖯-hard to approximate the dichromatic number of a tournament within a factor of n1/2δ for any 0<δ<1/2, which is a weaker state of affairs than what is known for graph coloring.

1.1 Our Results

We address the dicoloring problem in general digraphs from several different angles. In Section 2, we address the hardness of approximation of dicoloring an oriented digraph. We show strong hardness by proving that even in the “easiest” setting of tournaments, approximate dicoloring is as hard as approximate graph coloring. Our main result (Theorem 1) shows that, for every ϵ>0, it is hard to distinguish between the tournaments T with α(T)|V(T)|ϵ and those with χ(T)|V(T)|ϵ. This implies n1ϵ hardness of approximation for both α (Corollary 2) and χ (Corollary 3).

This motivates the problem of coloring digraphs in special cases, addressed in Section 3, where we address algorithmic approaches. A well-studied classic problem in graph coloring is to color a 3-colorable graph with few colors [27, 19, 20]. A natural, analogous question in the setting of digraphs, which does not appear to have been previously addressed, is: How many colors do we need to color a 2-dicolorable digraph in polynomial time? We show that we can color a 2-dicolorable n-vertex digraph with at most 2n colors (Theorem 17). We generalize this, showing how to color an -dicolorable digraph with at most n11 colors in time O(n2) (Theorem 20).

Next, we study digraphs with bounded independence number, which are sometimes called “dense” digraphs. The independence number of a digraph is the size of the maximum independent set in the underlying undirected graph. For example, tournaments are a well-studied class of digraphs and have independence number one. Digraphs with independence number at most α are dense since they contain (roughly) at least n2/(2α) arcs. (To see this, apply Turan’s theorem to the complement of the underlying undirected graph, which is Kα-free.)

We consider classes with additional (natural) restrictions such as those promised to be 2-dicolorable or C3-free, where C3 is a directed triangle. Notice that a C3-free tournament is acyclic. For these restricted classes, we can prove upper bounds on the dichromatic number via polynomial-time algorithms, based on a non-trivial extension of the path decomposition for tournaments used by [21]. For example, we show that 2-dicolorable digraphs can be efficiently colored with 103(4α1) colors (Theorem 28), which in particular generalizes the result of [21] for tournaments.111We remark that these algorithms do not need to know a maximum independent set of the underlying graph nor its size; with a light re-engineering, on any input digraph D and any fixed integer α, the algorithm can be made to either return a coloring with the claimed bound or return an independent set of size α+1. Then we show that C3-free digraphs can be colored with at most (α+8)!9! colors (Theorem 33), which improves on the upper bound of 35α1α! due to [18]. We also pose a conjecture (Conjecture 39) that would imply a positive resolution to a recently posed open problem [24], and prove it for a non-trivial case.

2 Hardness Results

Recall that α(D) and χ(D) denote the size of maximum acyclic set and dichromatic number of D, respectively. We prove the following result which implies the hardness of approximating both χ and α.

Theorem 1.

For ϵ(0,1), there is no polynomial-time algorithm that, on input tournament T, can distinguish between the following two cases:

  • (Completeness:) χ(T)nϵ (which implies that α(T)n1ϵ)

  • (Soundness:) α(T)nϵ (which implies that χ(T)n1ϵ).

unless 𝖭𝖯=𝖱𝖯.

This implies the following corollaries:

Corollary 2.

For ϵ(0,1), it is hard to approximate the maximum acyclic set of a tournament to within a factor of n1ϵ unless 𝖭𝖯=𝖱𝖯.

Corollary 3.

For ϵ(0,1), it is hard to approximate the dichromatic number of a tournament to within a factor of n1ϵ unless 𝖭𝖯=𝖱𝖯.

High-level overview

Roughly speaking, the best known hardness reduction [14] (that gives a factor of n1/2δ hardness) combines a random bipartite graph with a hard instance of graph coloring, but their reduction blows up the size of the instance quadratically while maintaining the hardness factor. In particular, given a hard instance G for chromatic number, they create a tournament T of size roughly |V(T)||V(G)|2, while preserving the hardness factor, i.e., χ(T)χ(G). Since the hardness gap for the chromatic number is |V(G)|1ϵ, we have that the hardness factor for the dichromatic number is |V(G)|1ϵ=|V(T)|1/2O(ϵ). Note that the loose factor is caused by the growth of the instance size while the hardness gap does not grow proportionally.

To prove a tight hardness factor, we need a reduction that establishes a tighter relation. Our reduction takes hard instance G for chromatic number and creates tournament T such that |V(T)||V(G)|k for k=1/ϵ; the instance size is, in fact, much larger than the reduction of [14]. However, in our case, the hardness factor grows proportionally with the size, i.e., the hardness gap is |V(G)|(1ϵ)k which is simply a tight hardness of |V(T)|1ϵ.

Our reduction follows the high-level scheme of [7, 8], which uses the (lexicographic) graph product inequalities to tightly relate the optimal of the problem at hand to the stability number or the chromatic number. The new idea in this work is to introduce a natural extension of the standard lexicographic product that can be used in the directed setting (all previous works rely on the standard notion of graph products). Our extension is randomized, allowing us to naturally combine nice properties of a random bipartite graph [14] with hard instances of graph coloring [15], in a way that the hardness gap grows proportionally to the size of the reduction. Our new graph product might be of independent interest.

2.1 Main Reduction Lemma

Key to proving the hardness result is the following lemma that simultaneously relates (i) the chromatic number to the dichromatic number of a tournament and (ii) the stability number to the size of a largest acyclic set.

Lemma 4.

For all k, there exists a polynomial time randomized reduction that, on (sufficiently large) input undirected graph G^, produces a tournament T such that |V(T)|=|V(G^)|k and

  • χ(T)χ(G^)k|V(G^)| with probability 1.

  • α(T)=O(α(G^)k|V(G^)|2) with probability at least 11/k

Before proving this lemma, we first show how this implies the hardness result in Theorem 1. We start with the following hardness result of Feige and Kilian [15] (and derandomized by [28]).

Theorem 5.

Let γ(0,1). Given an undirected N-vertex graph G^, it is NP-hard to distinguish between the following two cases:

  • (Completeness:) χ(G^)Nγ.

  • (Soundness:) α(G^)Nγ.

To prove Theorem 1, consider ϵ<ϵ0 for ϵ0 that will be chosen later. Our reduction takes an input graph G^ from Theorem 5 with parameter γ=ϵ/5 and invokes Lemma 4 with parameter k=1/γ to get tournament T with n=|V(T)|=Nk vertices. In the completeness case, we know that χ(T)χ(G^)k|V(G^)|Nkγ+1=nγ+1/knϵ. This happens with probability 1. In the soundness case, we have that α(T)O(α(G^)kN2)O(Nγk+2)=O(Nk(γ+2/k))=O(nγ+2/k); notice that γ+2/kϵ/5+25/ϵϵ for sufficiently small ϵ (we choose threshold ϵ0 such that it holds). This happens with probability at least 11/k. This reduction implies that any algorithm that distinguishes between χ(T)nϵ and α(T)nϵ would give us an RP algorithm that distinguishes between χ(G^)Nγ and α(G^)Nγ, hence implying that 𝖭𝖯=𝖱𝖯. This concludes the proof of Theorem 1.

2.2 Proof of Lemma 4

2.2.1 Graph Products

We first recall the graph product operation in undirected graphs. Let G and H be undirected graphs. Denote by GH the lexicographic product of G and H, defined as follows:

V(GH)=V(G)×V(H)

We write vertices of GH in the coordinate form (u,a) where uV(G) and aV(H). Edges of the product graph are defined as:

E(GH)={{(u,a),(v,b)}:{u,v}E(G)(u=v){a,b}E(H)}

In other words, there is an edge between a pair (u,a) and (v,b) iff there is an edge in the first coordinate ({u,v}E(G)), or if u and v are the same, {a,b}E(H). It would be useful to think of the product as, first, replacing each vertex u by a copy Hu of graph H, and then connect Hu and Hv via a complete bipartite graph for those {u,v}E(G). We will use the following well-known fact about chromatic and stability numbers of product graphs.

Theorem 6.

For any graphs G and H, we have

  • χ(GH)χ(G)χ(H), and

  • α(GH)=α(G)α(H).

2.2.2 Directed Randomized Lexicographic Product

Let H be a digraph and G be an undirected graph (that we call a skeleton). Moreover, we work with a fixed ordering σ:[|V(G)|]V(G) of vertices in G, i.e., (σ(1),σ(2),,σ(|V(G)|)) is a permutation of V(G). The random process DGσ[H] generates a product graph G via the following steps: (i) First, start with the vertex set V(G). Replace each vertex vV(G) with a copy Hv of digraph H. For each v, we denote by 𝖼𝗅𝗈𝗎𝖽(v) the vertex set in the copy Hv, that is, 𝖼𝗅𝗈𝗎𝖽(v)={(v,a):aV(H)}, (ii) Next, for each {u,v}E(G), and for all pairs of vertices a,bV(H) add either an arc (u,a)(v,b) or (v,b)(u,a) with equal probability (i.e., we pick a random orientation for this pair), and (iii) For each edge {u,v}E(G) such that u appears before v in permutation σ and for all pairs of vertices a,bV(H), add arc (u,a)(v,b). Another way to describe this random process is to first perform an undirected lexicographic product and then orient the G-edges between the clouds at random, while the edges inside the clouds are oriented according to H. See Figure 1 and Figure 2 for illustration of Steps (i) and (ii).

Refer to caption
Figure 1: An illustration of DGσ(H) after Step 1. Each vertex of G is replaced by a copy of H.
Refer to caption
Figure 2: A (local) view of DGσ(H) after Step 2. Arcs are added between every pair of vertices in 𝖼𝗅𝗈𝗎𝖽(x) and 𝖼𝗅𝗈𝗎𝖽(y). The directions of these arcs are chosen independently at random where blue and red arcs are oriented to the right and left respectively.

The following property is easy to see but will be crucial for us.

Observation 7.

The graph DGσ[H] is a tournament if and only if H is.

The following lemma is easy to see.

Lemma 8.

Let H be a digraph and G an undirected graph. Then, χ(DGσ[H])χ(G)χ(H) with probability one.

Proof.

Let X1,X2,,Xg be color classes of G where g=χ(G) and Y1,,Yh be acyclic color classes of H where h=χ(H). Since each Xi is independent in G and Yj is acyclic in H, we have that Xi×Yj is also acyclic in DGσ[H] (regardless of the orientation σ). This gives us gh acyclic color classes.

Consider a sample GDGσ[H]. We say that edge {u,v}E(G) is η-consistent if for every Au𝖼𝗅𝗈𝗎𝖽(u) and Av𝖼𝗅𝗈𝗎𝖽(v) such that |Au|,|Av||V(H)|η, we have that G[AuAv] contains a cycle. Next, we say that the sample GDGσ[H] is η-good for (G,H) if every edge {u,v}E(G) is η-consistent.

The following lemma argues that a random product graph is η-good with high probability. The proof closely follows [14] (Lemma 4.1).

Lemma 9.

For all η(0,1/2], there exists a constant n0 (depending on η) such that for all G and H such that |V(H)||V(G)|n0, the probability that the graph DGσ[H] is η-good is at least 1η2.

Proof.

We need a simple observation: When G[X] is acyclic for subset XV(G), some topological ordering τ:X[|X|] is valid for X (i.e., there is no edge going back in the ordering).

Fix an edge {u,v}E(G). We first analyze the probability that {u,v} is not η-consistent (denote by event uv), i.e., there exists Au,Av such that G[AuAv] is acyclic. This can be upper bounded by the probability that some topological ordering is valid for AuAv.

[uv] [(Au,Av:|Au|,|Av|=|V(H)|η)(τ) τ is valid for AuAv]
|V(H)|2|V(H)|η[(τ) τ is valid for AuAv]
|V(H)|2|V(H)|η(2|V(H)|η)![τ is valid for AuAv]

Now consider a fixed wAuAv (say wAu without loss of generality). Since w is adjacent to all vertices in Av, the ordering τ necessitates the orientation of all such edges between w and Av. This means that the probability is at most (1/2)|Av| for a fixed w, and therefore

[τ is valid for AuAv](1/2)|Av||Au|(1/2)|V(H)|2η

Plugging this term back, we get:

[uv]|V(H)|4|V(H)|η(1/2)|V(H)|2η2|V(H)|2η+4|V(H)|ηlg2|V(H)|

When |V(H)| is sufficiently large, we can make [uv] smaller than η2/|V(H)|2, and therefore (by the union bound over the edges of G) the probability that G is not η-good is at most η2 as desired.

2.2.3 New Graph Product Inequality

This subsection presents an analogue of the graph product inequality for our randomized lexicographic product.

Lemma 10 (New inequality).

Let G and H be arbitrary undirected and directed graphs. Let GDGσ[H] be such that G is η-good for (G,H). Then, we have that

α(G)α(G)α(H)+|V(G)||V(H)|η.
Proof.

Let SV(G) be such that |S|=α(G) and G[S] is acyclic. We partition S into vSv where Sv=S𝖼𝗅𝗈𝗎𝖽(v). We say that Sv is large if |Sv||V(H)|η and small otherwise. Clearly, the total size of the small sets Sv is at most |V(G)||V(H)|η.

Now, for each large set Sv, we have that Sv induces an acyclic subgraph in H, so |Sv|α(H). Define the large clouds LV(G) where L={v:Sv is large}. It is clear that L must be an independent set in G: Otherwise, if u,vL has an edge {u,v}E(G), this would imply that SuSv induces a cycle. Therefore, we have that the total size of large sets is at most α(G)α(H).

2.2.4 Completing the Proof: The 𝒌-Fold Lexicographic Product

Now we complete the proof of Lemma 4. Given undirected graph G^ and a fixed ordering σ of V(G^), define a sequence of (random) tournaments G1,,Gk as follows:

  • We construct tournament G1 by orienting edges according to the ordering σ. That is, (u,v)E(G1) if and only if σ(u)<σ(v). We have that χ(G1),α(G1)|V(G^)|.

  • For all i1, Gi+1=DG^σ[Gi]. Since G1 is a tournament, from Observation 7, graph Gi must be a tournament for all i.

Our final graph is T=Gk. Clearly, we have |V(Gi)|=|V(G^)|i and in particular |V(T)|=|V(G^)|k. The following is a trivial consequence of Lemma 8 (applying it iteratively).

Observation 11.

With probability one, χ(G)χ(G^)k1|V(G^)|.

Lemma 12.

For sufficiently large |V(G^)|, the probability that, for all i{2,,k}, the graph Gi is (1/k)-good for (G^,Gi1) is at least (11/k)

Proof.

Applying Lemma 9 (notice that the precondition |V(Gi)||V(G^)| is always satisfied), the probability that a fixed Gi is not (1/k)-good is at most 1/k2. Denote by i the event that Gi is (1/k)-good for (G^,Gi1).

[ii]=i[ij<ij](11/k2)k11/k

Now assume that all Gi are (1/k)-good. From Lemma 10, we have that, for all ik,

α(Gi)α(G^)α(Gi1)+|V(G^)||V(Gi1)|1/kα(G^)α(Gi1)+|V(G^)|2

It is easy to derive that α(Gk)O(α(G^)k|V(G^)|2), thus completing the proof of Lemma 4.

3 Approximation Algorithms

In this section, we provide approximation algorithms to properly color directed graphs promised, directly or indirectly, to have “small” dichromatic number. First, we give an algorithm to color a 2-dicolorable digraph with few colors. Then we extend this to -dicolorable digraphs. Next, we consider digraphs with bounded independence number, a direct generalization of tournaments (which have independence number one). Here, we can obtain bounds when we are given additional promises such as that the input digraph is 2-dicolorable or that it is C3-free. We present some useful observations after presenting some necessary notation.

We define uvA to be an arc directed from u to v. For vV, let N+(v)={u|vuA} and N(v)={u|uvA}. For SV, we define N+(S)=vSN+(v), and we define N(S) analogously. For SV, we use D[S] to denote the digraph induced on the vertex set S, although we frequently abuse notation and refer to the induced subdigraph itself as S. Sometimes, we use V(D) and A(D) to refer to the vertex and arc set, respectively. We use n to denote the number of vertices in D, when it is clear to which digraph D we are referring.

Observation 13.

Let D be a digraph such that χ(D), for some 1n. Then for every (induced) subgraph D of D, there exists a vertex vV(D) such that χ(D[N+(v)])1.

Proof.

Since χ(D), there is a partition of the vertices into V(D)=1iSi such that each set Si is acyclic. Now consider an ordering of V(D) which consists of an acyclic ordering of S1 (i.e., with no backward arcs from A(S1)) followed by an acyclic ordering of S2, and so on. Notice that the last vertex in this ordering v has N+(v)1j1Sj, which is (1)-colorable.

Given a digraph D and a total order on V(D), let G denote the undirected graph whose edges correspond to arcs of D that are backwards with respect to (i.e., by the arcs vuA(D) such that uv). In other words, we consider all backwards arcs with respect to the ordering and then we ignore the orientation of the arcs, resulting in an undirected backedge graph.

Observation 14 ([26]).

Let G be a backedge graph associated with D and . Then χ(D)χ(G). Moreover, any proper coloring of vertices of G is also a proper coloring for D.

This follows from the fact that every stable set in G is acyclic in D. Recall that d-degenerate (undirected) graph is one in which there is a vertex ordering such that each vertex has at most d neighbors to the left.

Observation 15 (Folklore).

A d-degenerate graph is (d+1)-colorable and such a coloring can be computed in polynomial time.

A digraph D is d-out-degenerate if every induced subgraph of D contains a vertex with out-degree at most d. An implication of Observation 14 and 15 is the following.

Observation 16.

A d-out-degenerate digraph is (d+1)-colorable and such a coloring can be computed in polynomial time.

We remark that we will always assume that a digraph D that we want to color is strongly connected; if this were not the case, we can color each strongly connected component separately, using the same color palette.

3.1 Coloring -Dicolorable Digraphs

We now consider the case in which we are promised an upper bound on the dichromatic number of an input digraph and the goal is to color it with few colors. We first consider the case in which the input digraph D is promised to be 2-colorable. Recall that coloring such a digraph with two colors, even when it is oriented, is 𝖭𝖯-hard [5]. We present Algorithm 1 and use it to prove Theorem 17.

Theorem 17.

Given a digraph D with χ(D)2, there exists a polynomial-time algorithm to properly color D with at most 2n colors.

Algorithm 1 has a similarity to Wigderson’s algorithm for coloring 3-colorable graphs [27]. However, one key difference between coloring 3-colorable graphs and coloring 2-dicolorable digraphs is that in the case of the former, each vertex has a neighborhood that is easy to color, since each vertex neighborhood is bipartite. In the latter case, we are only guaranteed the existence of two vertices, whose out-neighborhoods are acyclic and are therefore easy to color, and both of these vertices might have small out-degree, preventing us from making progress. We circumvent this issue by finding another way to remove small-degree vertices, using Observation 14.

Algorithm 1 Dicoloring(D).
Proof of Theorem 17.

We use the following claims to prove the correctness of Algorithm 1.

Claim 18.

In Step 2 of Algorithm 1, we assign at most n colors from colors {1,,n}.

Proof.

Since each time we use a new color we remove at least n vertices, we assign at most n colors in Step 2.

Claim 19.

The coloring assigned by Algorithm 1 is a proper coloring.

Proof.

First, observe that the backedge graph G corresponding to D[S] and is (n1)-degenerate. Hence we can properly color G using n colors from {n,,2n} 222Notice that if we actually assign n colors in Step 2, then we have colored the whole graph. So if we reach Step 4, we can begin with color n. due to Observation 15. Moreover, due to Observation 14, this coloring is a proper coloring for D[S]. Finally, since we assign a unique color from {1,,n} (distinct from colors assigned to vertices of D[S]) to an acyclic subdigraph of D in each iteration of Step 2, this directly extends to a proper coloring of D.

Since we assign at most n colors in Step 2 and at most n colors in Step 3–5 (Observation 15), we use a total of at most 2n many colors to color D.

We remark that Algorithm 1 can easily be modified so that, on an input digraph D that is not 2-dicolorable, it either outputs a coloring of D with at most 2n colors or outputs an induced subgraph of D in which no vertex has an acyclic out-neighborhood, which is a proof that D is not 2-dicolorable.

A positive answer to the following question would immediately yield an improved bound on the number of colors needed to color a 2-colorable digraph.

Question 1.

Given a 2-dicolorable d-out-degenerate digraph D, can we find a coloring of D using at most d1ϵ colors in polynomial time?

Next, we provide a O(n2)-time algorithm to color a digraph D with χ(D) using at most O(n11) colors, which we use to prove Theorem 20, of which Theorem 17 is a special case.

Algorithm 2 DicoloringGeneral(D, +1).
Theorem 20.

Given a digraph D with χ(D), there exists an algorithm to properly color D with at most n11 colors in time O(n2).

Proof.

We will prove Theorem 20 using Algorithm 2. Let D be a digraph such that χ(D)+1. Due to Observation 13, there exists at least one vertex vV(D) such that χ(N+(v)). Thus, each time we run Step 2, Step (b) will find a successful vertex. Let us assume by induction that DicoloringGeneral(D, ) returns a coloring of D using at most V(D)11 colors in O(V(D)2) time when χ(D). Notice that this statement is true in the base case when =2 by Theorem 17. We use the following claim.

Claim 21.

The maximum value of i in an execution of Algorithm 2 is at most n11+1.

Proof.

Observe that the value of i increases only in Step 2(d) of Algorithm 2, and this occurs when we color some (at least n11+1) vertices of D. Suppose this process occurs q times; that is, there are q disjoint sets of vertices S1,,Sq such that Sj is colored in the j’th execution of Step 2(b) of Algorithm 2 using at most |Sj|11=|Sj|1 colors. Then we have

qn11+1j[q]|Sj|nqn1+1.

At the end of the algorithm, i=j[q]|Sj|1. To complete the proof, we need to establish that j[q]|Sj|1n11+1. Letting nj=|Sj| and noting that the function f(x)=x1 is concave, we have by Jensen’s inequality,
j[q]nj(1)q(1qj[q]nj)1q(nq)1=q1n1(n1+1)1n1=n+1=n11+1.

This completes the proof of the claim.

Thus, due to Claim 21, we have that the total number of colors used in Step 2 of Algorithm 2 is at most n11+1. Since we use at most n11+1 colors in Step 4 and 5 of the algorithm, we have that the total number of colors used by Algorithm 2 is at most (+1)n11+1. Finally, the running time follows from the fact that after at most n invocations of the subroutine to color -colorable digraphs using at most n11 colors, we remove the (non-empty) out-neighborhood of at least one vertex from the digraph D. Thus, we call the subroutine DicolorGeneral(D, ) at most n2 times for a total running time of O(n2n2)=O(n2(+1)).

3.2 Coloring Digraphs with Bounded Independence Number

We now consider digraphs which have bounded independence number. The independence number of a digraph is the size of the maximum independent set of its underlying undirected graph. Tournaments are a well-studied class of digraphs with independence number one. Digraphs with bounded independence number are sometimes referred to as dense digraphs, since for fixed independence number α, they have a quadratic number of edges.

One can hope that some of the algorithmic results for tournaments can be extended to general digraphs parametrized by independence number. In this section, we show that this is the case (i) when we consider digraphs promised to be 2-dicolorable, and (ii) when we consider oriented digraphs with no C3, where Ck is a cyclically oriented cycle on k vertices. The latter result improves upon a bound given by [18] via a simpler algorithm.

We refer to the set of vertices that have no arc from or towards v as its non-neighborhood No(v) (i.e., No(v)=V{N+(v)N(v)v}). We say there is a non-edge between u and v if there is no arc in A from u to v or from v to u. If we are referring to an non-edge with a fixed direction (i.e., a non-edge e=uv), then we refer to it as a non-arc. Notice that if uv is a non-arc, then there is a non-edge between u and v (i.e., if uv is an arc, then we do not say that vu is a non-arc). For an arc or non-arc e=uv, we use N(e) to denote the vertices in N+(v)N(u).

The following observation is useful in digraphs with bounded independence number.

Observation 22.

Let D be a digraph with independence number at most α. Then for every vertex vV(D), the digraph D[No(v)] has independence number at most α1.

One of the main tools presented in [21] for coloring tournaments is a path decomposition, in which a tournament is decomposed into vertex sets, which are essentially the neighborhoods of arcs on a shortest path between two vertices s and t, where N(e) (defined above) is the neighborhood of arc e. Moreover, if s and t are chosen such that N+(s) and N(t) each have small dichromatic number and N(e) has small dichromatic number for each arc e on the shortest path, then this decomposition can be used to show that the whole tournament has small dichromatic number. The main idea is that we can reuse color palettes for neighborhoods of arcs that are far apart on the shortest path, because arcs between these neighborhoods must go backwards, otherwise it would contradict the minimality of the shortest path.

In this section, we adapt this path decomposition to oriented digraphs by taking a shortest path – not just of arcs – but of arcs and non-arcs (in other words, non-edges can be included in the shortest path to be traversed in either direction). Thus, we can fix some pair of vertices s and t, and then we can partition the vertex set of a digraph into neighborhoods of arcs on the shortest path and non-neighborhoods of vertices on the shortest path. We can still ensure that arcs between neighborhoods of arcs and arcs between non-neighborhoods of vertices that are far apart on the shortest path must go backwards, allowing us to reuse a relatively small color palette to color all the vertices of the digraph, except N+(s) and N(t), which must therefore be chosen carefully.

Hence, to apply the path decomposition, the main challenges are finding a good vertex pair s,t such that N+(s) and N(t) each have small dichromatic number, and showing that the non-neighborhoods of the vertices and the neighborhoods of the arcs or non-arcs on a shortest path from s to t each have small dichromatic number. However, we can define the decomposition for any s,t vertex pair.

3.2.1 Decomposition for Digraphs

In this section, we define a decomposition for digraphs based on a shortest path from s to t for any vertex pair s and t. In the next definition, we have v0:=s and vk:=t.

Definition 23.

We define a vertex chain (vi)0ik of a digraph D as follows: Let v0 and vk be a pair of vertices and let (vi)0ik be the vertices in the shortest path from v0 to vk, where the path may consist of both forward arcs and non-arcs (but no backward arcs). If in addition, χ(N+(v0))b and χ(N(vk))b, then we call it a b-vertex chain.

We remark that in the above definition, v0 and vk are not necessarily distinct, in which case the vertex chain consists of a single vertex and the shortest path has length zero.

Additionally, we define an edge chain (ei)1ik corresponding to a vertex chain, where ei is the arc or non-arc from vi1 to vi. We build zones that can be efficiently colored, and such that arcs between zones at distance more than four (i.e., long arcs) go backwards.

Definition 24.

Given a vertex chain (vi)0ik, a path decomposition of a digraph D is defined as:

  • D1=N(e1).

  • For 2ik, Di=N(ei)(1ji1Dj).

  • For 0ik, Ni=No(vi)(1jkDj0ji1Nj).

  • D0=N+(v0)(1jk(DjNj)N0).

  • Dk+1=N(vk)0jk(DjNj).

  • Z=V(0jk(DjNj)Dk+1).

First we prove that this is indeed a decomposition of D.

Lemma 25.

Let D=(V,A) be a digraph, and (D0,,Dk+1,N0,,Nk,Z) be a path decomposition of D. Then Z{v0,vk}.

Proof.

We will prove this by contradiction. Suppose there is a vertex wV{vi}0ik that does not belong to any Di or Ni. Since w does not belong to D0 or to Dk+1 (nor to N0 or Nk), then wN(v0) and wN+(vk). Take the smallest integer i such that wN+(vi). There must be one since wN+(vk). Notice that i1 since wN(v0). Since wNo(vi1), then wN(ei). Therefore, wDi, which is a contradiction.

We note that each vertex in the vertex chain (vi)0ik belongs to a Di or Ni, except in the case where k=0 or k=1. In this case, we add this set of at most two remaining vertices to Z. Finally, we remark that the decomposition is actually a partition of V.

We now show that long arcs between Ni’s or between Di’s go backwards. Since the Nis and Dis will be colored with different color palettes, we do not need to worry about arcs between an Ni and a Dj.

Lemma 26.

Let 0i,jk+1 such that ji+5. For uDi and wDj, we have uN+(w). Furthermore, if uNi and wNj1, we have uN+(w).

Proof.

We will prove this by contradiction. Suppose ji+5 and uN(w) (respectively, uNo(w)). Then there is a path of three arcs (respectively, of two arcs and one non-arc) from vi to vj1, namely (vi,u,w,vj1). (By definition of the decomposition, uDi implies uN+(vi) and wDj implies wN(vj1).) This is not possible since by the definition of the vertex chain as the shortest path, there can be no path between vi and vj1 with fewer than four arcs (since (j1)i(i+51)i=4). Finally, if uNi and wNj1, (vi,u,w,vj1) is also a path (of forward arcs and non-arcs) of length three from vi to vj1, which as previously is a contradiction.

The following lemma demonstrates how the vertex chain and path decomposition can be used to color digraphs.

Lemma 27.

If D has a b-vertex chain that can be found in polynomial time and if χ(N(e))c for each arc and non-arc e, and χ(No(v))d for every vertex v, then

χ(D){5c+4d+2(bc)if b>c,5c+4dif bc.

Furthermore, if there are no arcs from D0 to Dk+1 and max{b,c,d}=b, then χ(D)4c+4d+b.

Proof.

Given a b-vertex chain, we construct a path decomposition as per Definition 23. We make five palettes of c colors each with labels from 0 to 4. We color each Di using the color palette with label imod5. Note that the sets D0 and Dk+1 each require bc extra colors in their palettes if b>c.

Next, we make four different palettes of d colors each with labels from 5 to 8. We color each Ni using the color palette with label 5+(imod4). The set of colors used is of size d for every Ni, thus we can efficiently color each set by the assumption of the lemma.

Our goal is now to prove that this is a proper coloring of the digraph D. We will do this by showing that all forward arcs between different Di or Ni are bicolored. By Lemma 26, there are no forward arcs between Di and Dj when ji+5, or Ni and Nj with ji+4. Furthermore, by the definition of the coloring, no vertex in Di and Dj can share a color for i+1ji+4, and the same goes for vertices in Ni and Nj with i+1ji+3. Thus all forward arcs from Di to Dj or Ni to Nj will be bicolored. Since every Di and Ni is properly colored, and all forward arcs between different Di are bicolored, the unions of Di’s and the union of Ni’s are both properly colored. Since these two sets use disjoint color palettes, and because every vertex is in some Di or Ni (by Lemma 25), the whole digraph D is properly colored. Furthermore, we note that if there are no arcs from D0 to Dk+1, then we can save bc colors resulting in the claimed bound.

Finally, we remark that if the vertex chain consists of at most two vertices, then we have χ(D)2d+c+2b+2, since we can decompose D into (possibly some subset of) Z,N0,N1,D0,Dk and Dk+1. In the case where there are no arcs from D0 to Dk+1, we have χ(D)2d+c+2+b.

3.2.2 Coloring 2-Dicolorable Dense Digraphs

In this section, our goal is to prove Theorem 28.

Theorem 28.

Let D be a 2-dicolorable digraph with independence number α. Then a coloring with at most 103(4α1) colors can be found in polynomial time.

We say an arc e in D is heavy if N(e) contains a directed cycle. Moreover, we say a non-edge between u and v is heavy if N+(u)N(v) or if N+(v)N(u) contains a directed cycle. If a digraph contains no heavy arcs and no heavy non-edges, then it is light. In the case of 2-colorable tournaments, we can partition the vertex set into two tournaments such that no arc is heavy [21], but in the case of 2-colorable digraphs we still need to account for the non-arcs. To do this, we will add a step before this partition.

Lemma 29.

A 2-colorable digraph D can be transformed into a 2-colorable digraph D with no heavy non-arc by adding arcs.

Proof.

Let e be a heavy non-arc between u and v. Without loss of generality, suppose that there is a directed cycle in N+(u)N(v). This cycle must be colored with two colors, thus u, v and any zN(u)N+(v) cannot all be colored the same color, else there would be a monochromatic 4-cycle. Therefore, we can add the arc from u to v, since it will not lead to any monochromatic cycle in a 2-coloring of D. So we can construct D by starting from D, and while there are still heavy non-arcs, we add an arc between two vertices in the way we just described.

After applying Lemma 29, we obtain a digraph in which every non-arc is light. (Of course, we have not increased the independence number, since we have not removed any arcs.) If a digraph contains a digon (i.e., a directed 2-cycle), then both arcs can be considered to be heavy, since the endpoints must have different colors. Since the endpoints of heavy arcs must have different colors, they cannot contain any odd cycles in a 2-coloring. In other words, the set of heavy arcs forms a bipartite graph and we can therefore partition the set of vertices in order to cut all heavy arcs. This results in the following corollary.

Corollary 30.

Let D be a 2-colorable digraph. Then D can be partitioned into two light oriented 2-colorable digraphs D1 and D2 such that χ(D)χ(D1)+χ(D2).

Since finding this partition is equivalent to finding a bipartition of a bipartite graph, it can be found in polynomial time. Next, we prove another useful observation.

Observation 31.

Let D be a k-colorable digraph. Then there exist vertices u and w such that D[N+(u)N(w)] is (k1)-colorable.

Proof.

Since D=(V,A) is k-colorable, there exist k transitive sets X1,,Xk such that V=i=1kXi. Then take u to be the vertex in X1 that has only incoming arcs (or non-arcs) from other vertices in X1 (i.e., the sink vertex for X1). Similarly, take w to be the vertex in X1 that has only outgoing arcs (or non-arcs) to other vertices in X1 (i.e., the source vertex for X1). The out-neighborhood of u and the in-neighborhood of w are both subsets of VX1, and thus so is their union, which is therefore (k1)-colorable.

Now we are ready to prove Theorem 28. We use a subroutine for coloring a light, 2-colorable digraph whose steps are shown in Algorithm 3.

Algorithm 3 DicoloringLightIND(D,α,P).
Proof of Theorem 28.

We begin by using Lemma 29 to transform the input digraph D into a digraph containing no heavy non-arcs. Next, if D is not a light digraph, we partition D into two light 2-colorable digraphs D1,D2 using Corollary 30.

Then we color light digraphs D1 and D2 separately using different color palettes. To color, say, D1, we use a recursive algorithm, whose steps are shown in Algorithm 3. (Notice that this presentation includes some technical implementation details on how to distribute the color palettes during the recursive steps.) First, we find a 1-vertex-chain in D1. To do this, we apply Observation 31, which takes at most O(n2) time (where n=|V(D1)|), by guessing all pairs of endpoints s,t, and checking if the subgraph D1[N+(s)N(t)] is acyclic. Once we have s and t, we find a 1-vertex chain (vi)0ik where v0=s and vk=t. Since D1 is light, we have χ(ei)1 for each arc and each non-arc ei (since each non-arc is light) in the corresponding edge-chain. Moreover, the independence number of each Ni is at most α1 by Observation 22.

In order to prove the upper bound on the number of colors stated in the theorem, we define f(α) to be a function such that f(α)χ(D) for every 2-colorable digraph D with independence number α. Our goal is to find an upper bound on f(α). Additionally, we define fl(α) to be a function such that fl(α)χ(D) for every 2-colorable light digraph. By Corollary, 30 we have f(α)2fl(α). By Lemma 27, we have the following claim.

Claim 32.

fl(α)=5+4fl(α1).

The base case is fl(1)=5, by [21]. A simple calculation leads to the upper bound in the statement of Theorem 28.

It remains to show that Algorithm 3 runs in polynomial time in n (the size of V(D1)). As noted above, we can find a 1-vertex chain and a corresponding path decomposition in polynomial time. Thus, we partition V(D1) into Di’s and Ni’s, where each D1[Ni] has independence number at most α1. We color each Di in polynomial time and recurse on the Nis. Since no vertex is considered in more than one recursive call for a given α, this leads to at most αnn2 recursive calls, resulting in a polynomial-time termination of Algorithm 3.

3.2.3 Coloring 𝑪𝟑-Free Dense Digraphs

In this section, D=(V,A) is a C3-free oriented graph with independence number α(D). Recall that Ck denotes a cyclicly oriented k-cycle. Since adding arcs does not decrease the dichromatic number or increase the independence number, we can assume that D is maximally triangle-free, which means that for any pair of vertices u,v in V with no arc between them, both arcs uv and vu would each create a C3 in D. In other words, if there is no arc between u and v, then there is a C4 in D containing u and v. We will call such a digraph a maximally C3-free digraph. We denote the total out-neighborhood (respectively, in-neighborhood) of a vertex subset S by Nt+(S) (respectively, Nt(S)). A vertex wS belongs to Nt+(S) if for all sS, we have arc swA. The goal of this section is to prove the following theorem.

Theorem 33.

Let D be a C3-free digraph with independence number α. Then D can be colored with at most (α+8)!9! colors in polynomial time.

This improves on the previous bound of χ(D)35α1α! proved by [18]. Notice that if D is a C3-free digraph and α(D)=1, then D is acyclic (i.e., χ(D)=1). To prove this result, we will again use the path decomposition presented in Definition 23. When D is a C3-free digraph, this decomposition has additional useful properties.

Observation 34.

Let D be a C3-free digraph. For a vertex chain (vi)0ik and a corresponding path decomposition in D, there is no arc from D0 to Dk+1.

Proof.

Consider a vertex vDk+1. Since vN0 and vD0, it follows that vN(v0). Thus, for some uD0, if there is an arc uv, then there is a C3 in D, a contradiction.

By Lemma 27, Observation 34 allows us to color D0 and Dk+1 with the same color palette. This is useful when D0 and Dk+1 require many more colors than N(ei). Let g(α) denote the maximum dichromatic number of a C3-free digraph with independence number at most α.

Lemma 35.

Let D be a maximally C3-free digraph. If uv is a non-arc in D, then χ(N(uv))g(α1).

Proof.

Let a be a vertex in N(uv). Since uv is a non-arc, there is also no edge between u and v. Thus, it must be the case that adding arc vu causes a C3, say with w. So then N(uv)No(w). If this were not the case, then we would have either triangle wva or wau, which is a contradiction.

Lemma 36.

Let D be a maximally C3-free digraph with independence number at most α. D has vertices s1,s2V such that χ(N(s1))αg(α1) and χ(N+(s2))αg(α1).

Proof.

Find a semi-kernel K in D. A semi-kernel is an independant and distance-2 dominating set in a digraph and can be found in polynomial time [6]. First, we claim that Nt(K) is empty. If not, then there is a vertex yNt(K), and y is not dominated by any vertex in K (since our digraph does not contain digons). Thus there exists a vertex vK such that v 2-dominates y, while yv is an arc by definition of Nt(K) which gives a C3 in D, a contradiction.

Now denote by U the set of vertices not in any non-neighborhood No(v) of a vertex vK. In other words, a vertex u is in U if u has an arc to or from each vertex in K. For each vertex uU, define Nu=N(u)K, which gives a subset family of size |U| on K. Among them pick a minimal one, say Nu, and then arbitrarily choose a vertex s1Nu. We claim that χ(N(s1))αg(α1).

For any in-neighbor w of s1, either w lies in non-neighborhood of some vertex in Ks1, or wU. The former case can be covered by (α1)g(α1) colors since |K|α. Next we prove that in the latter case, wNo(u). Note that ws1 and s1u are arcs by definition. As in the proof of Lemma 35, it suffices to find v such that vw and uv are arcs. We claim that there must exist such a vK. Suppose not, then NwNu, contradicting the fact that Nu is minimal since w,uU and s1Nu but s1Nw. Thus χ(N(s1))(α1)g(α1)+g(α1)=αg(α1).

By reversing the direction of all arcs, the same argument results in a vertex s2 such that χ(N+(s2))αg(α1). (Note that s1 and s2 need not be distinct.)

The following corollary of Lemma 36 that shall be useful in simplifying the presentation of Algorithm 4.

Corollary 37.

Let D be a maximally C3-free digraph with independence number at most α. Then, in polynomial time, we can find vertices s,t such that each N+(s) and N(t) can be partitioned into at most α components S1,,Sα and T1,,Tα, respectively, such that for 1jα, D[Sj] and D[Tj] each has independence number at most α1.

We are now ready to prove Theorem 33 via the algorithm whose steps are detailed in Algorithm 4.

Proof of Theorem 33.

We give an overview of Algorithm 4. Consider a maximally C3-free digraph D with independence number α. By Lemma 36, we can find a pair of vertices s,t such that χ(N+(s))αg(α1) and χ(N(t))αg(α1). Next, we find a b-vertex chain (vi)0ik, where v0=s,vk=t and b=αg(α1). For every non-arc ei in the corresponding edge-chain, we have χ(N(ei))g(α1) due to Lemma 35. For every arc ei, observe that N(ei) is empty, since D is C3-free. Thus, for each Di for 1ik in the path decomposition, we have χ(Di)g(α1). Additionally, each D[Ni] has independence number at most α1 by Observation 22 and thus has χ(Ni)g(α1). Applying Lemma 27 and Observation 34, implies the following claim.

Claim 38.

g(α)(α+8)g(α1).

The base case is g(1)=1, since a C3-free tournament is acyclic. A simple calculation leads to the upper bound stated in the theorem. It remains to show that Algorithm 4 runs in polynomial time. Since an execution of the algorithm on D makes at most α+8 recursive calls on subdigraphs with independence number α1, and these respective subdigraphs are vertex disjoint, each vertex is included in at most αnn2 recursive calls, resulting in a polynomial-time termination.

Algorithm 4 DicoloringC3-Free(D,α,P).

We conclude this section with the following conjecture.

Conjecture 39.

In an oriented C3-free digraph D with independence number α, there is a vertex v such that D[N+(v)] has independence number α1.

A proof of this conjecture would imply a singly exponential bound on the dichromatic number for C3-free digraphs (i.e., of the form cα). Specifically, in Claim 38, we would have g(α)9g(α1). Conjecture 39 is trivially true for α=1, since a C3-free tournament contains a sink vertex, which has out-degree zero. It is also true when α=2 due to a proof by Pierre Charbit and Samuel Coulomb.

Theorem 40.

In an oriented C3-free digraph D with independence number 2, there is a vertex v such that D[N+(v)] is a tournament.

Proof.

Let x be a vertex in D with minimum out-degree and let y be the sink of No(x) (the non-neighbors of x, which by Observation 22 form a tournament). We will show that either N+(x) or N+(y) is a tournament.

Suppose y has an out-neighbor zN+(x). Notice that z cannot have an out-neighbor wNo(x), because yzw would form a C3. Moreover, z cannot have an out-neighbor uN(x), since xzu would also form a C3. Thus, all out-neighbors of z are in N+(x), which implies that the out-degree of z is strictly less than the out-degree of x, a contradiction. Hence, y has no out-neighbor in N+(x).

Now, suppose y has an in-neighbor zN+(x). Recall that y has no out-neighbor in N+(x) nor in No(x), so N+(y)N(x). But for any vertex wN+(y), there is no arc wz and no arc zw, as otherwise xzw or ywz form a C3. Thus, N+(y) belongs to No(z) and must therefore be a tournament. Lastly, if y has no neighbor in N+(x), then N+(x)No(y) is a tournament.

In the special case of a C3-free digraph D where α(D)=2, [18] claimed a bound of around 25 colors, although the best lower bound is 2 (for C4 and C5). As a corollary of Theorem 33, we can improve this bound to 10 colors. Using Theorem 40, we can further decrease this bound by one.

Corollary 41.

Let D be a C3-free digraph with α(D)=2. Then χ(D)9.

4 Conclusions and Open Questions

We established that we can efficiently color a 2-colorable digraph D on n vertices using at most 2n colors. In the case of undirected graphs, we can color 3-colorable graphs using O(n0.19747) colors [20]. An interesting open question is if we can find an efficient algorithm to color a 2-colorable digraph with O(n12ε) colors for some ε>0. As mentioned in Section 3, a positive answer to Question 1 will lead to a better coloring for 2-colorable digraphs. Another interesting question in this direction can be to see if semidefinite programming based techniques be used here in combination with the combinatorial arguments to obtain better colorings.

Regarding inapproximability results on 2-colorable digraphs, which are rather limited, the best result we know is that it is NP-hard to color a 2-colorable digraph (actually, a tournament) using at most 3 colors [21]. One natural question is the following.

Question 2.

For a constant k>3, what is the computational complexity of coloring a 2-colorable digraph using at most k colors?

We suspect that the above question has an answer similar to the same question on 3-uniform hypergraphs: Given a 3-uniform hypergraph that is 2-colorable, it is 𝖭𝖯-hard to color it using k colors, for any constant k [12].

References

  • [1] Pierre Aboulker, Guillaume Aubian, and Pierre Charbit. Heroes in oriented complete multipartite graphs. Journal of Graph Theory, 105(4):652–669, 2024. doi:10.1002/JGT.23061.
  • [2] Pierre Aboulker, Guillaume Aubian, Pierre Charbit, and Stéphan Thomassé. (P6, triangle)-free oriented digraphs have bounded dichromatic number. The Electronic Journal of Combinatorics, 31(4):P4.60, 2024.
  • [3] Noga Alon, János Pach, and József Solymosi. Ramsey-type theorems with forbidden subgraphs. Combinatorica, 21(2):155–170, 2001. doi:10.1007/S004930100016.
  • [4] Eli Berger, Krzysztof Choromanski, Maria Chudnovsky, Jacob Fox, Martin Loebl, Alex Scott, Paul Seymour, and Stéphan Thomassé. Tournaments and colouring. Journal of Combinatorial Theory, Series B, 103(1):1–20, 2013. doi:10.1016/J.JCTB.2012.08.003.
  • [5] Drago Bokal, Gasper Fijavz, Martin Juvan, P. Mark Kayll, and Bojan Mohar. The circular chromatic number of a digraph. Journal of Graph Theory, 46(3):227–240, 2004. doi:10.1002/JGT.20003.
  • [6] J. Adrian Bondy. Short proofs of classical theorems. Journal of Graph Theory, 44(3):159–165, 2003. doi:10.1002/JGT.10135.
  • [7] Parinya Chalermsook, Bundit Laekhanukit, and Danupon Nanongkai. Graph products revisited: Tight approximation hardness of induced matching, poset dimension and more. In Proceedings of the 24th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1557–1576, 2013. doi:10.1137/1.9781611973105.112.
  • [8] Parinya Chalermsook, Bundit Laekhanukit, and Danupon Nanongkai. Pre-reduction graph products: Hardnesses of properly learning DFAs and approximating EDP on DAGs. In Proceedings of 55th Annual IEEE Symposium on Foundations of Computer Science (FOCS), pages 444–453, 2014. doi:10.1109/FOCS.2014.54.
  • [9] Xujin Chen, Xiaodong Hu, and Wenan Zang. A min-max theorem on tournaments. SIAM Journal on Computing, 37(3):923–937, 2007. doi:10.1137/060649987.
  • [10] Maria Chudnovsky. The Erdős-Hajnal conjecture–A survey. Journal of Graph Theory, 75(2):178–190, 2014.
  • [11] Maria Chudnovsky, Alex Scott, Paul Seymour, and Sophie Spirkl. Pure pairs. X. Tournaments and the strong Erdős-Hajnal property. European Journal of Combinatorics, 115:103786, 2024. doi:10.1016/J.EJC.2023.103786.
  • [12] Irit Dinur, Oded Regev, and Clifford D. Smyth. The hardness of 3-uniform hypergraph coloring. Combinatorica, 25(5):519–535, 2005. doi:10.1007/S00493-005-0032-4.
  • [13] Paul Erdős and András Hajnal. Ramsey-type theorems. Discrete Applied Mathematics, 25(1-2):37–52, 1989. doi:10.1016/0166-218X(89)90045-0.
  • [14] Tom Feder, Pavol Hell, and Carlos Subi. Complexity of acyclic colorings of graphs and digraphs with degree and girth constraints. arXiv preprint, 2019. arXiv:1907.00061.
  • [15] Uriel Feige and Joe Kilian. Zero knowledge and the chromatic number. Journal of Computer and System Sciences, 57(2):187–199, 1998. doi:10.1006/JCSS.1998.1587.
  • [16] Jacob Fox, Lior Gishboliner, Asaf Shapira, and Raphael Yuster. The removal lemma for tournaments. Journal of Combinatorial Theory, Series B, 136:110–134, 2019. doi:10.1016/J.JCTB.2018.10.001.
  • [17] Ararat Harutyunyan, Michael Lampis, and Nikolaos Melissinos. Digraph coloring and distance to acyclicity. Theory of Computing Systems, 68(4):986–1013, 2024. doi:10.1007/S00224-022-10103-X.
  • [18] Ararat Harutyunyan, Tien-Nam Le, Alantha Newman, and Stéphan Thomassé. Coloring dense digraphs. Combinatorica, 39:1021–1053, 2019. doi:10.1007/S00493-019-3815-8.
  • [19] David Karger, Rajeev Motwani, and Madhu Sudan. Approximate graph coloring by semidefinite programming. Journal of the ACM, 45(2):246–265, 1998. doi:10.1145/274787.274791.
  • [20] Ken-ichi Kawarabayashi, Mikkel Thorup, and Hirotaka Yoneda. Better coloring of 3-colorable graphs. In Proceedings of the 56th Annual ACM Symposium on Theory of Computing (STOC), pages 331–339, 2024. doi:10.1145/3618260.3649768.
  • [21] Felix Klingelhoefer and Alantha Newman. Coloring tournaments with few colors: Algorithms and complexity. SIAM Journal on Discrete Mathematics, 38(4):3111–3133, 2024. doi:10.1137/23M1602127.
  • [22] Bojan Mohar. Eigenvalues and colorings of digraphs. Linear Algebra and its Applications, 432(9):2273–2277, 2010.
  • [23] Victor Neumann-Lara. The dichromatic number of a digraph. Journal of Combinatorial Theory, Series B, 33(3):265–270, 1982. doi:10.1016/0095-8956(82)90046-6.
  • [24] Tung Nguyen. Problem 7, Open Problems for the 2025 Barbados Graph Theory Workshop. Bellairs Research Institute of McGill University, https://web.math.princeton.edu/˜pds/barbados25/problems.pdf, March 2025.
  • [25] Tung Nguyen, Alex Scott, and Paul Seymour. Induced subgraph density. VI. Bounded VC-dimension. arXiv preprint, 2023. arXiv:2312.15572.
  • [26] Tung Nguyen, Alex Scott, and Paul Seymour. Some results and problems on tournament structure. Journal of Combinatorial Theory, Series B, 173:146–183, 2025. doi:10.1016/J.JCTB.2025.02.002.
  • [27] Avi Wigderson. Improving the performance guarantee for approximate graph coloring. Journal of the ACM, 30(4):729–735, 1983. doi:10.1145/2157.2158.
  • [28] David Zuckerman. Linear degree extractors and the inapproximability of max clique and chromatic number. In Proceedings of the thirty-eighth annual ACM symposium on Theory of computing, pages 681–690, 2006. doi:10.1145/1132516.1132612.