Manuscript Offprint
arXiv:2610.35794Computational complexity of the -coloring problem in cubic graphs
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
If and are two cubic graphs, then an -coloring of is a mapping , such that for every there is a vertex , such that . If admits an -coloring then it is common to write . In this paper, for a fixed connected cubic graph , we consider a decision problem, which we call -coloring. In this problem, on the input one is given a connected cubic graph . The goal is to decide whether . A conjecture by Hakobyan and the author states that -coloring is polynomial time solvable, if does not admit a -coloring. Here is the unique cubic graph obtained from the Petersen graph by expanding one of its vertices into a triangle. In this paper, we disprove this conjecture under , by showing that -coloring is NP-complete. Here is the unique cubic graph on six vertices having exactly one bridge. Our second result is an algorithm that solves -coloring problem in time , where is a simple connected cubic graph, is the number of vertices of the input cubic graph and .
Keywords: Cubic Graph, Petersen Coloring Conjecture, Sylvester Coloring Conjecture, Computational Complexity, Exact Exponential Algorithm
1. Introduction
In this paper, we deal with algorithms. As usual the notation will ignore expressions that grow no faster than a polynomial of the input size. In the paper, we consider finite, undirected graphs. They do not contain loops. However, graphs may contain parallel edges. A graph is simple, if it contains no parallel edges. In the paper, we consider graphs up to isomorphisms of graphs. This means that if we write then and are isomorphic.
If is a graph, then let and be the sets of vertices and edges of , respectively. Let be the set of edges of that are incident to the vertex of . A matching of is a subset of such that no two edges in it are incident to the same vertex. A matching of is perfect, if it contains edges. This is the same as requiring that every vertex of
*Corresponding author
Email address: vmkrtchy@purdue.edu (Vahan Mkrtchyan)
G is incident to an edge from the matching. Let . Then will denote the spanning subgraph of G.
Suppose and are two cubic graphs. An -coloring of is a mapping , such that for each vertex there is a vertex , such that . If admits an -coloring, then we write . It is easy to see that if and , then . That is, induces a transitive relation on the set of cubic graphs.
Let be the Petersen graph (see Figure 1). An important conjecture in the area was due to Jaeger [10, 11, 12, 13], who asked for the proof that for every bridgeless cubic graph G. This conjecture has recently been disproved in [6, 19].

Figure 1: The graph .
It was very strong, as many classical conjectures can be shown to follow from it such as:
Conjecture 1. (Berge-Fulkerson, 1972 [5, 21]) Any bridgeless cubic graph G contains six (not necessarily distinct) perfect matchings such that any edge of G belongs to exactly two of them.
Conjecture 2. ((5, 2)-even-subgraph-cover conjecture, [3, 18]) Any bridgeless graph G (not necessarily cubic) contains five even subgraphs such that any edge of G belongs to exactly two of them.
Conjecture 3. ([1, 14, 25, 26]) Any bridgeless graph G (not necessarily cubic) contains a list of cycles, such that every edge of G lies on at least one of them and the sum of the lengths of these cycles is at most .
The list of six perfect matchings in Conjecture 1 usually is called a Berge-Fulkerson cover of G. If is the smallest number of perfect matchings that are needed to cover , then observe that Conjecture 1 implies that for any bridgeless cubic graph. This weaker statement is known as Berge conjecture, which is equivalent to Berge-Fulkerson conjecture as shown in [16].
Let , , and denote the graphs on 4, 6, 10 and 12 vertices, respectively, as presented on Figures 2, 3, 4 and 5, respectively. Following [20] (see page 432 of volume A), will be called Sylvester graph. Note that usually the name “Sylvester graph” is used for

Figure 2: The graph .

Figure 3: The graph .

Figure 4: The graph .

