Abstract 1 Introduction 2 Mixed Graph Parameters 3 Parameterized Complexity of MixedColoring 4 Open Problems References

The Parameterized Complexity of Coloring Mixed Graphs

Antonio Lauerbach ORCID Julius-Maximilians-Universität Würzburg, Germany    Konstanty Junosza-Szaniawski ORCID Warsaw University of Technology, Poland    Marie Diana Sieper ORCID Julius-Maximilians-Universität Würzburg, Germany    Alexander Wolff ORCID Julius-Maximilians-Universität Würzburg, Germany
Abstract

A mixed graph contains (undirected) edges as well as (directed) arcs, thus generalizing undirected and directed graphs. A proper coloring c of a mixed graph G assigns a positive integer to each vertex such that c(u)c(v) for every edge {u,v} and c(u)<c(v) for every arc (u,v) of G. As in classical coloring, the objective is to minimize the number of colors. Thus, mixed (graph) coloring generalizes classical coloring of undirected graphs and allows for more general applications, such as scheduling with precedence constraints, modeling metabolic pathways, and process management in operating systems; see a survey by Sotskov [Mathematics, 2020].

We initiate the systematic study of the parameterized complexity of mixed coloring. We focus on structural graph parameters that lie between cliquewidth and vertex cover, primarily with respect to the underlying undirected graph. Unlike classical coloring, which is fixed-parameter tractable (𝖥𝖯𝖳) parameterized by treewidth or neighborhood diversity, we show that mixed coloring is 𝖶[𝟣]-hard for treewidth and even paraNP-hard for neighborhood diversity. To utilize the directedness of arcs, we introduce and analyze natural generalizations of neighborhood diversity and cliquewidth to mixed graphs, and show that mixed coloring becomes 𝖥𝖯𝖳 when parameterized by (the generalized) mixed neighborhood diversity. Further, we investigate how these parameters are affected if we add transitive arcs, which do not affect colorings. Finally, we provide tight bounds on the chromatic number of mixed graphs, generalizing known bounds on mixed interval graphs.

Keywords and phrases:
Mixed Graphs, Coloring, Parameterized Complexity, Structural Graph Parameters
Copyright and License:
[Uncaptioned image] © Antonio Lauerbach, Konstanty Junosza-Szaniawski, Marie Diana Sieper, and Alexander Wolff; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Parameterized complexity and exact algorithms
; Mathematics of computing Graph coloring
Related Version:
Full Version: https://arxiv.org/abs/2604.15274 [26]
Acknowledgements:
This work was started at the workshop Homonolo 2024 in Nová Louka. We thank the organizers and the other participants.
Editor:
Pierre Fraigniaud

1 Introduction

The problem of coloring graphs, i.e., assigning as few colors as possible to vertices of an undirected graph such that adjacent vertices receive distinct colors, is an old and extensively studied problem in graph theory with applications in various areas, such as scheduling, frequency assignment, and graph drawing [24]. An example of a scheduling problem that can be modeled using graph coloring is timetabling, where courses (vertices) need to be scheduled in certain time slots (colors) while respecting conflicts (edges), e.g., due to two courses having the same teacher or students. These types of problems are referred to as chromatic scheduling problems. In real world applications, there are usually several additional constraints, such as certain courses having to be scheduled in specific time slots, certain teachers not being available at certain times, courses using multiple consecutive time slots, or a lecture having to be held before the corresponding exercises. Thus, there exist several extensions of coloring to accommodate these additional constraints, such as using list coloring to restrict courses to certain slots [9], or using interval coloring to enforce consecutive time slots [23]. To account for precedence constraints, for example, if a course has to be scheduled before another, Hansen et al. [20] added arcs to the graph, with the idea that the arc (u,v) expresses that u has to be scheduled before v. This leads to the notion of a mixed graph G, which consists of a set V(G) of vertices, a set E(G) of (undirected) edges, and a set A(G) of (directed) arcs. A mixed graph combines the concepts of undirected and directed graphs. We require mixed graphs to be simple, i.e., without loops and without parallel edges or arcs.

A k-coloring c:V(G){1,,k} of a mixed graph G is proper if it holds for every edge {u,v}E(G) that c(u)c(v) and it holds for every arc (u,v)A(G) that c(u)<c(v). We call the problem of deciding whether a mixed graph can be properly colored with k colors k-MixedColoring. As a mixed graph cannot be properly colored if it contains a directed cycle, we consider only mixed graphs without directed cycles. Apart from scheduling, mixed graph colorings have also been applied in graph drawing in order to compact layered orthogonal drawings [19]. See the survey by Sotskov [32] for more details and applications of mixed graph colorings.

Since MixedColoring generalizes the classical Coloring problem for undirected graphs, it is also 𝖭𝖯-hard for three or more colors. As such, it is natural to study its parameterized complexity. However, to our knowledge, there has not yet been a systematic study of the parameterized complexity of MixedColoring. The only known results in this direction are an 𝖥𝖯𝖳-algorithm parameterized by the number of edges (i.e., not counting arcs) by Hansen et al. [20], with subsequent improvements by Damaschke [8], as well as an 𝖷𝖯-algorithm parameterized by treewidth by Ries and de Werra [30].

Meanwhile, the parameterized complexity of Coloring has been extensively studied. On the positive side, results include the well-known dynamic program that runs in 𝒪(k𝗍𝗐) time, where k is the number of colors, 𝗍𝗐 is the treewidth of the graph, and the 𝒪-notation hides polynomial factors. Since treewidth bounds the chromatic number of undirected graphs, this implies that Coloring is 𝖥𝖯𝖳 parameterized by treewidth. Lokshtanov et al. [27] even showed that under SETH (a hypothesis about the complexity of SAT with at most k literals per clause) there is no 𝒪((kε)𝗍𝗐)-time algorithm for any ε>0, i.e., the 𝒪(k𝗍𝗐) algorithm is probably optimal. Further results include Coloring being 𝖥𝖯𝖳 parameterized by neighborhood diversity, as shown by Ganian [15]. On the negative side, Fomin et al. [13] showed that Coloring is 𝖶[𝟣]-hard parameterized by cliquewidth. However, Coloring still admits an 𝖷𝖯-algorithm parameterized by cliquewidth, as shown by Kobler and Rotics [22]. Further, applying Courcelle’s theorem [4, 5], a famous meta-theorem that yields 𝖥𝖯𝖳-algorithms, it follows that Coloring is 𝖥𝖯𝖳 parameterized by cliquewidth plus chromatic number.

Understanding the relationships between various structural graph parameters is crucial for analyzing the parameterized complexity of a problem. We say that a graph parameter α (upper) bounds another parameter β if there exists a computable function f such that for every (mixed) graph G, it holds that β(G)f(α(G)). If no such function exists, we say that α does not (upper) bound β. If α (upper) bounds β and β does not (upper) bound α, we say that α strictly (upper) bounds β. Meanwhile, if neither parameter bounds the other, we say that they are incomparable. Conversely, if two parameters bound each other, we say that they are equivalent. For example, since treewidth is bounded by vertex cover, this implies that any problem that is 𝖥𝖯𝖳 parameterized by treewidth, such as Coloring, is also 𝖥𝖯𝖳 parameterized by vertex cover.

