Minimum Reload Cost Cycle Cover in Complete Graphs
Yasemin B\"uy\"uk\c{c}olak, Didem G\"oz\"upek, Sibel \"Ozkan

TL;DR
This paper investigates the minimum reload cost cycle cover problem in complete graphs with specific 2-edge-colorings, proving the existence of zero-cost covers and providing polynomial-time algorithms for their construction.
Contribution
It establishes conditions under which a zero reload cost cycle cover exists in complete graphs with equitable or nearly equitable 2-edge-colorings and offers efficient algorithms for constructing such covers.
Findings
Zero reload cost cycle cover exists in most complete graphs with nearly equitable 2-edge-colorings.
Polynomial-time algorithms are provided for constructing monochromatic cycle covers.
The results hold except for small graphs with fewer than 13 vertices or specific special cases.
Abstract
The reload cost refers to the cost that occurs along a path on an edge-colored graph when it traverses an internal vertex between two edges of different colors. Galbiati et al.[1] introduced the Minimum Reload Cost Cycle Cover problem, which is to find a set of vertex-disjoint cycles spanning all vertices with minimum reload cost. They proved that this problem is strongly NP-hard and not approximable within for any even when the number of colors is 2, the reload costs are symmetric and satisfy the triangle inequality. In this paper, we study this problem in complete graphs having equitable or nearly equitable 2-edge-colorings, which are edge-colorings with two colors such that for each vertex , or , respectively, where is the set of edges with color that is incident to . We…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
\papertype
Research Article
\corraddressYasemin Büyükçolak, Department of Mathematics, Gebze Technical University, Kocaeli, Turkey \[email protected] \fundinginfoTUBITAK-CNRS, Grant Number: 114E731
Minimum Reload Cost Cycle Cover in Complete Graphs
Yasemin Büyükçolak
Department of Mathematics, Gebze Technical University, Kocaeli, Turkey
Didem Gözüpek
Department of Computer Engineering, Gebze Technical University, Kocaeli, Turkey
Sibel Özkan
Department of Mathematics, Gebze Technical University, Kocaeli, Turkey
Abstract
The reload cost refers to the cost that occurs along a path on an edge-colored graph when it traverses an internal vertex between two edges of different colors. Galbiati et al. [12] introduced the Minimum Reload Cost Cycle Cover problem, which is to find a set of vertex-disjoint cycles spanning all vertices with minimum reload cost. They proved that this problem is strongly NP-hard and not approximable within for any even when the number of colors is , the reload costs are symmetric and satisfy the triangle inequality. In this paper, we study this problem in complete graphs having equitable or nearly equitable -edge-colorings. By showing the existence of a monochromatic cycle cover we prove that the minimum reload cost is zero on complete graphs with an equitable -edge-coloring except possibly or with a nearly equitable -edge-coloring except possibly for . Furthermore, we provide a polynomial-time algorithm that constructs a monochromatic cycle cover in complete graphs with an equitable -edge-coloring except possibly for . This algorithm also finds a monochromatic cycle cover in complete graphs with a nearly equitable -edge-coloring except for some special cases.
keywords:
Reload cost, minimum reload cost cycle cover, complete graph, equitable edge-coloring, nearly equitable edge-coloring, monochromatic cycle cover.
1 Introduction
Edge-colored graphs can be used to model various network design problems. In this work, we consider an optimization problem with the reload cost model. The reload cost occurs along a path on an edge-colored graph while traversing an internal vertex via two consecutive edges of different colors. That is, the reload cost depends only on the colors of the incident traversed edges. In addition, the reload cost of a path or a cycle on an edge-colored graph is the sum of the reload costs that arise from traversing its internal vertices between edges of different colors. Because of practical reasons, it is generally assumed that the reload costs are symmetric and satisfy the triangle inequality. The reload cost concept is used in many areas such as transportation networks, telecommunication networks, and energy distribution networks. For instance, in a cargo transportation network, each carrier can be represented by a color and the reload costs arise only at points where the carrier changes, i.e., during transition from one color to another. In telecommunication networks, the reload costs arise in several settings. For instance, switching among different technologies such as cables, fibers, and satellite links or switching between different providers such as different commercial satellite providers in satellite networks correspond to reload costs. In energy distribution networks, the reload cost corresponds to the loss of energy while transferring energy from one form to another one, such as the conversion of natural gas from liquid to gas form.
Although the reload cost concept has significant applications in many areas, only few papers about this concept have appeared in the literature. Wirth and Steffan [22], and Galbiati [10] studied the minimum reload cost diameter problem, which is to find a spanning tree with minimum diameter with respect to reload cost. Amaldi et al. [1] presented several path, tour, and flow problems under the reload cost model. They also focused on the problem of finding a spanning tree that minimizes the total reload cost from a source vertex to all other vertices. The works in [11, 13, 14, 16] focused on the minimum changeover cost arborescence problem, which is to find a spanning arborescence rooted at a given vertex such that the total reload cost is minimized. The work in [15], on the other hand, focused on problems related to finding a proper edge coloring of the graph so that the total reload cost is minimized.
Galbiati et al. [12] introduced the Minimum Reload Cost Cycle Cover (MinRC3) problem, which is to find a set of vertex-disjoint cycles spanning all vertices with minimum total reload cost. They proved that it is strongly NP-hard and not approximable within for any even when the number of colors is , the reload costs are symmetric and satisfy the triangle inequality. In this work we focus on a special case of the MinRC3 problem, namely MinRC3 in complete graphs. Our primary motivation is to avoid the feasibility issue, since a complete graph of any order has a cycle cover. We first show that the MinRC3 problem is strongly NP-hard and is not approximable within for any for complete graphs, even when the reload costs are symmetric. We are then interested in the MinRC3 problem in complete graphs having an equitable -edge-coloring, which is an edge-coloring with two colors such that for each vertex , , where is the set of edges with color that are incident to . To the best of our knowledge, this paper is the first one focusing on the MinRC3 problem in a special graph class. In particular, we present the first positive (polynomial-time solvability) result for this problem.
Feasibility of equitable edge-colorings received some attention in the literature. In 2008, Xie et al. [23] showed that the problem of finding whether an equitable -edge-coloring exists is NP-complete in general. Indeed, if , where is the maximum degree of the given graph, then this problem becomes equivalent to the well-known NP-complete problem of classifying Class- graphs. In 1994, Hilton and de Werra [19] proved the following sufficiency condition on equitable -edge-colorings: if and is a simple graph such that no vertex in has degree equal to a multiple of , then has an equitable -edge-coloring. In 1971, de Werra [6] found the following necessary and sufficient condition to have an equitable -edge-coloring in a connected graph: a connected graph has an equitable -edge-coloring if and only if it is not a connected graph with an odd number of edges and all vertices having an even degree. Furthermore, a nearly equitable -edge-coloring is an edge-coloring with colors such that for each vertex and for each pair of colors , , where is the set of edges with color that are incident to . The notion of nearly equitable edge-coloring was introduced in 1982 by Hilton and de Werra [18], who also proved that for each any graph has a nearly equitable -edge-coloring.
In this paper, we focus on the MinRC3 problem in complete graphs having an equitable or nearly equitable -edge-coloring. Recall that the reload cost is zero between two edges of the same color. The reload cost of a monochromatic cycle, i.e., a cycle having all edges with the same color, is clearly zero. We then investigate the existence of a monochromatic cycle cover in complete graphs having an equitable or nearly equitable -edge-coloring. In the literature, there exist various results about covering a -edge-colored graph with monochromatic subgraphs such as cycles, paths, and trees (see [9, 17]). In 1983, Gyárfás [17] proved that the vertex set of any -edge-colored complete graph can be covered by two monochromatic cycles that have different colors and intersect in at most one vertex. In 2010, Bessy and Thomassé [2] proved that the vertex set of any -edge-colored complete graph can be partitioned into two monochromatic cycles having different colors, i.e., it has a vertex-disjoint monochromatic cycle cover with two different colors. However, unlike in the MinRC3 problem, a vertex () and an edge () are considered to be cycles in almost all works in the literature (including [2]) about monochromatic cycle covers. Clearly, both a vertex and an edge have zero reload cost, yet in this paper, we do not allow cycles to have less than three vertices.
We prove in this paper that except possibly for in a complete graph with a nearly equitable -edge-coloring, there exists a cycle cover that is either a monochromatic Hamiltonian cycle or consists of exactly two monochromatic cycles on the same color with sizes differing by at most one; therefore, the value of the minimum reload cost cycle cover is zero in such a case. In addition, we show that except possibly for there exists a monochromatic cycle cover in complete graphs with an equitable edge coloring. Our constructive proof leads to a polynomial-time algorithm to solve the MinRC3 problem on complete graphs with an equitable -edge coloring. Our proof also leads to a polynomial-time algorithm to solve this problem on complete graphs with a nearly equitable -edge coloring except for some special cases.
2 Preliminaries
An undirected graph is given by a pair of a vertex set and an edge set , which consists of -element subsets of . An edge between two vertices and will be denoted by in short. In this work, we consider only simple graphs, i.e., graphs without loops or multiple edges. The order of is denoted by and the degree of a vertex of is denoted by . In addition, and denote the minimum and maximum degree of , respectively. When the graph is clear from the context, we omit it from the notations and write , , and .
Given two graphs and , if is isomorphic to , we denote it by . We define the union of and as the graph obtained by the union of their vertex and edge sets, i.e., . When and are disjoint, their union is referred to as the disjoint union and denoted by . The join of and is the disjoint union of graphs and together with all the edges joining and . Formally, . The complement of a graph is the graph (the same vertex set but whose edge set consists of -element subsets of that are not in ). That is, and contains all possible edges on the vertex set of .
The closure of a graph with vertices, denoted by , is the graph obtained from by repeatedly adding edges between nonadjacent vertices whose degrees sum to at least , until no such vertices exist. The degree sequence of a graph is the nondecreasing sequence of its vertex degrees. A graph is r-regular if all of its vertices have degree . We say that a graph is an r-factor of a graph when and is -regular. Notice here that a cycle cover of a graph is equivalent to a -factor of .
An independent set in a graph is a subset of pairwise nonadjacent vertices in . A maximum independent set is an independent set of largest size for a given graph . The size of a maximum independent set is called the independence number of and is denoted by . Besides, a clique of is a subset of vertices of whose induced subgraph is a complete graph. The following lemma is used in our arguments:
**Claim **\thetheorem
For a graph on vertices with and , the independence number of satisfies the inequality and the equality holds only for the complete bipartite graph with .
Proof 2.1** (Proof of Claim 2).**
Assume to the contrary that is an independent set of with size greater than and let be the remaining vertices in , i.e., and . Each vertex in can be adjacent only to the vertices in since is an independent set in . However, then each vertex in has degree less than in , which is a contradiction since is the minimum degree. When and , each vertex in must be adjacent to every vertex in to attain the minimum degree ; moreover, each vertex in can be adjacent only to the vertices in since . Hence, only when is with as desired.
A cycle on vertices is denoted by . A cycle cover of a graph is a collection of cycles such that every vertex in is contained in at least one such cycle. If the cycles of the cover have no vertices in common, the cover is called vertex-disjoint. Unless otherwise stated, cycle covers are always assumed to be vertex-disjoint in this work. A *Hamiltonian cycle *of a graph is a cycle passing through every vertex of exactly once, and a graph containing a Hamiltonian cycle is called Hamiltonian. Some fundamental results on hamiltonicity used in this paper are as follows:
Theorem 2.2**.**
(Dirac [8]) If is a graph of order such that , then is Hamiltonian.
Theorem 2.3**.**
(Büyükçolak et al. [4]) Let be a connected graph of order such that . Then is Hamiltonian unless is a graph with one common vertex or a graph for odd , where is a not necessarily connected simple graph on vertices.
Theorem 2.4**.**
(Bondy-Chvátal [3]) A graph is Hamiltonian if and only if its closure is Hamiltonian.
Theorem 2.5**.**
(Chvátal [5]) Let be a simple graph with degree sequence , where . If there is no such that and , then is a complete graph and therefore is Hamiltonian.
Theorem 2.6**.**
(Nash-Williams [21]) Let be -connected graph of order with . Then is Hamiltonian.
Theorem 2.7**.**
(Moon-Moser [20]) Let be a bipartite graph with two disjoint vertex sets and such that . If , then is Hamiltonian.
A k-edge-coloring of a graph is an assignment of colors to edges of , which is represented by a mapping , where is a set of colors. Given a -edge-coloring of with colors , denotes the set of edges incident to colored with for , where . A reload cost function is a function such that for all pairs of colors ,
, 2. 2.
.
The reload cost incurs at a vertex while traversing two consecutive edges of different colors and , where and are incident edges. The reload cost is said to be symmetric if and to satisfy the triangle inequality if for mutually incident edges , and . The reload cost of a path is the sum of the reload costs that occur at its internal vertices, i.e., , where is a path of length . The reload cost of a cycle is , where is a cycle consisting of edges in this cyclic order. Note that a monochromatic path or cycle, i.e., a path or cycle having all edges with the same color, clearly has zero reload cost. Besides, the reload cost of a cycle cover is the sum of the reload costs of each cycle component of the cycle cover, i.e., , where .
The Minimum Reload Cost Cycle Cover (MinRC3) problem is an optimization problem which aims to span all vertices of an edge-colored graph by a set of vertex-disjoint cycles with minimum reload cost. Formally,
MinRC3
Input: A graph with an edge coloring function and a reload cost function .
Output: A cycle cover C of .
Objective: Minimize .
The previous results on MinRC3 are as follows:
Theorem 2.8**.**
(Galbiati et al. [12]) MinRC3 is strongly NP-hard even if the number of colors is , the reload costs are symmetric, and satisfy the triangle inequality.**
Corollary 2.9**.**
(Galbiati et al. [12]) MinRC3 is not approximable within , for any , even if the number of colors is , the reload costs are symmetric, and satisfy the triangle inequality.
A monochromatic cycle cover is composed of cycles such that the colors of the edges of a particular cycle are the same; however, the colors of edges in different cycles may differ in general. In this work, we investigate the MinRC3 problem in equitably or nearly equitably -edge-colored complete graphs and prove that the minimum reload cost is zero in such graphs except for some special cases by constructing a monochromatic cycle cover in a single color.
3 MinRC3 in Complete Graphs
By Theorem 2.8 and Corollary 2.9, we already know that the MinRC3 problem is NP-hard in the strong sense and not approximable within for any , even when the number of colors is . In the following theorem, we prove a hardness result for complete graphs:
Theorem 3.1**.**
The MinRC3 problem is strongly NP-hard* and not approximable within for any for complete graphs even if the reload costs are symmetric.*
Proof 3.2**.**
The proof is by reduction from the problem itself. Given an instance of MINRC3 , where , we construct an instance of MINRC3 as follows: is a complete graph such that and . For all and , we set , where is a very large integer. In other words, for every , is a new color in having a very large reload cost value with all other colors in . This reduction shows that is a satisfiable instance of MINRC3 if and only if is a satisfiable instance of MINRC3 in complete graphs. Furthermore, in the case where is a satisfiable instance, we clearly have , where and denote the reload cost of an optimum solution of and , respectively. Let be a approximation algorithm for the MinRC3 problem in complete graphs for some . Then since , is also a approximation algorithm for the MinRC3 problem in general, contradicting Corollary 2.9. Hence, the theorem holds.
Having proved that MinRC3 is in general inapproximable within for any in complete graphs, now we investigate MinRC3 in complete graphs with equitable and nearly equitable -edge-colorings.
3.1 Complete Graphs with Equitable -Edge-Coloring
Since a monochromatic cycle cover has zero reload cost, it is sufficient to show that there exists a partition of vertices of a complete graph having an equitable -edge-coloring into monochromatic vertex-disjoint cycles.
The following lemma given in [6] implies the existence of an equitable -edge-coloring in complete graphs except , where :
Lemma 3.3**.**
[6]* A connected graph has an equitable -edge-coloring if and only if it is not a connected graph with odd number of edges and all vertices having an even degree.*
Corollary 3.4**.**
A complete graph has an equitable -edge-coloring if and only if it is not a complete graph with .
Now, we analyze the cases of for even and odd separately. For odd , by Corollary 3.4 it suffices to examine complete graphs with order . The following lemma shows that a complete graph having an equitable -edge-coloring has a monochromatic Hamiltonian cycle in both colors:
Lemma 3.5**.**
For a complete graph , where , with an equitable -edge-coloring, there exists a monochromatic cycle cover of the form for both colors; in other words, there exist monochromatic Hamiltonian cycles in both colors.
Proof 3.6**.**
Let be an equitable -edge-coloring in the complete graph , , with colors, say red and blue. In an equitable -edge-coloring of , each vertex is incident to red edges and blue edges. Consider the color induced subgraphs and in for red and blue colors, respectively. Both and are -regular graphs on vertices. Note that a -regular graph on vertices cannot be disconnected because otherwise each component has to have at least vertices, contradicting the specified order . Both and are connected -regular graphs on vertices. Hence, they have Hamiltonian cycles by Theorem 2.3 since they are neither with one common vertex nor . Therefore, there exists a monochromatic cycle cover of the form in both colors, as desired.
For even , the following lemma shows that a complete graph having an equitable -edge-coloring has a monochromatic cycle cover with at most two cycles having the same size and the same color:
Lemma 3.7**.**
For a complete graph , , with an equitable -edge-coloring, there exists a monochromatic cycle cover in a single color of the form or . In particular, there exists a cycle cover in a single color if has a disconnected or -connected color induced subgraph, and a Hamiltonian cycle otherwise.
Proof 3.8**.**
Let be an equitable -edge-coloring of the complete graph with red and blue colors. In an equitable -edge-coloring of , each vertex is incident to either red edges and blue edges or blue edges and red edges. We consider the subgraphs and in induced by red and blue colors, respectively. For both of them, the minimum degree is at least and the maximum degree is at most ; i.e., .
Note that the only disconnected graph on vertices with is the disjoint union of two , i.e., , which is a -regular graph. Let be a disconnected graph on vertices with ; i.e., . Since both components of are complete graphs, has a cycle cover of the form . On the other hand, is a complete bipartite graph since it is the complement of . Clearly, has a Hamiltonian cycle by Theorem 2.2. In this case, we therefore have a monochromatic cycle cover in both induced subgraphs and .
We now suppose that both and are connected graphs with and . Assume that both and are regular graphs, i.e., for both graphs. Hence, one of the graphs is a -regular graph on vertices, whereas the other is a -regular graph on vertices. By Theorem 2.2, there is a Hamiltonian cycle on the -regular graph on vertices. Therefore, in the case where color induced subgraphs are regular, we have a monochromatic cycle cover of the form in the -regular subgraph induced by one of the colors.
We then consider the case where both and are connected and are not regular graphs. In other words, both of them have and . Let the degree sequences of and be and , respectively, where and . Since and for both graphs, we have for . Notice that at least half of the vertices in one of the induced subgraphs and have degree , since these subgraphs are complements of each other. Without loss of generality (w.l.o.g.), assume that at least half of the vertices of have degree , i.e., for . Let us consider the degrees of the remaining vertices, i.e., vertices of degree , in :
Assume that the number of vertices having degree is less than , i.e., . Then the closure of is a complete graph; therefore, by Theorem 2.4 has a Hamiltonian cycle. 2. 2.
Assume that the number of vertices having degree is at least , i.e., . If there exists a pair of nonadjacent vertices and both having degree , then the closure of must contain the edge by definition. The degrees of and become and then they must be adjacent to all other vertices in the closure of . Iteratively adding edges between nonadjacent vertices whose degrees sum to at least , we obtain the complete graph as the closure of . Then, has a Hamiltonian cycle by Theorem 2.4. Otherwise, i.e., there is no pair of nonadjacent vertices both having degree , then all vertices having degree are adjacent to each other. It follows that the vertices of degree form a clique of size or in depending on the value of . If the vertices of degree form a clique of size in , i.e., , it contradicts the fact that is a connected graph. Then, there are vertices having degree in , i.e., . Hence, we deduce that there are vertices having degree in and these vertices form a clique of size in . It implies that all vertices having degree in form an independent set of size in . Besides, must be even in order to satisfy the relation for . That is, . By Lemma 2, we have in . We then observe that the set of vertices of degree in is indeed a maximum independent set of size in , i.e., in . Otherwise, i.e., then , which is a contradiction.
Let us consider the spanning bipartite subgraph of with the partite sets and , which consist of vertices of degree and in , respectively. Notice that and there is no edge among the vertices of in . Hence,* is obtained by removing all edges among the vertices of in , i.e., all edges among the vertices having degree . Furthermore, contains edges since the vertices of have degree in , whereas contains edges since the vertices of have degree in . It means that is obtained by removing exactly edges, which join the vertices of degree , from where is even. Hence, one can observe that there is no isolated vertex of in since the vertices of form a maximum independent set in . Notice that the vertices in partite set have minimum degree at least in since we remove at most edges from a vertex of degree in . Hence, there is no leaf vertex of in since . It follows that for any nonadjacent vertices and , we have in where . Since , has a Hamiltonian cycle by Theorem 2.7 , which is also a Hamiltonian cycle in . In this case, we therefore have a monochromatic cycle cover of the form in .*
We now combine Corollary 3.4, Lemmata 3.5 and 3.7 in the following way:
Theorem 3.9**.**
For , a complete graph with an equitable -edge-coloring has a monochromatic cycle cover in a single color with at most two cycles. In particular, such a graph contains two cycles of the same size and the same color, or a monochromatic Hamiltonian cycle.
By Theorem 3.9, we obtain the first main result of this section as follows:
Corollary 3.10**.**
For , the solution of the MinRC3 problem equals zero for having an equitable -edge-coloring.
Remark 3.11**.**
In with an equitable -edge-coloring, the only case where the solution of the MinRC3 problem is nonzero is when both colors induce a path on three edges.
3.2 Complete Graphs with a Nearly Equitable -Edge-Coloring
We now analyze the MinRC3 problem in complete graphs having a nearly equitable -edge-coloring. Note that every equitable -edge-coloring is indeed a nearly equitable -edge-coloring. Then, we only need to study the MinRC3 problem in complete graphs having a nearly equitable -edge-coloring that is not an equitable -edge-coloring, say a sharp nearly equitable -edge-coloring.
In the following lemma, we prove that a complete graph , where , cannot have a sharp nearly equitable -edge-coloring.
Lemma 3.12**.**
In a complete graph , where , any nearly equitable -edge-coloring is indeed an equitable -edge-coloring.
Proof 3.13**.**
Assume that in the complete graph we have a sharp nearly equitable -edge-coloring with colors red and blue. That is, there exist a vertex such that , implying that the degree of is even. However, this contradicts the fact that the degree of is in .
By Corollary 3.4, we see that the complete graph cannot have an equitable -edge-coloring. On the other hand, in 1982 Hilton and de Werra [18] proved the following:
Lemma 3.14**.**
[18]* Any graph has a nearly equitable edge-coloring with colors, where .*
In the following lemma, we show that a complete graph , where , may have a sharp nearly equitable -edge-coloring.
Lemma 3.15**.**
For each , there exists a complete graph with a sharp nearly equitable -edge-coloring.
Proof 3.16**.**
By Lemma 3.14 and Corollary 3.4, we deduce that complete graphs have a nearly equitable -edge-coloring, but do not have an equitable -edge-coloring. Thus, any nearly equitable -edge-coloring is sharp in . In a complete graph , we can obtain a sharp nearly equitable -edge-coloring as follows: let be an equitable -edge-coloring of with colors red and blue; that is, each vertex of is incident to red edges and blue edges. We define a new -edge-coloring by interchanging the color of an edge, say from red to blue. It is easy to see that is a sharp nearly equitable -edge-coloring since two vertices of are incident to red edges and blue edges.
In the following, we prove that for odd , any complete graph having a sharp nearly equitable -edge-coloring has a monochromatic cycle cover with at most two cycles of sizes and with a single color. Note here that if the complete graph , for , has a nearly equitable -edge-coloring that is also an equitable -edge-coloring, then by Lemma 3.5 there exists a monochromatic Hamiltonian cycle .
Lemma 3.17**.**
For a complete graph , , having a sharp nearly equitable -edge-coloring, there exists a monochromatic cycle cover in a single color of the form or . In particular, there exists a cycle cover in a single color if has a subgraph of the form induced by a color, and a Hamiltonian cycle otherwise.
Proof 3.18**.**
Let be a sharp nearly equitable -edge-coloring of the complete graph with colors red and blue. Since all vertices of have even degree , is either [math] or . Notice that there must be at least one vertex with since is a sharp nearly equitable -edge-coloring. Indeed, by the proof of Lemma 3.15 there exist at least two vertices and such that .
We consider the subgraphs and induced by red and blue edges, respectively, in . For both of them, the minimum degree is at least and the maximum degree is at most ; i.e., and . In the case where both and are regular graphs, i.e., without loss of generality -regular and -regular graphs, respectively, by Theorem 2.2 we have a Hamiltonian cycle in the -regular graph . Therefore, we have a monochromatic cycle cover of the form in this case.
We then suppose that neither nor are regular graphs, i.e., we have for both subgraphs. Then we have two cases for the minimum degree, namely or .
Case :* Assume that for one of and , say . If is disconnected, then each component has to have at least vertices, which contradicts the order being . Hence, such a graph has to be connected. Moreover, has because it is not regular. Thus, is a connected graph with and on vertices. By Theorem 2.3, has a Hamiltonian cycle if it is neither the union of two complete graphs with one common vertex nor the join of an independent set of size with any graph with order . First, cannot be the union of two complete graphs with one common vertex since . Therefore, assume that is the the join of an independent set of size with some graph . Since , has to be an independent set; therefore, is isomorphic to the complete bipartite graph . Since has odd order, a Hamiltonian cycle of it is an odd cycle, which contradicts the fact that it is a bipartite graph. Indeed, cannot have any cycle cover in this case since any cycle cover in has to have at least one odd cycle. Therefore, has a Hamiltonian cycle unless it is isomorphic to . In the case when is isomorphic to , consider , i.e., the complement of . Observe that is the disjoint union of two complete graphs and with and ; hence, there exists a monochromatic cycle cover of the form in . Therefore, we have a monochromatic cycle cover of the form either or in this case. In particular, there exists a monochromatic cycle cover if has a subgraph induced by one of the colors.*
Case :* Assume that for both and . Then, both of them have since they are complements of each other in . Assume that such a graph is disconnected. Since , each component has at least vertices. Since , at least one component has vertices. Then the order of the graph has to be at least , contradiction. Therefore, a graph with and on vertices has to be connected. Thus, both and are connected graphs with and .*
Case :* Assume that at least one of and has connectivity ; that is, there exists a cut vertex , say in . Then, the subgraph has exactly two components since each component has to have at least vertices and . Then has two components and such that and . Hence, we have and for both and . We now consider two disjoint and complementary cases:*
- •
Assume that and . Then is the complete graph all of whose vertices are adjacent to in , since . That is, we have a complete subgraph in , and hence a cycle that consists of all vertices of and . On the other hand, is then a subgraph with on vertices. Since , by Theorem 2.2, has a Hamiltonian cycle . This altogether constitutes a monochromatic cycle cover of the form .
- •
Assume that . Since for both and and , both and have a Hamiltonian cycle . Besides, since , all vertices in and have degree at most in . Then, the only vertex having maximum degree in is the cut vertex . It follows that is adjacent to at least vertices of either or , say . Since is adjacent to more than half of the vertices of , must be adjacent to two consecutive vertices and of the Hamiltonian cycle in . By using the path instead of the edge in , we can construct a cycle covering all vertices of and in .
Therefore, in this case we have a monochromatic cycle cover of the form .
Case :* Assume that both subgraphs and have connectivity at least . Recall that and . Let and be the independence numbers of and , respectively. By Lemma 2, and must be strictly less than because neither of and can be the complete bipartite graph since . We now consider the following disjoint and complementary cases:*
- •
Assume that at least one of and is less than or equal to the minimum degree , say . Then, since , we have . Therefore, by Theorem 2.6, has a Hamiltonian cycle.
- •
Assume that . Then, there exists an independent set of size and a clique of size in . Let us partition the vertices of into the sets , which is an independent set of size , and , which consists of the remaining vertices. All vertices except possibly one vertex of the clique of size must lie in since is an independent set in . Then, each vertex of this clique lying in , i.e., at least vertices, is adjacent to at most three vertices in since its degree is at most . Hence, the number of edges joining the vertices of and is at most by counting edges leaving , and at least by counting edges leaving . Since the inequality always holds when , i.e., the minimum number of edges leaving is greater than the maximum number of edges leaving when , we have a contradiction. Therefore, we cannot have .
- •
Assume that one of and is and the other is , say and . Then, there exists an independent set of size and a clique of size in . Let us partition the vertices of into the sets , which is an independent set of size , and , which consists of the remaining vertices. Since all vertices except possibly one vertex of the clique of size must lie in , each vertex of this clique lying in is adjacent to at most three vertices in . Hence, the number of edges joining the vertices of and is at most by counting edges leaving , and at least by counting edges leaving . Since the inequality always holds when , we have a contradiction.
- •
Assume that . In a similar way to the previous cases, there exists an independent set of size and a clique of size in both and . Let us partition the vertices of into the sets , which is an independent set of size , and , which consists of the remaining vertices. Since all vertices except exactly one vertex of the clique of size must lie in , each vertex of this clique lying in is adjacent to at most two vertices in . Hence, the number of edges joining the vertices of and is at most by counting edges leaving , and at least by counting edges leaving . Note here that at least one vertex of is adjacent to all vertices in . Since the inequality always holds when , we have a contradiction.
Therefore, at least one of and must be less than or equal to the minimum degree . Hence, in this case we have a monochromatic cycle cover of the form where .
By combining Lemmata 3.12 and 3.17, we obtain the following result:
Theorem 3.19**.**
A complete graph with and a nearly equitable -edge-coloring has a monochromatic cycle cover in a single color with at most two cycles, which have sizes and .
Hence, we obtain the second main result of this section as follows:
Corollary 3.20**.**
The solution of the MinRC3 problem equals zero for complete graphs with at least 13 vertices and a nearly equitable -edge-coloring.
4 Algorithm for MinRC3
In this section we present an algorithm referred to as the MonochromaticCycleCoverAlgorithm (MCCA), which, given a complete graph with a -edge-coloring, returns either a monochromatic cycle cover C or “NONE". Although MCCA may in general return “NONE" for a complete graph with a -edge-coloring , we will show that except possibly on a complete graph with four vertices, it returns a monochromatic cycle cover if is an equitable -edge-coloring. Furthermore, except for some special cases, MCCA mostly (but not always) returns a monochromatic cycle cover if is a nearly equitable -edge-coloring.
We first consider a complete graph of even order , say . By Lemma 3.12, any nearly equitable -edge-coloring is indeed an equitable -edge-coloring in . Hence, the algorithm MCCA works identically for both equitable and nearly equitable -edge-colorings in . We then consider the case where has an equitable -edge-coloring. Given a subgraph of induced by a color, the algorithm tests for , which is Dirac’s sufficiency condition for hamiltonicity given in Theorem 2.2. Once passes the test, the algorithm constructs a Hamiltonian cycle via the function DiracHamiltonian, which builds a Hamiltonian cycle by following the proof of Theorem 2.2. According to the proof of Lemma 3.7, a monochromatic cycle cover, in particular a Hamiltonian cycle, is obtained when the subgraph induced by a color is a disconnected or a regular graph in this case. If fails to satisfy the condition , then the algorithm builds the closure of and tests for being a complete graph according to Bondy-Chvátal’s hamiltonicity condition given in Theorem 2.4. Once passes the test, the algorithm constructs a Hamiltonian cycle via the function ClosureHamiltonian, which builds a Hamiltonian cycle by following the proof of Theorem 2.4. Indeed, in the rest of the proof of Lemma 3.7 we use Theorems 2.4, 2.5 and 2.7, which give sufficiency conditions for closure and hamiltonicity of . Hence, the function ClosureHamiltonian will be sufficient to construct a monochromatic cycle cover, in particular a Hamiltonian cycle, in order to complete the rest of this case.
We now consider a complete graph of odd order , say . In this case, we first assume that has an equitable -edge-coloring. Indeed, since the complete graph does not have an equitable -edge-coloring by Corollary 3.4, we only need to consider a complete graph with an equitable -edge-coloring. Given a subgraph of induced by a color, the algorithm tests for , which is Büyükçolak’s sufficiency condition for hamiltonicity given in Theorem 2.3. Once passes the test, the algorithm constructs a Hamiltonian cycle via the function ExtensionDiracHamiltonian, which builds a Hamiltonian cycle by following the proof of Theorem 2.3 given in [4]. According to the proof of Lemma 3.5, a monochromatic cycle cover, particularly a Hamiltonian cycle, is obtained.
Let us consider the case where a complete graph has a nearly equitable -edge-coloring. By Lemma 3.15 and 3.17, a complete graph may have equitable and nearly equitable -edge-colorings in different forms, whereas a complete graph can only have a nearly equitable -edge-coloring. Therefore, if has a nearly equitable -edge-coloring , which is also an equitable -edge-coloring, then the algorithm constructs a monochromatic cycle cover, in particular a Hamiltonian cycle, by considering as an equitable -edge-coloring. We then consider the case where a complete graph has a sharp nearly equitable -edge-coloring. Given a subgraph of induced by a color, the algorithm works in the following way:
- •
The algorithm tests for and constructs a Hamiltonian cycle via the function DiracHamiltonian if passes the test. According to the proof of Lemma 3.17, in this case a monochromatic cycle cover, in particular a Hamiltonian cycle, is obtained when the subgraph induced by a color is a regular graph.
- •
Otherwise, the algorithm then tests for , which is Büyükçolak’s sufficiency condition for hamiltonicity given in Theorem 2.3. If passes the test, then the algorithm constructs either a cycle cover by following the proof of Theorem 2.3 given in [4] or a Hamiltonian cycle via the function ExtensionDiracHamiltonian. According to the proof of Lemma 3.17, a monochromatic cycle cover of the form is obtained in the complement of when the subgraph is a complete bipartite graph in this case. Indeed, if , the algorithm constructs two cycles and with the vertices of degree and the vertices of degree , respectively. Notice that the order of vertices in and makes no difference for the Hamiltonian cycle since these sets of vertices form two distinct complete graphs in the complement of .
- •
Otherwise, the algorithm tests for a cut vertex . If passes the test, then the algorithm constructs a cycle cover of the form in two different ways by using the structure of given in the proof of Lemma 3.17.
Notice that the algorithm returns “NONE" for a complete graph with a nearly equitable -edge-coloring if both subgraphs induced by the colors are -connected with and (Case 2b in the proof of Lemma 3.17). In other words, the algorithm remains inconclusive in this case since the corresponding part of the proof is not constructive.
By using the constructive nature of Dirac’s original proof for Theorem 2.2, the work in [7] presents a polynomial-time algorithm for finding Hamiltonian cycles in graphs that satisfy the condition of Theorem 2.2, i.e., having at least three vertices and minimum degree at least half the total number of vertices. For the sake of completeness, in Algorithm 2 we give a function which produces a Hamiltonian cycle under the condition of Theorem 2.2.
In Algorithm 2, the function DiracHamiltonian first builds a maximal path by starting with an edge and then extending it in both directions as long as this is possible. Afterwards, the function closes the path to a cycle and then tries to find a larger path by adding to the cycle a new vertex and opening it back to a path. By the minimum degree condition , any maximal path can be closed to a cycle and it is possible to extend a closed cycle to a larger path. Finally, the function builds a Hamiltonian path and then a Hamiltonian cycle.
As a result of the constructive nature of Bondy-Chvátal’s proof for Theorem 2.4, there exists a polynomial-time algorithm which produces a Hamiltonian cycle in graphs whose closure is a complete graph. For the sake of completeness, we give such an algorithm in Algorithm 3.
In Algorithm 3, the function first arbitrarily arranges all vertices in a cycle since the closure is complete. Note that this cycle is Hamiltonian since it contains all vertices of the graph. If all edges of the cycle are already in the graph, then we are done. Otherwise, there exists an edge which is in the closure but not in the graph. The function opens this Hamiltonian cycle to a Hamiltonian path by removing , and builds a new Hamiltonian cycle from this Hamiltonian path using edges and and removing edge in the graph for some . The existence of such an edge is guaranteed by definition of closure, i.e., . After repeating this process for each edge which is in the closure but not in the graph, the function constructs a Hamiltonian cycle in the graph.
Since the function ExtensionDiracHamiltonian and its constructive structure are explicitly stated in [4], we do not give the algorithm ExtensionDiracHamiltonian here. We refer to [4] for details.
5 Conclusion
In this work, we show that there exists a monochromatic cycle cover in complete graphs with at least vertices and a nearly equitable -edge-coloring. Hence, we conclude that the minimum reload cost is zero in these graphs. In general, all proofs except one part in this paper are constructive. Then, we provide a polynomial-time algorithm that constructs a monochromatic cycle cover, in particular a Hamiltonian cycle or two cycles whose sizes differ by at most one, in complete graphs with a nearly equitable -edge-coloring. This algorithm builds a monochromatic cycle cover in all complete graphs with an equitable -edge-coloring, whereas it may remain inconclusive in some complete graphs with a sharp nearly equitable -edge-coloring. In particular, the algorithm remains inconclusive for the case where both subgraphs induced by a color in a complete graph of odd order with a sharp nearly equitable -edge-coloring is -connected with and .
We believe that the MinRC3 problem may have solution zero for other types of -edge colorings in complete graphs because of the insight provided by this work. As a future work, we plan to study the MinRC3 problem in complete graphs with a -edge coloring in general and design an algorithm that not only determines whether a monochromatic cycle cover exists but also constructs a monochromatic cycle cover whenever it exists.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] E. Amaldi, G. Galbiati, and F. Maffioli, On minimum reload cost paths, tours, and flows , Networks 57 (2011), 254–260.
- 2[2] S. Bessy and S. Thomassé, Partitioning a graph into a cycle and an anticycle, a proof of Lehel’s conjecture , J. Combin. Theory Ser. B 100 (2010), 176–180.
- 3[3] J.A. Bondy and V. Chvátal, A method in graph theory , Discr. Math. 15 (1976), 111–135.
- 4[4] Y. Büyükçolak, D. Gözüpek, S. Özkan, and M. Shalom, On one extension of Dirac’s theorem on hamiltonicity , Discr. Appl. Math. 252 (2019), 10–19.
- 5[5] V. Chvátal, On Hamilton’s ideals , J. Combin. Theory Ser. B 12 (1972), 163–168.
- 6[6] D. de Werra, Equitable colorations of graphs , ESAIM: Math. Modelling Numer. Anal. - Modélisation Mathématique et Analyse Numérique 5 (1971), 3–8.
- 7[7] A. Dharwadker, 2004. A new algorithm for finding Hamiltonian circuits. http://www.dharwadker.org/hamilton/ .
- 8[8] G.A. Dirac, Some theorems on abstract graphs , Proc. Lond. Math. Soc. 2 (1952), 69–81.