Figure 5: The graph .
a particular strongly regular graph on 36 vertices, and this graph should not be confused with , which has ten vertices.
In [7, 8, 17] it is conjectured that any cubic graph admits an -coloring. Moreover, any cubic graph with a perfect matching admits an -coloring. These two conjectures are disproved in [24], where the author has given an example of a cubic graph with a perfect matching that does not admit an -coloring (hence it cannot admit an -coloring). On the positive side, in [15] it is shown that any bridgeless cubic graph admits an -coloring. Note that because of the symmetry of , -colorability of a cubic graph is the same as its -colorability. Finally, let us note that counter-examples given in [6] disprove the conjecture that if is a bridgeless cubic graph with , then . It was presented in [8], and stands for the unique cubic graph obtained from the Petersen graph by expanding one of its vertices into a triangle (see Figure 6).
In this paper, we consider the H-coloring problem, where H is a fixed connected cubic graph. This problem is a decision problem, on whose input one is given a connected cubic

Figure 6: The graph .
graph G. The goal is to decide whether . A conjecture published in [8] states that if does not admit a -coloring, then -coloring is polynomial-time solvable. The first result of the present paper disproves this conjecture under by showing that -coloring is NP-complete. Our second result presents a non-trivial exponential algorithm that solves -coloring in time when is a simple connected cubic graph. Non-defined concepts can be found in [23].
Proposition 1. For every connected cubic graph H, H-coloring lies in NP.
Proof: If we are given the H-coloring of the input graph G, then we can verify that it is an H-coloring in polynomial time. □
The proof of the following statements can be found in [8].
Lemma 1. (see [8]) Let be an H-coloring of a graph G, where G and H are cubic graphs. Then:
(A)
(B) if e is a bridge of G, then is a bridge in H.
Here stands for the chromatic index of (see [23]), which is the smallest number of colors that are needed to color edges of , so that adjacent edges receive different colors. For cubic graphs this number is known to be either three or four [22]. Moreover, the problem of deciding which of them holds for an input cubic graph is NP-complete [9].
Consider the graph from Figure 2. We assume that edges of are labeled according to this figure.
Proposition 2. Let be a cubic graph. Suppose admits an -coloring , such that . Then .
Proof: Since , we have that the edges incident to any vertex are colored with or . Thus, , , and form three pairwise edge-disjoint perfect matchings in . The proof is complete.

Figure 7: The graph K and its edge uv.
Lemma 2. Let K be the graph from Figure 7.
(1) For every , there is an -coloring of , such that the edge is colored with and the two pendant edges of get the color ,
(2) for any -coloring of , such that the edge is colored with , there is an , such that the two pendant edges are colored with the same color .
Proof: (1) Let us start with the case . Consider an edge-coloring defined as follows:
Note that is an -coloring of , such that is colored with , and the two pendant edges of are colored with .
Next, assume that . Without loss of generality, we can assume that . Consider an edge-coloring defined as follows:
Note that is an -coloring of , such that is colored with , and the two pendant edges of are colored with .
(2) For the proof of the second statement, assume that is an -coloring of , such that . Without loss of generality, we can assume that and . Note that since is an -coloring, we have . If
, then and , therefore and , thus
On the other hand, if , then without loss of generality, we can assume that . Then . Since , we derive
therefore
The proof is complete. ☐