For mixed graphs however, it is not immediately clear how to apply the existing parameters, as they are defined for undirected graphs. The approach taken in previous works is to consider the parameters w.r.t. the underlying undirected graph, i.e., the graph obtained by replacing all arcs with edges. The downside of this approach is that it neglects the directedness of arcs. In fact, Courcelle and Olariu [6] originally defined cliquewidth for undirected as well as for directed graphs, yielding a natural generalization for mixed graphs. Further, Fernau et al. [11] generalized neighborhood diversity to directed graphs by distinguishing between incoming and outgoing neighbors; this can also be generalized to mixed graphs.

Figure 1: Overview of the hierarchy of structural parameters of mixed graphs (without directed cycles), and the parameterized complexity landscape for MixedColoring. Arrows represent strict (upper) bounds between parameters. Bold arrows indicate new relationships established in this work. White-tipped arrows highlight results that are not straightforward consequences of known results. Composite parameters are omitted for clarity.
Table 1: Our parameterized complexity results for MixedColoring including results for composite parameters. The complexity of other parameters can be inferred from the parameter hierarchy in Figure 1.
Parameter Complexity Reference
𝗆𝖼𝗐+χ 𝖥𝖯𝖳 Theorem 18
𝗆𝗇𝖽 𝖥𝖯𝖳 Theorem 28
𝗇𝖽+χ 𝖥𝖯𝖳 Theorem 31
𝗍𝗐 𝖷𝖯 Cor.  20
𝖿𝗏𝗌+𝗉𝗐 𝖶[𝟣]-hard Theorem 23
𝗆𝖼𝗐+Λ paraNP-hard Theorem 24
𝗇𝖽+ paraNP-hard Theorem 25

Contribution.

In order to better explore the parameterized complexity of MixedColoring, we first introduce and analyze the generalizations of neighborhood diversity and cliquewidth to mixed graphs, which we call mixed neighborhood diversity (𝗆𝗇𝖽) and mixed cliquewidth (𝗆𝖼𝗐), respectively. Since in MixedColoring we can assume that the input graph does not contain directed cycles, we only analyze these parameters for mixed graphs without directed cycles. We explore their relationships with existing parameters defined on the underlying undirected graph, such as vertex cover (𝗏𝖼), treedepth (𝗍𝖽), pathwidth (𝗉𝗐), feedback vertex set (𝖿𝗏𝗌), treewidth (𝗍𝗐), as well as neighborhood diversity (𝗇𝖽) and cliquewidth (𝖼𝗐); see the full version [26] for detailed definitions. Specifically, we show that 𝗆𝖼𝗐 strictly bounds 𝖼𝗐 (Proposition 1) and is strictly bounded by 𝗍𝗐 (Proposition 2). Similarly, we show that 𝗆𝗇𝖽 strictly bounds 𝗇𝖽 (Proposition 5) and is strictly bounded by 𝗏𝖼 (Proposition 6). Furthermore, we show that 𝗆𝗇𝖽 strictly bounds 𝗆𝖼𝗐 (Proposition 7), while 𝗆𝖼𝗐 and 𝗇𝖽 are incomparable (Proposition 8).

Since arcs enforce precedence constraints on the colors of the vertices, transitive arcs, i.e., arcs between vertices connected by a directed path along other arcs, do not influence the properness of colorings of mixed graphs. Adding all transitive arcs (and removing any edges parallel to transitive arcs) results in the transitive closure G+ of a mixed graph G (without directed cycles). We denote with α+ the transitive closure counterpart of the parameter α, i.e., α+(G)=α(G+). We show that 𝗏𝖼, 𝗍𝖽, 𝗉𝗐, 𝖿𝗏𝗌, and 𝗍𝗐 are strictly bounded by their transitive closure counterparts (Proposition 9), while for 𝗆𝖼𝗐 and 𝗆𝗇𝖽 the situation is inverted, with 𝗆𝖼𝗐 and 𝗆𝗇𝖽 strictly bounding 𝗆𝖼𝗐+ and 𝗆𝗇𝖽+, respectively (Proposition 12). Meanwhile, 𝖼𝗐 and 𝗇𝖽 are incomparable to their transitive closure counterparts (Proposition 13). The resulting hierarchy of parameters is visualized in Figure 1.

Furthermore, we also consider bounds for the chromatic number (χ) of mixed graphs, i.e., the minimum number of colors needed for a proper coloring. After providing some simple lower bounds, i.e., that the chromatic number of a mixed graph is lower-bounded by the chromatic number of the underlying undirected graph as well as by maxrank (Λ), the length of the longest directed path, we generalize and tighten a bound by Gutowski et al. [18] on the chromatic number of mixed interval graphs (Theorem 15). Based on this, we show that the chromatic number of a mixed graph is bounded by 𝗍𝗐+ as well as 𝗍𝖽 and 𝗏𝖼 (Corollary 17).

Using the newly established parameter relationships, we analyze the parameterized complexity of MixedColoring in Section 3. The results are summarized in Table 1 and visualized in Figure 1. We conclude with an outlook on open problems in Section 4.

Coloring Directed Graphs.

For directed graphs, Neumann-Lara [28] introduced the dichromatic number and the corresponding coloring, where each color class induces an acyclic subgraph. This problem, known as DigraphColoring [21], also generalizes coloring undirected graphs, as each edge can be replaced by two opposite arcs. Therefore, DigraphColoring is 𝖭𝖯-hard. In contrast, MixedColoring is easy on directed graphs: if the graph is acyclic, greedily coloring vertices in topological order yields an optimal coloring. Otherwise, the graph cannot be properly colored. This difference arises due to the fact that DigraphColoring treats arcs very differently: in MixedColoring, there cannot be arcs between vertices of the same color, whereas in DigraphColoring there can be arcs between vertices of the same color, as long as these arcs do not form a directed cycle.

On directed acyclic graphs, MixedColoring, especially when considering the transitive closure, behaves somewhat similar to OrientedColoring [31], where, between each pair of color classes, all arcs must have the same orientation. However, contrary to MixedColoring, OrientedColoring does not forbid directed cycles.

Conventions.

For positive integer k, we use [k] as shorthand for {1,,k}. We say that a mixed graph G is a partial orientation of its underlying undirected graph. The full versions of proofs marked with a (clickable) star () can be found in the full version of this paper [26].

2 Mixed Graph Parameters

We define the mixed cliquewidth of a mixed graph G, denoted by 𝗆𝖼𝗐(G), to be the minimum number of distinct labels needed to construct G using the following operations:

  • creation of a new vertex with label i, denoted by i.

  • disjoint union of two labeled mixed graphs, denoted by .

  • adding an (undirected) edge between every vertex with label i and every vertex with label j, for ij, denoted by ηi,j.

  • adding a (directed) arc from every vertex with label i to every vertex with label j, for ij, denoted by αi,j.

  • renaming label i to label j, denoted by ϱij.

These are exactly the operations used by Courcelle and Olariu [6] in their definitions of cliquewidth for undirected and directed graphs. Instead of using only ηi,j for undirected graphs and only αi,j for directed graphs, we allow both operations to be used in order to construct mixed graphs, thereby generalizing the concept of cliquewidth to mixed graphs. We call the sequence of such operations constructing a given mixed graph using labels a mixed -expression. For example, the directed path of length 4 is constructed by the mixed 3-expression α2,3(ϱ32(ϱ21(α2,3(α1,2(12)3)))3). As it turns out, mixed cliquewidth is not bounded by cliquewidth.

Proposition 1.

For any mixed graph G (without directed cycles), 𝖼𝗐(G)𝗆𝖼𝗐(G). Furthermore, 𝖼𝗐 does not bound 𝗆𝖼𝗐.

Proof.

The first part follows directly from the definitions, as replacing all arc operations by edge operations in a mixed -expression constructing G yields an -expression constructing the underlying undirected graph of G.

Let AG(G) be the subgraph of G resulting from omitting all edges. It holds that 𝗆𝖼𝗐(AG(G))𝗆𝖼𝗐(G), as by omitting the edge operations in a mixed -expression constructing G we obtain a mixed -expression for AG(G). Using this, we construct a family of mixed graphs (G)1 with 𝖼𝗐(G)=2 and 𝗆𝖼𝗐(G)+1. We construct G by orienting an (×)-grid graph such that no directed cycles are created. As shown by Golumbic and Rotics [17], the cliquewidth of an (×)-grid graph is +1 and thus 𝗆𝖼𝗐(G)𝗆𝖼𝗐(AG(G))𝖼𝗐(AG(G))=+1. Furthermore, between any pair of vertices of G that are not connected by an arc, we add an edge. This results in the underlying undirected graph of G being a complete graph, which has cliquewidth 2, and thus 𝖼𝗐(G)=2.

Courcelle and Olariu [6] showed that the cliquewidth of undirected as well as of directed graphs is bounded by treewidth. We can utilize their result for directed graphs to show that mixed cliquewidth (on mixed graphs without directed cycles) is also bounded by treewidth. To this end, we transform a mixed graph G without directed cycles into its corresponding directed graph D(G) by replacing each edge {u,v} by two opposite arcs (u,v) and (v,u). Since mixed graphs without directed cycles cannot contain opposite arcs (as they would form a directed cycle of length two) this transformation is injective. We define the directed cliquewidth of a mixed graph G without directed cycles, denoted 𝖽𝖼𝗐(G), to be the (directed) cliquewidth of the corresponding directed graph D(G). As we show now, mixed and directed cliquewidth are, while not equal, equivalent under the lens of parameterized complexity.

Proposition 2 ().

For any mixed graph G (without directed cycles), it holds that 𝖽𝖼𝗐(G)𝗆𝖼𝗐(G)2𝖽𝖼𝗐(G)2(2𝗍𝗐(G)+1+1). Further, there exists a mixed graph G~ such that 𝖽𝖼𝗐(G~)𝗆𝖼𝗐(G~).

Idea.

Converting a mixed -expression for G into a directed -expression for D(G) is straightforward, as we can replace each edge operation by two opposite arc operations. The inverse requires a careful manipulation of the -expression for D(G), to ensure that we can replace pairs of opposite arc operations by edge operations.

The partial orientation G~ of the star K1,2, where the center vertex is connected to one leaf by an edge and to the other leaf by an outgoing arc, has 𝖽𝖼𝗐(G~)=2 and 𝗆𝖼𝗐(G~)=3.

In order to generalize neighborhood diversity to mixed graphs without directed cycles, we first need to define the different types of neighbors that occur in a mixed graph. Given a vertex v of a mixed graph G, the outgoing neighbors of v, denoted by N+(v), are all vertices u to which v has an outgoing arc (v,u). Analogously, the incoming neighbors of v, denoted by N(v), are all vertices u from which v has an incoming arc (u,v). The undirected neighbors of v, denoted by Nu(v), are all vertices u which are connected to v by an edge {u,v}. Thus, the neighborhood of a vertex v, denoted by N(v), is the union of its incoming, outgoing, and undirected neighbors.

The parameter neighborhood diversity is defined for undirected graphs via an equivalence relation on the vertices, where two vertices u,v are of the same type, denoted u𝗇𝖽v, if they have the same neighbors, i.e., if N(u){v}=N(v){u}. We generalize this equivalence relation to mixed graphs by further distinguishing between incoming, outgoing, and undirected neighbors. Therefore, two vertices u,v of a mixed graph G are of the same (mixed) type, denoted u𝗆𝗇𝖽v, if they have the same in-, out-, and undirected neighbors, i.e., if Nu(u){v}=Nu(v){u}, N(u)=N(v), and N+(u)=N+(v).

Lemma 3 ().

For any mixed graph G (without directed cycles), the relation 𝗆𝗇𝖽 is an equivalence relation. Further, vertices of the same type induce an (undirected) clique or an independent set.

We call the partition of the vertices into equivalence classes under 𝗆𝗇𝖽 a mixed neighborhood partition. The mixed neighborhood diversity of a mixed graph G, denoted 𝗆𝗇𝖽(G), is the number of equivalence classes under 𝗆𝗇𝖽. Note that this generalizes the definition of neighborhood diversity for undirected graphs. Furthermore, for mixed graphs without directed cycles, this is also a generalization of the definition of neighborhood diversity for directed graphs by Fernau et al. [11], as in directed graphs without directed cycles there are no opposite arcs. Note further that a mixed neighborhood partition can be obtained easily: it suffices to check, for each pair of vertices, whether they are of the same type.

As is the case for mixed cliquewidth and cliquewidth, the mixed neighborhood diversity can differ arbitrarily from the neighborhood diversity of the underlying undirected graph since each vertex in a directed path has to be of a different type, as we show now.

Lemma 4.

Given a mixed graph G (without directed cycles) that contains a directed path of length , it holds that 𝗆𝗇𝖽(G)+1, with each vertex on the path being of a different type.

Proof.

We know from Lemma 3 that there cannot be an arc between two vertices of the same type. Let v0,v1,,v be a directed path of length in G. Suppose that there are two vertices vi,vj with i<j that are of the same type. Since vj1N(vj), it follows that vj1N(vi). However, as ij1, it follows that there exists a directed path from vi to vj1 in G. Together with the arc (vj1,vi), this yields a directed cycle, a contradiction to G containing no directed cycles.

Proposition 5.

For any mixed graph G (without directed cycles), 𝗇𝖽(G)𝗆𝗇𝖽(G). Furthermore, 𝗇𝖽 does not bound 𝗆𝗇𝖽.

Proof.

It follows directly from the definitions that two vertices of the same type w.r.t. 𝗆𝗇𝖽 must also be of the same type w.r.t. 𝗇𝖽. Indeed, if u𝗆𝗇𝖽v, it holds that

N(u){v}=N(u)N+(u)Nu(u){v}=N(v)N+(v)Nu(v){u}=N(v){u}

(as there cannot be any arc between u and v) and therefore u𝗇𝖽v.

The inverse does not hold, as two vertices of the same type w.r.t. 𝗇𝖽 may differ in their in- or out-neighbors, as the following family (G)1 of graphs shows. The graph G is a partial orientation of the complete graph K obtained by orienting 1 edges such that the resulting mixed graph contains a directed Hamiltonian path. It holds that 𝗇𝖽(G)=1 but, due to Lemma 4, 𝗆𝗇𝖽(G).

Lampis [25] showed that neighborhood diversity is bounded by vertex cover, as the type of vertices not contained in the cover is determined uniquely by their neighbors (in the cover), resulting in a bound of 𝗏𝖼+2𝗏𝖼. Since mixed neighborhood diversity further distinguishes between in-, out-, and undirected neighbors, we obtain the following bound.

Proposition 6.

For any mixed graph G (without directed cycles), 𝗆𝗇𝖽(G)𝗏𝖼(G)+4𝗏𝖼(G).

Proof.