Figure 8: The graph and its edge bc.
Lemma 3. Let be the graph obtained from K as in Figure 8. We assume that are the corresponding vertices of K, and are the pendant vertices of K (see Figure 7).
(1) For every , there is an -coloring of , such that the edge uv (in K) and one of two copies of bc are colored with a and the two pendant edges of get the color x,
(2) for any -coloring of , such that the edge uv (in K) and one of two copies of bc are colored with a, there is an , such that the two pendant edges of are colored with the same color x.
Proof: (1) For the proof of this statement we consider two cases. First, suppose . Without loss of generality, we can assume that . Let be an -coloring of , such that the edge is colored with , the pendant edges and are colored with (see (1) of Lemma 2). We extend to an edge-coloring of as follows:
• one of two copies of bc is colored with a in d,
• the two pendant edges of and the other copy of bc are colored with ,
• the edges and are colored with .
Note that is an -coloring of , such that the edge (in ) and one of two copies of are colored with and the two pendant edges of get the color .
Next, suppose . Without loss of generality, we can assume that . Let be an -coloring of , such that the edge is colored with , the pendant edges and are colored with (see (1) of Lemma 2). We extend to an edge-coloring of as follows:
• one of two copies of bc is colored with a in d,
• the two pendant edges of are colored with ,
• the edges and are colored with .
• the other copy of bc is colored with ,
Note that is an -coloring of , such that the edge (in ) and one of two copies of are colored with and the two pendant edges of get the color .
(2) Assume that is any -coloring of , such that the edge (in ) and one of two copies of are colored with . Note that induces an -coloring of , such that . By (2) of Lemma 2, there is an , such that .
We consider two cases. Suppose . Since one of the copies of the edge is colored with in , then the other one is colored with or . Without loss of generality, we can assume that this color is . Then , therefore the two pendant edges of are colored with .
Next, suppose . Without loss of generality, we can assume that . Since one of the copies of the edge is colored with , we have that . Suppose . Then the two pendant edges of are colored with . The proof is complete.
Next, we consider the following auxiliary decision problem:
Problem 1: On the input one is given a bridgeless cubic graph and a subset . The goal is to check whether admits an -coloring , such that for every edge , we have .
The main result of [15] implies that all instances of Problem 1 with are YES-instances. On the other hand, if is not a matching, then the instance is a NO-instance. It is not difficult to see that if is an inclusion-wise maximal matching that is not a perfect matching, then all such instances are NO-instances, too. The next lemma addresses computational complexity of Problem 1.
Lemma 4. Problem 1 is NP-complete.
Proof: Problem 1 lies in NP, as if we are given the -coloring d of G, such that all edges in are colored with a, then we can verify this in polynomial time.
For the proof of NP-hardness, we will reduce the classical 3-edge-coloring problem of cubic graphs to Problem 1. This will prove our statement as in [9] Holyer proved that the former is NP-complete. Recall that in this problem, one is given a bridgeless cubic graph H. The goal is to decide whether .
Let be a bridgeless cubic graph. Consider a cubic graph , which is obtained from by replacing all edges with a copy of the graph such that and are identified with the two pendant vertices of . The subset is going to be the set of all edges and one copy of from all copies of the graph . This completes the description of our reduction. Note that is a bridgeless cubic graph. Moreover, our reduction is polynomial-time as
and
We show that is 3-edge-colorable if and only if is a YES-instance of Problem 1. Suppose is 3-edge-colorable. Then we can color its edges with and . By (1) of Lemma 3, we can extend this coloring to an -coloring of such that all edges in are colored with . Thus, is a YES-instance of Problem 1.
Suppose, is a YES-instance of Problem 1. Then there is an -coloring of , such that all edges in are colored with color . By (2) of Lemma 3, we will get an -coloring of , such that . By Proposition 2, is 3-edge-colorable. The proof is complete.
We are ready to obtain the main result of this section.
Theorem 1. -coloring is NP-complete.
Proof: -coloring is in NP by Proposition 1. For the proof of NP-hardness, we reduce Problem 1 to -coloring. Let be an instance of Problem 1. Consider a graph obtained from by replacing every edge with two copies of (see Figure 9). This completes the description of reduction.