Let C be a vertex cover of G of size 𝗏𝖼(G). Since each vertex in V(G)C only contains neighbors in C, there are at most 4𝗏𝖼(G) different types of vertices in V(G)C, as each vertex in C can be an in-, out-, or undirected neighbor, or not a neighbor at all. Further, there can be at most 𝗏𝖼(G) different types of vertices in C, as C contains 𝗏𝖼(G) vertices. Thus, the total number of types is bounded by 𝗏𝖼(G)+4𝗏𝖼(G).

If a parameter does not bound 𝗇𝖽 (𝖼𝗐) on undirected graphs (or vice versa), it also does not bound 𝗆𝗇𝖽 (𝗆𝖼𝗐) (or vice versa), as it holds that 𝗆𝗇𝖽=𝗇𝖽 (𝗆𝖼𝗐=𝖼𝗐) on undirected graphs. Lampis [25] showed that 𝗇𝖽 bounds 𝖼𝗐 and that 𝗍𝗐 (and therefore 𝖼𝗐) does not bound 𝗇𝖽 (𝗇𝖽 is even incomparable to 𝗍𝗐). It follows from this that 𝗆𝖼𝗐 does not bound 𝗆𝗇𝖽. Using a proof analogous to Lampis, we further obtain the following.

Proposition 7 ().

For any mixed graph G (without directed cycles), 𝗆𝗇𝖽(G)+1𝗆𝖼𝗐(G). Further, 𝗆𝖼𝗐 does not bound 𝗆𝗇𝖽.

Regarding the relationship between 𝗆𝖼𝗐 and 𝗇𝖽, we already know that 𝗆𝖼𝗐 does not bound 𝗇𝖽 (due to 𝖼𝗐 not bounding 𝗇𝖽). However, while 𝗇𝖽 bounds 𝖼𝗐, it does not bound 𝗆𝖼𝗐. We show this by reusing the construction that we used to show that 𝖼𝗐 does not bound 𝗆𝖼𝗐 (Proposition 1), as detailed in the following.

Proposition 8 ().

The parameters 𝗆𝖼𝗐 and 𝗇𝖽 are incomparable.

Transitive Closure.

Recall that an arc (u,v) is transitive if there exists a directed path from u to v using other arcs. The transitive closure G+ of a mixed graph G is the mixed graph obtained by adding every transitive arc to G (and removing any resulting parallel edges). As transitively closed graphs are a subset of mixed graphs, all bounds between parameters on mixed graphs also apply between their transitive closure counterparts. Further, if a parameter α does not bound a parameter β on undirected graphs, then α+ does not bound β+, as it holds that α+=α and β+=β on undirected graphs. Thus, it remains to analyze the relationship between the parameters and their transitive closure counterparts.

All parameters considered in this paper, except for neighborhood diversity and cliquewidth, have the well-known property that they bound their value on any subgraph. Since the underlying graph of the transitive closure of a mixed graph is a subgraph of the underlying graph of the original graph, it follows that these parameters are bounded by their transitive closure counterparts.

Proposition 9 ().

For every mixed graph G (without directed cycles) and parameter α{𝗏𝖼,𝗍𝖽,𝖿𝗏𝗌,𝗉𝗐,𝗍𝗐} it holds that α(G)α+(G). Furthermore, these parameters do not bound their transitive closure counterparts.

Idea.

The second part can be shown using a family of oriented stars, where half of the edges are oriented towards the center vertex and the other half are oriented away from the center vertex.

However, for neighborhood diversity and cliquewidth (and their mixed variants), the situation is different. Contrary to the other parameters, these parameters are not bounded by their transitive closure counterparts, as shown in the following.

Proposition 10.

The parameters 𝗆𝗇𝖽, 𝗇𝖽, 𝗆𝖼𝗐, and 𝖼𝗐 are not bounded by their transitive closure counterparts.

Proof.

We first construct a family (G)1 of grid graphs where 2𝗆𝖼𝗐+(G)𝖼𝗐+(G) but 𝗆𝖼𝗐(G)𝖼𝗐(G)=+1. The graph G is a partial orientation of the (×)-grid graph where 21 edges are oriented such that G contains a directed Hamiltonian path, i.e., a directed path of length 21 containing all vertices. Golumbic and Rotics [17] showed that the cliquewidth of (×)-grid graphs is +1. Together with Proposition 1 we obtain that 𝗆𝖼𝗐(G)𝖼𝗐(G)=+1. As G contains a directed Hamiltonian path, it follows that G+ is the acylic tournament graph, the directed graph with exactly one arc between each pair of vertices (and without directed cycles). Using the following claim, we obtain that 2𝗆𝖼𝗐+(G)𝖼𝗐+(G).

Claim 11 ().

The mixed cliquewidth of an acyclic tournament graph is (at most) 2.

For neighborhood diversity, we construct a separate family (G)1 based on tripartite graphs. The graph G consists of three independent sets {u1,,u}, {v1,,v}, and {w1,,w}. We add arcs (ui,vj) and (vi,wj) for i,j[], such that every u has an outgoing arc to every v and every v has an outgoing arc to every w. To ensure that vertices of different sets are of different types, we further add three vertices u, v, and w. We then add edges {u,ui}, {v,vi}, and {w,wi} for all i[]. Lastly, we add arcs (ui,wi) for i[]. Thus, each vertex ui has a distinct type, as does every vertex wi. Meanwhile, all vertices vi are of the same type. Further, the vertices u, v, and w have distinct types. This results in 𝗆𝗇𝖽(G)=𝗇𝖽(G)=2+4. However, in the transitive closure, each vertex ui has an outgoing arc to every vertex wj and therefore all ui are of the same type and all wi are of the same type, resulting in 𝗆𝗇𝖽+(G)=𝗇𝖽+(G)=6.

In fact, both mixed neighborhood diversity and mixed cliquewidth bound their transitive closure counterparts, as shown in the following.

Proposition 12 ().

For any mixed graph G (without directed cycles), it holds that 𝗆𝗇𝖽+(G)𝗆𝗇𝖽(G) and 𝗆𝖼𝗐+(G)4𝗆𝖼𝗐(G)𝗆𝖼𝗐(G).

Idea.

For mixed neighborhood diversity, it holds that two vertices u,v of the same type in G are also of the same type in G+, as the set of vertices to (from) which u,v have outgoing (incoming) paths in G are equivalent.

For mixed cliquewidth, we show that given a mixed -expression constructing G, we can obtain a (4)-expression constructing G+. The idea is to keep track of the labels of vertices to which a given vertex v has outgoing paths and the labels of vertices from which it has incoming paths. This can be achieved by using 4 additional labels for each original label. These additional labels then allow us to add the transitive arcs, resulting in the claimed bound.

The same does not hold for neighborhood diversity and cliquewidth, as these are in fact incomparable to their transitive closure counterparts, as the following shows.

Proposition 13.

The parameters 𝗇𝖽 and 𝖼𝗐 are incomparable to their transitive closure counterparts.

Proof.

We already know from Proposition 10 that these parameters are not bounded by their transitive closure counterparts. Thus, it remains to show that they do not bound their transitive closure counterparts. For this, we construct a family of graphs (G)2 such that 𝗇𝖽(G)=𝖼𝗐(G)=2 while 𝗇𝖽+(G)𝖼𝗐+(G)+1.

The graph G consists of 2 grid vertices and 2(1) arc vertices and is constructed such that the grid vertices form an independent set in G but induce an (×)-grid in G+. This is achieved through the usage of the arc vertices, which connect two grid vertices adjacent in G+ with a directed path, thus ensuring that the transitive arc is present in G+. Further, each arc vertex is connected to all grid vertices via edges, except for those to which it is connected via an arc. This ensures that all arc vertices are of the same type and that all grid vertices are of the same type, resulting in 𝗇𝖽(G)=𝖼𝗐(G)=2; see Figure 2 for an example of the construction for =3. As shown by Golumbic and Roctis [17], the cliquewidth of an (×)-grid is +1. Furthermore, it is easy to see that the cliquewidth of a graph bounds the cliquewidth of induced subgraphs. Thus, it follows that 𝗇𝖽+(G)𝖼𝗐+(G)+1.

Figure 2: Example of the graph G for =3. The grid vertices are depicted as disks and the arc vertices as squares. The grid vertices form an independent set in G but induce a (3×3)-grid in G+ (the transitive arcs are depicted as dashed gray). The edges between arc vertices and grid vertices are omitted for visual clarity.

Chromatic Number.

Clearly, any proper coloring of a mixed graph is also a proper coloring of the underlying undirected graph and thus the chromatic number of the underlying undirected graph lower bounds the chromatic number of the mixed graph. Recall that the maxrank (Λ) of a mixed graph is the length of the longest directed path in the graph. For a given vertex v, we define the inrank, denoted as λ(v), as the length of the longest directed path ending in v. Furthermore, as vertices along a directed path must be colored increasingly, every vertex has a color that is at least its inrank. Thus, it holds that the chromatic number bounds the maxrank. We summarize these insights in the following proposition.

Proposition 14.

For any mixed graph G (without directed cycles), χu(G)χ(G) and Λ(G)χ(G).

For undirected graphs, several (upper) bounds on the chromatic number are known, such as treewidth and maximum degree. However, these bounds do not generalize to mixed graphs, as a simple directed path of length has treewidth 1 and maximum degree 2, but chromatic number +1. Gutowski et al. [18, Theorem 9 & Proposition 10] showed that for mixed interval graphs it holds that χ(Λ+1)ω, where ω is the clique number, and that this bound is asymptotically tight. They achieved this by introducing the concept of layering, which is a partition of the vertex set into Λ+1 layers L0,,LΛ such that the layer Li contains all vertices of inrank i. In a layering, each arc is oriented towards the higher layer, as it must hold for every arc (u,v) that λ(u)<λ(v). It follows that each subgraph G[Li] induced by a layer Li is an undirected graph. Thus, we can iteratively color each layer with disjoint color sets, resulting in a proper coloring of the entire graph as formalized in the following theorem.

Theorem 15 ().

For any mixed graph G (without directed cycles) and its corresponding layering L0,L1,,LΛ, it holds that χ(G)i=0Λχu(G[Li]). Further, this bound is tight.

Regarding the transitive closure, note that Λ+=Λ and χ+=χ, as adding transitive arcs neither changes the length of the longest directed path nor the validity of a coloring. Thus, we obtain the following bounds on maxrank.

Proposition 16 ().

For any mixed graph G (without directed cycles), it holds that Λ(G)+1𝗆𝗇𝖽+(G), Λ(G)𝗍𝗐+(G), Λ(G)2𝗍𝖽(G)2, and Λ(G)2𝗏𝖼(G).

As the chromatic number of a subgraph is a lower bound for the chromatic number of the entire graph, it follows from Theorem 15 and Proposition 16 that any parameter that bounds the chromatic number of undirected graphs as well as the maxrank also bounds the chromatic number of mixed graphs.

Corollary 17 ().

The chromatic number of mixed graphs is bounded by 𝗍𝗐+ as well as 𝗍𝖽 and 𝗏𝖼. In fact, it even holds for every mixed graph G that χ(G)2𝗏𝖼(G)+1.

The resulting hierarchy is visualized in Figure 1.

3 Parameterized Complexity of MixedColoring

Recall that a problem is fixed-parameter tractable (𝖥𝖯𝖳) with respect to a parameter k if it can be solved in f(k)n𝒪(1) time, where f is a computable function and n is the size of the input. A problem is slice-wise polynomial (𝖷𝖯) with respect to k if it can be solved in 𝒪(nf(k)) time (where f and n are as above). Clearly, 𝖥𝖯𝖳 𝖷𝖯. Note that, given an 𝖥𝖯𝖳- or 𝖷𝖯-algorithm for k-(Mixed)Coloring that is parameterized by the number of colors, k, we can easily obtain an 𝖥𝖯𝖳- or 𝖷𝖯-algorithm parameterized by the chromatic number. Therefore, we state our results with respect to the parameter chromatic number (if the runtime is 𝖥𝖯𝖳 or 𝖷𝖯 parameterized by the number of colors).

Courcelle’s theorem yields for any problem that can be expressed in monadic second-order logic on graphs an 𝖥𝖯𝖳-algorithm parameterized by tree- or even cliquewidth (depending on the logic variant used). Like cliquewidth, monadic second-order logic on graphs extends intuitively to mixed graphs, and expressing MixedColoring as a monadic second-order formula is straightforward. However, to our knowledge, Courcelle’s theorem has not yet been entirely proven for mixed graphs, with Arnborg et al. [1] only proving the theorem for treewidth but not for cliquewidth. Still, by converting our mixed graphs into directed graphs as in Proposition 2, we can apply the directed version of Courcelle’s theorem to obtain the following result.

Theorem 18 ().

The problem MixedColoring is 𝖥𝖯𝖳 parameterized by mixed cliquewidth plus chromatic number.

While Courcelle’s theorem yields an 𝖥𝖯𝖳-algorithm for MixedColoring, the resulting algorithm is quite impractical. For example, the runtime contains huge constants depending on the length of the formula, i.e., the number of colors, which cannot be bounded by an elementary function unless P=𝖭𝖯, as shown by Frick and Grohe [14]. Since polynomials are elementary functions, this also implies that this algorithm is not an 𝖷𝖯-algorithm parameterized solely by tree- or cliquewidth.

Another Coloring algorithm can also be generalized to MixedColoring: it is well known [7, Theorem 7.9] that Coloring, given a tree-decomposition of width 𝗍𝗐, can be solved in 𝒪(k𝗍𝗐) time via a dynamic program. By exchanging the checks for a proper coloring with checks for a proper mixed coloring (i.e., additionally checking that no arc is violated), MixedColoring can be solved within the same time bound, as we now summarize.

Theorem 19.

Given a mixed graph and a tree-decomposition of width 𝗍𝗐, the problem k-MixedColoring can be solved in 𝒪(k𝗍𝗐) time.

As an optimal tree-decomposition can be computed in 𝖥𝖯𝖳-time w.r.t. treewidth [2] and the chromatic number is bounded by the number of vertices, this yields 𝖥𝖯𝖳 and 𝖷𝖯 algorithms for MixedColoring, as summarized in the following.

Corollary 20.

MixedColoring is 𝖥𝖯𝖳 parameterized by treewidth plus chromatic number and 𝖷𝖯 parameterized solely by treewidth.

Note that this algorithm is an improvement over the 𝖷𝖯-algorithm developed by Ries and de Werra [30], which runs in 𝒪(n2𝗍𝗐+4m𝗍𝗐+2) time, where m is the number of edges and n the number of vertices.