Figure 9: Obtaining the graph from and all edges .
Note that it is a polynomial-time reduction as
We claim that is a YES-instance of Problem 1 if and only if admits an -coloring. Suppose, is a YES-instance of Problem 1, and let be the corresponding -coloring of . Then it is straightforward to construct an -coloring of by coloring all bridges of with and coloring the remaining edges of s with the same colors.
For the proof of the converse, if we assume that admits an -coloring, then every bridge of must be colored with a bridge of (see (B) of Lemma 1), which is . Thus, we can get the required coloring of by simply coloring edges of with . The proof is complete. □
3. An exponential algorithm for H-coloring
The H-coloring problem, when H is 3-edge-colorable, is equivalent to 3-edge-coloring problem of cubic graphs (see (A) of Lemma 1). Hence it is NP-complete [9]. As we proved in the previous section, -coloring is NP-complete, too. Thus, one may wonder whether one can find some exponential algorithm that solves H-coloring problem. See [4] for an introduction in the area of such algorithms.
If one follows the approach of Example 7 from [2], it is possible to design a simple algorithm that solves H-coloring in time . Here n is the number of vertices of input graph G. The approach of [2] is the following.
Since the input graph G is connected, we can assume that edges in G are labeled, so that for every , has a neighbor with . Let us consider the following algorithm: we consider all possible edges as colors for . Once this is fixed, since every has a neighbor with smaller index, it has at most four options as colors: every edge is adjacent to four edges as H is cubic. Thus, the number of all possible combinations is at most
We can generate all these combinations and check them for being an H-coloring. It will require time. Our next result improves the constant eight under a minor assumption that H is a simple cubic graph.
Theorem 2. There is an algorithm that solves H-coloring problem in time , where H is a simple connected cubic graph, n is the number of vertices of the input cubic graph G and .
Proof: Our algorithm is more or less the same as the one described above. However, since we are trying to solve H-coloring, and H is a simple, cubic graph, then if the colors of two adjacent edges are determined then the color of the third edge is unique. Let be the set of edges with one option. If we show that we can organize the above algorithm so that contains at least edges, then for the running-time of our algorithm, we will get at most
options. This will imply the desired running-time.
We will show that every component of has at least four vertices. If that is the case, then if is the number of components of , then we will have . Therefore,
which will prove our result.
As in [2], we assume that the edges of are considered in an order , so that every with is adjacent to an edge with . Since our graph is simple, every two adjacent edges determine the third edge as a color uniquely. This means that if is incident to three edges , then if we decide the colors of and , then the color of is unique, hence it belongs to . Without loss of generality, we can assume that if we have decided the color of two adjacent edges and , after that we immediately color in a unique way, so that it is not considered any longer.
Now, we are going to argue that has no an isolated edge. Note that is a spanning subgraph of , as every vertex is incident to an edge from (for every vertex the colors of two edges incident to determine the color of the third edge). Suppose it has an isolated edge . Assume that the other two edges incident to are and , which have four options as colors. Now if we decide the color of one of the two edges incident to , then the color of the other one different from is determined uniquely. Thus, we have two adjacent edges in incident to .
Now, let us argue that there is no component with exactly three vertices. Since we are assuming that is connected, and the edges of are considered in an order , so that every with is adjacent to an edge with , we cannot have a triangle in . Let us rule out the case of a path of length two in . Suppose we have and an edge which is incident to both and has four options for colors. Let us consider the time stamp of all edges. This shows the time that the color of this edge is decided. At every step we decide the color of a single edge. We consider the following three cases.
Case 1: The color of has been decided after those of , that is, and . This case is impossible, as the colors of and will uniquely determine the color of , therefore we will have .
Case 2: . Then the edge will be adjacent to one more edge from , once decide one of the colors of the other two edges.
Case 3: . Then b will be adjacent to one more edge from , as once we decide the colors of a and c, then they will determine the color of b immediately. Hence b will have one more neighbor from . The proof is complete. □
4. Conclusion and future work
In this paper, we considered the H-coloring problem in cubic graphs. We have shown that -coloring is NP-complete. Then we designed a non-trivial exponential algorithm for solving H-coloring problem in time , when H is a simple connected cubic graph. Here n is the number of vertices of the input cubic graph G.
There are some questions that deserve further investigation. It would be interesting to show that H-coloring is NP-complete when (see Figure 4), (see Figure 5), (see Figure 1) or (see Figure 6). If all of these problems are NP-complete, one may try to prove:
Conjecture 4. H-coloring is NP-complete for every fixed connected cubic graph H.
Theorem 2 provides an algorithm that solves H-coloring in time . The constant seems to be not the best one in this statement, so an idea would be to improve it. The author would like to offer:
Conjecture 5. There is an algorithm that solves H-coloring in time .
Acknowledgement
The author would like to thank Magnus Wahlström for a useful discussion on the topic of the present paper.
References
[1] N. Alon, M. Tarsi, Covering multigraphs by simple circuits, SIAM J. Algebraic Discrete Methods, 6 (1985), pp. 345–350.
[2] A.A. Bulatov, A. Dadsetan, Counting Homomorphisms in Plain Exponential Time, In 47th International Colloquium on Automata, Languages, and Programming (ICALP 2020). Leibniz International Proceedings in Informatics (LIPIcs), Volume 168, pp. 21:1-21:18.
[3] A. U. Celmins, On cubic graphs that do not have an edge-3-colouring, Ph.D. Thesis, Department of Combinatorics and Optimization, University of Waterloo, Waterloo, Canada, 1984.
[4] F. V. Fomin, D. Kratsch, Exact Exponential Algorithms, Springer-Verlag, Berlin, Heidelberg, (2010).
[5] D.R. Fulkerson, Blocking and anti-blocking pairs of polyhedra, Math. Programming 1 (1971), 168–194.
[6] J. Goedgebeur, J. Jooken, E. Máčajová, D. Mattiolo, G. Mazzuoccolo, N. Ulyanov, Disproving the Petersen Coloring Conjecture: Theoretical Analysis and an Infinite Family of Counterexamples, arXiv, 2026.
[7] A. Hakobyan, V. Mkrtchyan, On Sylvester colorings of cubic graphs, Australasian Journal of Combinatorics 72(3) (2018), Pages 472–491.
[8] A. Hakobyan, V. Mkrtchyan, and -colorings of cubic graphs, Ars Mathematica Contemporanea 17(2), (2019), 431–445.
[9] I. Holyer, The NP-Completeness of Edge-Coloring, SIAM Journal on Computing 10(4), (1981), 718–720.
[10] F. Jaeger, Nowhere-zero flow problems, in Selected Topics Graph Theory 3, (L.W. Beineke and R.J. Wilson eds.), Academic Press, London, (1988), pp. 71–95.
[11] F. Jaeger, On nowhere-zero flows in multigraphs, in “Proceedings, Fifth British Combinatorial Conference, Aberdeen, 1975.” Congressus Numerantium XV, Utilitas Mathematica Winnipeg, 373–378.
[12] F. Jaeger, Flows and generalized coloring theorems in graphs, J. Comb. Theory, Ser. B 26, (1979), 205–216.
[13] F. Jaeger, On five-edge-colorings of cubic graphs and nowhere-zero flow problems, Ars Combinatoria, 20-B, (1985), 229–244.
[14] U. Jamshy, M. Tarsi, Short cycle covers and the cycle double cover conjecture, Journal of Combinatorial Theory B 56(2), 1992, 197–204.
[15] F. Kardoš, E. Máčajová, J.-P. Zerafa, Disjoint odd circuits in a bridgeless cubic graph can be quelled by a single perfect matching, J. Combinatorial Theory B 160, 2023, 1–14.
[16] G. Mazzuoccolo, The equivalence of two conjectures of Berge and Fulkerson, J. Graph Theory 68(2), 125–128, (2011).
[17] V. Mkrtchyan, A remark on the Petersen coloring conjecture of Jaeger, Australasian J. Comb. 56(2013), pp. 145–151.
[18] M. Preissmann, Sur les colorations des arêtes des graphes cubiques, Thèse de troisième cycle, Grenoble (1981).
[19] B. Putman, A 112-Vertex Counterexample to the Petersen Coloring Conjecture, arXiv, 2026.
[20] A. Schrijver, Combinatorial Optimization, Springer, New York, (2003).
[21] P. Seymour, On multi-colorings of cubic graphs, and conjectures of Fulkerson and Tutte, Proc. London Math. Soc. 38 (1979), 423–460.
[22] C. E. Shannon, A theorem on coloring the lines of a network, J. Math. Physics (28), 148–151, (1949).
[23] D. West, Introduction to Graph Theory, Prentice-Hall, Englewood Cliffs, (1996).
[24] I.H. Wolf, A counterexample to the - and the -Conjecture, Ars Mathematica Contemporanea, 2026, to appear.
[25] C.-Q. Zhang, Integer Flows and Cycle Covers of Graphs, New York: Marcel Dekker, Chapman & Hall/CRC Pure and Applied Mathematics, New York Basel Hong Kong, 1997.
[26] C.-Q. Zhang, Circuit Double Cover of Graphs, London Mathematical Society Lecture Note Series, Series Number 399, 1st Edition, 2012.