We cannot hope for an 𝖥𝖯𝖳-algorithm parameterized by treewidth alone, as we show in the following that MixedColoring is 𝖶[𝟣]-hard w.r.t. pathwidth and feedback vertex set, which are parameters that bound treewidth. We achieve this via a parameterized reduction from ListColoring, a generalization of Coloring where each vertex can only be assigned a color from a given list. While Fellows et al. [10] only showed that ListColoring is 𝖶[𝟣]-hard w.r.t. treewidth, their reduction actually even yields 𝖶[𝟣]-hardness w.r.t. vertex cover, as we show in the following lemma.

Lemma 21 ().

ListColoring parameterized by vertex cover is 𝖶[𝟣]-hard.

To reduce ListColoring to k-MixedColoring, where k is the total number of distinct colors in the ListColoring instance, we enforce the color list of each vertex by adding adequate edges to newly inserted directed paths of vertex-length k. This yields the following.

Lemma 22 ().

There exists a parameterized reduction w.r.t. pathwidth as well as w.r.t. feedback vertex set from ListColoring to MixedColoring.

Combining the 𝖶[𝟣]-hardness of ListColoring with the parameterized reduction to MixedColoring we obtain the following theorem.

Theorem 23.

MixedColoring is 𝖶[𝟣]-hard w.r.t. feedback vertex set as well as w.r.t. pathwidth.

Recall that Coloring is 𝖥𝖯𝖳 with respect to neighborhood diversity [15] and 𝖷𝖯 with respect to cliquewidth [22]. In contrast to that, we now show that MixedColoring is paraNP-hard with respect to both of these parameters, even in more restricted settings.

Theorem 24 ().

MixedColoring is paraNP-hard w.r.t. mixed cliquewidth plus maxrank.

Idea.

Given a set of strings 𝒮 over the binary alphabet {0,1} and a positive integer k, the problem ShortestSuperstring asks whether there is a string of length at most k that is a superstring of each string in 𝒮. ShortestSuperstring is 𝖭𝖯-hard [29].

We reduce from ShortestSuperstring by constructing a mixed graph G such that a proper k-coloring of G corresponds to a length-k superstring of 𝒮. We achieve this by creating a directed path PS for each string S in 𝒮 such that the vertices of the path correspond to the characters of the string; we add edges such that vertices corresponding to different characters cannot receive the same color. See Figure 3(a) for an example. Thus, the color of a vertex corresponds to the position of the corresponding character in the superstring, and the directions of the paths enforce that the characters of each string appear in the correct order.

(a)
(b)
Figure 3: (a) The mixed graph resulting from an instance of ShortestSuperstring with strings {01,100,11} and shortest superstring 1010. (b) The construction resulting from splitting the path corresponding to the string 100 at each vertex and connecting the resulting vertices to distinct cliques to enforce that they receive the same color in a proper k-coloring.

To ensure a constant maxrank, we then split each directed path PS at every vertex into two vertices, with one vertex obtaining the incoming and the other the outgoing arc. We then connect each new pair of vertices to a distinct (k1)-clique, thus enforcing that the two vertices receive the same color in any proper k-coloring; see Figure 3(b). Therefore, regarding proper k-colorings, they can be treated as a single vertex, while the maxrank of the resulting graph is 1, due to all directed paths having been split. Furthermore, the resulting graph has a mixed cliquewidth of at most 6.

Theorem 25.

MixedColoring is paraNP-hard parameterized by neighborhood diversity, even if considering the neighborhood diversity of the transitive closure.

Proof.

We reduce from the following problem, which is 𝖭𝖯-hard [16, SS9].

Problem: PrecedenceConstrainedScheduling
Input: Sets T1,T2 of unit-length tasks, a partial order on T1T2, an integer D.
Question: Can the tasks be scheduled with makespan D on two parallel machines M1 and M2 such that the tasks in T1 are assigned to M1, the tasks in T2 are assigned to M2, and all precedence constraints are respected (i.e., if tt, then t must finish before t starts)?

Given an instance (T1,T2,,D) of PrecedenceConstrainedScheduling, we create a 4D-MixedColoring instance G such that each block of four consecutive colors corresponds to one time unit on the machines.

First, we create a directed path P consisting of 4D vertices p1,,p4D, which we will use to ensure that each task is scheduled on its assigned machine. Note that in any proper 4D-coloring, the path P has the same unique coloring, with each vertex pi receiving the color i. For each task tT1T2, we create two task vertices, the start vertex vt and the end vertex vt+, connected via the arc (vt,vt+). We denote with [i]k the set of integers that are congruent to i modulo k. For each start vertex vt of a task t in T1, we add an edge to each vertex pi of the path P with i[1]4. As a result, vt receives a color in [1]4 in every proper 4D-coloring of G. Analogously, we add edges between each end vertex vt+ of a task t in T1 and each vertex pi of the path P with i[3]4 to ensure that vt+ receives a color in [3]4. For tasks in T2, we similarly add edges to ensure that the start vertices receive colors in [2]4 and the end vertices receive colors in [4]4. The precedence constraints are enforced by adding arcs between the corresponding tasks, i.e., for each t,tT1T2 with tt we add the arc (vt+,vt). Lastly, it remains to ensure that no two tasks are scheduled at the same time on the same machine. We achieve this by adding (undirected) edges such that the underlying undirected graph induced by the task vertices forms a clique. An example of the resulting graph is shown in Figure 4.

Figure 4: The mixed graph resulting from an instance of PrecedenceConstrainedScheduling with T1={t1} and T2={t2,t3} as well as precedence constraints t1t3 and deadline 2. Four consecutive colors correspond to one time unit on the machines, and the colored slots correspond to the colors that the task vertices of the corresponding type can receive. The edges are omitted for visual clarity.
Claim 26 ().

The resulting graph G has a proper 4D-coloring if and only if there is a schedule of the tasks on their assigned machines that respects the precedence constraints and finishes by time D.

Claim 27 ().

The transitive closure of G has a neighborhood diversity of 8.

As these claims show, the resulting MixedColoring instance is equivalent to the original PrecedenceConstrainedScheduling instance, with the neighborhood diversity of the transitive closure being 8. Thus, MixedColoring is paraNP-hard w.r.t. neighborhood diversity, even when considering the neighborhood diversity of the transitive closure.

The picture changes if we parameterize by mixed neighborhood diversity.

Theorem 28.

MixedColoring is 𝖥𝖯𝖳 parameterized by mixed neighborhood diversity.

Proof.

Let G be a mixed graph. We can assume w.l.o.g. that each type of G induces a clique, as all vertices of a type inducing an independent set can be merged into a single vertex. This is due to the fact that they have the same neighborhoods and therefore can be assigned the same color. Let 𝒮={C1,,C𝗆𝗇𝖽} be the set of types of G, where each Ci is a clique in G. In the following, we write {Ci,Cj}E(G) and (Ci,Cj)A(G) to express that there is an undirected edge or a directed arc, respectively, between the types Ci and Cj in G. For a coloring c of G and a set UV(G), let c(U)={c(u):uU}. If c is proper, then, for every (Ci,Cj)A(G), all colors in c(Ci) are smaller than all colors in c(Cj). We define a type-endpoint preorder p as a function that assigns, to each type C, two integers p(C),p+(C)[] (with p(C)<p+(C) and 2𝗆𝗇𝖽), which we call the type endpoints of C. We say that a coloring c corresponds to a type-endpoint preorder p if there is a sequence c1,,c of ascending (not necessarily consecutive) colors such that, for each type C, the set c(C) is contained in the halfopen interval [cp(C),cp+(C)). We say that a (type-endpoint) preorder p is proper if, for each arc (Ci,Cj)A(G), it holds that p+(Ci)p(Cj). An example of a proper preorder and a corresponding coloring is shown in Figure 5.

Claim 29 ().

Given a proper (type-endpoint) preorder p, any coloring that corresponds to p does not violate any arcs. Further, any proper coloring corresponds to at least one proper preorder.

Figure 5: A mixed graph with four types C1,,C4 and a preorder with =6 type endpoints. Since it holds for its only arc (C1,C2) that p+(C1)=c4=p(C2), the preorder is proper. On the right, we depict a part of a coloring corresponding to the preorder, together with the variables of the ILP. Note that most of the variables are zero, either due to a constraint of the ILP, such as for x{1},4 or x{3,4},3, or simply due to the fact that there are no colors shared exclusively by the given set of types in the given interval, such as for x{1},3.

In total, there are 2𝗆𝗇𝖽 type endpoints and thus at most (2𝗆𝗇𝖽)! orders of these endpoints. Since type endpoints can be equal, there are at most (2𝗆𝗇𝖽)!22𝗆𝗇𝖽2𝒪(𝗆𝗇𝖽log𝗆𝗇𝖽) (proper) preorders. Therefore, we can enumerate all proper preorders in 𝖥𝖯𝖳-time w.r.t. mixed neighborhood diversity. We can thus check whether G is k-colorable by checking, for each proper preorder p, whether there exists a proper k-coloring of G that corresponds to p. Since we know that such a coloring does not violate any arcs, it suffices to check whether it does not violate any edges. This problem has similarities to Coloring, differing in that we additionally require the colors within each type to adhere to the given preorder. For Coloring, Ganian [15] provided an 𝖥𝖯𝖳-algorithm w.r.t. neighborhood diversity based on an ILP. In the following, we adapt his ILP to additionally respect a given proper preorder p.

Since we only need to decide whether there exists a k-coloring c of G that corresponds to the given proper preorder p, we do not need an objective function. For an overview of the ILP, see the full version [26]. We have two kinds of variables. First, for every i[], we introduce an integer variable ci[k] to obtain a sequence c1,,c of colors. We enforce that these colors form an ascending sequence (by adding, for each i[1], the constraint ci+1ci+1). Second, for each i[1] and each subset 𝒮𝒮, we introduce an integer variable x𝒮,i{0,,k}, which represents the number of colors in the interval [ci,ci+1) that are shared exclusively by the types in 𝒮. Formally, we want that x𝒮,i=|{d[ci,ci+1)(C𝒮:dc(C))(C𝒮𝒮:dc(C))}|, where c(C) is the set of colors assigned to the vertices of type C by the coloring c; see Figure 5 for an example. For each i[1], we need to ensure that the ILP does not assign too many colors in the interval [ci,ci+1). We achieve this by adding the constraint 𝒮𝒮x𝒮,ici+1ci. Moreover, we want the coloring to correspond to the given preorder p. To achieve this, for each type C, we first ensure that no color d<cp(C) is assigned to C (by adding the constraint i=1p(C)1𝒮𝒮:C𝒮x𝒮,i=0). Second, we ensure that enough colors are assigned to C in the interval formed by its two type endpoints (by adding the constraint i=p(C)p+(C)1𝒮𝒮:C𝒮x𝒮,i=|C|). Third, we ensure that no color dcp+(C) is assigned to C (by adding the constraint i=p+(C)1𝒮𝒮:C𝒮x𝒮,i=0). It remains to ensure that no two types connected by an edge share a color. To this end, for each i[1] and each set 𝒮𝒮 that contains types C and C with {C,C}E(G), we add the constraint x𝒮,i=0.

Claim 30 ().

For a given proper preorder p, there is a feasible solution to the constructed ILP if and only if there is a proper k-coloring of G that corresponds to p.

It is well known [12, Theorem 9.19] that an ILP can be solved in 𝖥𝖯𝖳-time w.r.t. the number of variables. Hence, we can solve the ILP in 𝖥𝖯𝖳-time w.r.t. mixed neighborhood diversity as it uses 𝒪(2𝗆𝗇𝖽𝗆𝗇𝖽) variables. Therefore, by enumerating all proper preorders and checking for each preorder whether a corresponding proper k-coloring exists, we can decide in 𝖥𝖯𝖳-time w.r.t. mixed neighborhood diversity whether G is k-colorable.

Furthermore, while MixedColoring is paraNP-hard w.r.t. neighborhood diversity, it becomes 𝖥𝖯𝖳 if we use the chromatic number as an additional parameter.

Theorem 31.

MixedColoring is 𝖥𝖯𝖳 parameterized by neighborhood diversity plus chromatic number.

Proof.

Figure 6: A uniquely 4-colorable mixed graph where no color class is a maximal independent set.

It was shown by Christofides [3] that there exists an optimal coloring of an (undirected) graph where one color class forms a maximal independent set. However, this property does not hold for mixed graphs; see Figure 6. Fortunately, we can strengthen the property by only considering maximal independent sets of vertices with inrank 0, i.e., vertices without incoming arcs, resulting in the following formula for the chromatic number.

Claim 32 ().

For every (non-empty) mixed graph G there exists an optimal coloring of G where the first color class forms a maximal independent set in the subgraph induced by the vertices of inrank 0. Thus, for every mixed graph G it holds that χ(G)=0 if G is empty and χ(G)=minIχ(GI)+1 otherwise, where the minimum is taken over all maximal independent sets I in the subgraph induced by the vertices of inrank 0.

Furthermore, we can bound the number of maximal independent sets in the subgraph induced by vertices of inrank 0 by neighborhood diversity and clique number, as the following shows.

Claim 33 ().

For every (non-empty) mixed graph G it holds that the number of maximal independent sets in the subgraph induced by the vertices of inrank 0 is at most (ω(G)+1)𝗇𝖽(G).

We implement the recursive formula for the chromatic number as a branching algorithm for MixedColoring as follows: Given a mixed graph G and a number of colors k, we branch on all maximal independent sets I in the subgraph induced by the vertices of inrank 0 and recursively check whether GI is (k1)-colorable until we either reach the empty graph or run out of colors. Thus, the recursion depth is bounded by k. As in each step we branch into at most (ω(G)+1)𝗇𝖽(G) subproblems, this results in an overall runtime of 𝒪((ω(G)+1)𝗇𝖽(G)k), which is 𝖥𝖯𝖳 w.r.t. neighborhood diversity plus chromatic number, as χ(G)ω(G).

4 Open Problems

While we defined mixed neighborhood diversity and mixed cliquewidth only for mixed graphs without directed cycles, these parameters can also be defined for mixed graphs with directed cycles. For mixed cliquewidth the definition remains the same, while for mixed neighborhood diversity the definition can be adapted by integrating the restrictions for opposite arcs introduced by Fernau et al. [11]. The relationships of these more general parameters should be analogous; most proofs can be generalized directly since they do not depend on the requirement that mixed graphs do not contain directed cycles. We remark that it seems likely that Courcelle’s theorem extends to (general) mixed cliquewidth, which would facilitate its application to other problems on mixed graphs. Further, we think that it would be interesting to investigate how graph parameters and problem complexities change if we remove all transitive arcs from input graphs. Preliminary computational experiments indicate that MixedColoring algorithms benefit from such a data reduction step. Lastly, while we explored the parameterized complexity of MixedColoring, exact (non-parameterized) algorithms for MixedColoring remain largely unexplored (except for ILP-based approaches).

References

  • [1] Stefan Arnborg, Jens Lagergren, and Detlef Seese. Easy problems for tree-decomposable graphs. J. Algorithms, 12(2):308–340, 1991. doi:10.1016/0196-6774(91)90006-K.
  • [2] Hans L. Bodlaender. A linear-time algorithm for finding tree-decompositions of small treewidth. SIAM J. Comput., 25(6):1305–1317, 1996. doi:10.1137/S0097539793251219.
  • [3] Nicos Christofides. An algorithm for the chromatic number of a graph. Comput. J., 14(1):38–39, 1971. doi:10.1093/COMJNL/14.1.38.
  • [4] Bruno Courcelle. The monadic second-order logic of graphs. I. Recognizable sets of finite graphs. Inf. Comput., 85(1):12–75, 1990. doi:10.1016/0890-5401(90)90043-H.
  • [5] Bruno Courcelle and Joost Engelfriet. Graph Structure and Monadic Second-Order Logic – A Language-Theoretic Approach, volume 138 of Encyclopedia of Mathematics and Its Applications. Cambridge University Press, 2012. doi:10.1017/cbo9780511977619.
  • [6] Bruno Courcelle and Stephan Olariu. Upper bounds to the clique width of graphs. Discret. Appl. Math., 101(1–3):77–114, 2000. doi:10.1016/S0166-218X(99)00184-5.
  • [7] Marek Cygan, Fedor V. Fomin, Łukasz Kowalik, Daniel Lokshtanov, Dániel Marx, Marcin Pilipczuk, Michał Pilipczuk, and Saket Saurabh. Parameterized Algorithms. Springer, 2015. doi:10.1007/978-3-319-21275-3.
  • [8] Peter Damaschke. Parameterized mixed graph coloring. J. Comb. Optim., 38(2):362–374, 2019. doi:10.1007/S10878-019-00388-Z.
  • [9] Dominique de Werra. Restricted coloring models for timetabling. Discrete Math., 165-166:161–170, 1997. doi:10.1016/S0012-365X(96)00208-7.
  • [10] Michael R. Fellows, Fedor V. Fomin, Daniel Lokshtanov, Frances A. Rosamond, Saket Saurabh, Stefan Szeider, and Carsten Thomassen. On the complexity of some colorful problems parameterized by treewidth. Inf. Comput., 209(2):143–153, 2011. doi:10.1016/J.IC.2010.11.026.
  • [11] Henning Fernau, Florent Foucaud, Kevin Mann, Utkarsh Padariya, and Rajath Rao K. N. Parameterizing path partitions. Theor. Comput. Sci., 1028:115029, 2025. doi:10.1016/J.TCS.2024.115029.
  • [12] Jörg Flum and Martin Grohe. Parameterized Complexity Theory. Texts in Theoretical Computer Science. An EATCS Series. Springer, 2006. doi:10.1007/3-540-29953-X.
  • [13] Fedor V. Fomin, Petr A. Golovach, Daniel Lokshtanov, and Saket Saurabh. Intractability of clique-width parameterizations. SIAM J. Comput., 39(5):1941–1956, 2010. doi:10.1137/080742270.
  • [14] Markus Frick and Martin Grohe. The complexity of first-order and monadic second-order logic revisited. Ann. Pure Appl. Log., 130(1-3):3–31, 2004. doi:10.1016/J.APAL.2004.01.007.
  • [15] Robert Ganian. Using neighborhood diversity to solve hard problems. ArXiv report, 2012. arXiv:1201.3091.
  • [16] Michael R. Garey and David S. Johnson. Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman, 1979.
  • [17] Martin Charles Golumbic and Udi Rotics. On the clique-width of some perfect graph classes. Int. J. Foundat. Comput. Sci., 11(3):423–443. doi:10.1142/S0129054100000260.
  • [18] Grzegorz Gutowski, Konstanty Junosza-Szaniawski, Felix Klesen, Paweł Rzążewski, Alexander Wolff, and Johannes Zink. Coloring and recognizing mixed interval graphs. In Satoru Iwata and Naonori Kakimura, editors, 34th International Symposium on Algorithms and Computation (ISAAC), volume 283 of LIPIcs, pages 36:1–36:14. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi:10.4230/LIPIcs.ISAAC.2023.36.
  • [19] Grzegorz Gutowski, Florian Mittelstädt, Ignaz Rutter, Joachim Spoerhase, Alexander Wolff, and Johannes Zink. Coloring mixed and directional interval graphs. In Patrizio Angelini and Reinhard von Hanxleden, editors, 30th International Symposium on Graph Drawing and Network Visualization (GD), volume 13764 of LNCS, pages 418–431. Springer, 2022. doi:10.1007/978-3-031-22203-0_30.
  • [20] Pierre Hansen, Julio Kuplinsky, and Dominique de Werra. Mixed graph colorings. Math. Methods Oper. Res., 45(1):145–160, 1997. doi:10.1007/BF01194253.
  • [21] Ararat Harutyunyan, Michael Lampis, and Nikolaos Melissinos. Digraph Coloring and Distance to Acyclicity. Theory Comput. Syst., 68(4):986–1013, 2024. doi:10.1007/s00224-022-10103-x.
  • [22] Daniel Kobler and Udi Rotics. Edge dominating set and colorings on graphs with fixed clique-width. Discrete Appl. Math., 126(2–3):197–221, 2003. doi:10.1016/S0166-218X(02)00198-1.
  • [23] Marek Kubale. Interval vertex-coloring of a graph with forbidden colors. Discrete Math., 74(1–2):125–136, 1989. doi:10.1016/0012-365X(89)90204-5.
  • [24] Marek Kubale, editor. Graph Colorings, volume 352 of Contemporary Mathematics. AMS, Providence, RI, 2004. doi:10.1090/conm/352.
  • [25] Michael Lampis. Algorithmic meta-theorems for restrictions of treewidth. Algorithmica, 64(1):19–37. doi:10.1007/s00453-011-9554-x.
  • [26] Antonio Lauerbach, Konstanty Junosza-Szaniawski, Marie Diana Sieper, and Alexander Wolff. The parameterized complexity of coloring mixed graphs. ArXiv report, 2026. arXiv:2604.15274.
  • [27] Daniel Lokshtanov, Dániel Marx, and Saket Saurabh. Known algorithms on graphs of bounded treewidth are probably optimal. ACM Trans. Algorithms, 14(2):13:1–13:30, 2018. doi:10.1145/3170442.
  • [28] Víctor Neumann-Lara. The dichromatic number of a digraph. J. Combin. Theory Ser. B, 33(3):265–270, 1982. doi:10.1016/0095-8956(82)90046-6.
  • [29] Kari-Jouko Räihä and Esko Ukkonen. The shortest common supersequence problem over binary alphabet is NP-complete. Theor. Comput. Sci., 16:187–198, 1981. doi:10.1016/0304-3975(81)90075-X.
  • [30] Bernard Ries and Dominique de Werra. On two coloring problems in mixed graphs. Eur. J. Comb., 29(3):712–725, 2008. doi:10.1016/J.EJC.2007.03.006.
  • [31] Éric Sopena. Homomorphisms and colourings of oriented graphs: An updated survey. Discrete Math., 339(7):1993–2005, 2016. doi:10.1016/j.disc.2015.03.018.
  • [32] Yuri N. Sotskov. Mixed graph colorings: A historical review. Math., 8(3):385:1–24, 2020. doi:10.3390/math8030385.