
TL;DR
This paper introduces the concept of semi-proper orientations in graphs, proves the existence of optimal orientations with weights of one or two, and establishes NP-hardness results for certain classes of graphs.
Contribution
It defines the semi-proper orientation number, proves the existence of optimal orientations with limited weights, and shows NP-hardness for planar and bipartite graphs.
Findings
Optimal semi-proper orientations exist with edge weights of one or two.
Deciding if a planar graph with semi-proper orientation number 2 has an all-one edge orientation is NP-complete.
Determining the semi-proper orientation number of planar bipartite graphs is NP-hard.
Abstract
A {\it semi-proper orientation} of a given graph is a function that assigns an orientation and a positive integer weight to each edge such that for every two adjacent vertices and , , where is the sum of the weights of edges with head in . The {\it semi-proper orientation number} of a graph , denoted by , is , where is the set of all semi-proper orientations of . The {\it optimal semi-proper orientation} is a semi-proper orientation such that . In this work, we show that every graph has an optimal semi-proper orientation such that the weight of each edge is one or two. Next, we show that determining whether a given…
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.
On the semi-proper orientations of graphs
Ali Dehghan
Systems and Computer Engineering Department, Carleton University, Ottawa, Canada E-mail address: .
Abstract
A semi-proper orientation of a given graph is a function that assigns an orientation and a positive integer weight to each edge such that for every two adjacent vertices and , , where is the sum of the weights of edges with head in . The semi-proper orientation number of a graph , denoted by , is , where is the set of all semi-proper orientations of . The optimal semi-proper orientation is a semi-proper orientation such that . In this work, we show that every graph has an optimal semi-proper orientation such that the weight of each edge is one or two. Next, we show that determining whether a given planar graph with has an optimal semi-proper orientation such that the weight of each edge is one is NP-complete. Finally, we prove that the problem of determining the semi-proper orientation number of planar bipartite graphs is NP-hard.
Key words: Proper orientation; semi-proper orientation; planar graph; optimal semi-proper orientation; bipartite graph; computational complexity.
1 Introduction
A directed graph is an ordered pair consisting of a set of vertices and a set of edges, with an incidence function that associates with each edge of an ordered pair of vertices of . If is an edge and , then is from to . The vertex is the tail of , and the vertex is its head. Let be an undirected graph with no loop or parallel edges (i.e., simple graph). An orientation of a graph is a digraph obtained from the graph by replacing each edge by exactly one of the two possible arcs with the same endvertices. Also, the indegree of a vertex in is the number of edges with head in .
1.1 Proper Orientation
An orientation of a graph is called proper orientation if any two adjacent vertices have different indegrees. The proper orientation number of a graph , denoted by , is the minimum of the maximum indegree taken over all proper orientations of the graph . Note that the maximum indegree of vertices is . On the other hand, the values of the indegrees define a proper vertex coloring of (adjacent vertices have different indegrees). Thus,
[TABLE]
The existence of proper orientation was demonstrated by Borowiecki, Grytczuk and Pilśniak in [8], where it was shown that every graph has a proper orientation with a vertex with . Afterwards, the proper orientation number was introduced in [1]. Recently, the proper orientation has been studied extensively by several authors, for instance see [1, 3, 4, 5, 6, 12].
We should mention that interest in proper orientations stems from their connection to the 1-2-3-Conjecture that says: “Can the edges of any non-trivial graph be assigned weights from so that adjacent vertices have different sums of incident edge weights?” [11]. For more information about 1-2-3-Conjecture and its variants see [2, 7, 9, 14].
1.2 Semi-proper Orientation
Motivated by the proper orientations of graphs and 1-2-3-Conjecture we investigate the semi-proper orientations of graphs. The semi-proper orientation of a given graph is a function that assigns an orientation and a positive integer weight to each edge such that for every two adjacent vertices and , , where is the sum of the weights of edges with head in . The semi-proper orientation number of a graph , denoted by , is , where is the set of all semi-proper orientations of . Note that throughout the paper for each semi-proper orientation of we denote by .
Every proper orientation of a graph is a semi-proper orientation where the weights of all edges are one. Consequently, by (1), we have
[TABLE]
The optimal semi-proper orientation is a semi-proper orientation such that . In this work, we show that every graph has an optimal semi-proper orientation such that for each edge , we have .
Theorem 1
Every graph has an optimal semi-proper orientation such that the weight of each edge is one or two.
Although for each graph we can find an optimal semi-proper orientation such that the weight of each edge is one or two, there are graphs such that they do not have any optimal semi-proper orientation without edges with label two. In other words, there are graphs such that for each of them . Next, we study the complexity of finding those graphs.
Theorem 2
It is NP-complete to determine whether a given planar graph with has an optimal semi-proper orientation such that the weight of each edge is one.
Remark 1
Here, we show that for every tree we have . Let be a tree and be a vertex in . Run depth-first search (DFS) algorithm from the root . This defines a partition of the vertices of where each part contains the vertices of which are at depth (i.e. at distance exactly from the vertex ). Note that by this partition each edge is between the vertices of to consecutive parts and . Next, for each edge , where and , orient from to . Call the resultant orientation . In orientation the indegree of each vertex except the vertex is exactly one. (Also the indegree of is zero.) Finally, define the following weight function for the edges of :
It is easy to see that for each vertex , where , we have and for each vertex , where , we have and also . Thus, is a semi-proper orientation of and we have . This completes the proof.
It was shown [4] that it is NP-complete to decide whether the proper orientation number of a given planar bipartite graph is less than or equal to three. We improve this hardness result for semi-proper orientation number and proper orientation number of graphs.
Theorem 3
*(1) For a given planar bipartite graph determining whether is NP-complete.
(2) For a given planar bipartite graph determining whether is NP-complete.*
The organization of the rest of the paper is as follows: In Section 2, we present some definitions and notations. Next, in Section 3, we prove that every graph has an optimal semi-proper orientation such that the weight of each edge is one or two. In Section 4, we study the computational complexity of finding optimal semi-proper orientations and computing the semi-proper orientation number of planar bipartite graphs. The paper is concluded with some remarks and open problems in Section 5
2 Notation
Throughout this paper we only consider finite simple graphs (i.e. finite graphs with no loop or parallel edges). We denote the vertex set and the edge set of by and , respectively. Also, we denote the maximum degree and the minimum degree of by and , respectively.
A proper vertex coloring of a graph is a function such that if are adjacent, then and are different. A proper vertex -coloring is a proper vertex coloring with . The smallest integer such that the graph has a proper vertex -coloring is called the chromatic number of and denoted by .
Consider the graph , and let be any subset of vertices of . Then, the induced subgraph on the set of vertices is the graph whose vertex set is and whose edge set consists of all the edges in that have both endpoints in . We follow [15] for terminology and notation where they are not defined here.
3 1-2-result for semi-proper orientations
In this section we prove that every graph has an optimal semi-proper orientation such that the weight of each edge is one or two.
**Proof of Theorem 1. **
We prove the theorem by using contradiction. To the contrary suppose that is a graph such that each of its optimal semi-proper orientations has an edge with weight more than two. In an optimal semi-proper orientation of a graph if the weight of an edge is more than two then we say that has a bad label in that semi-proper orientation. Without loss of generality suppose that each optimal semi-proper orientations of has at least , , edges with bad label and there is an optimal semi–proper orientation such that it has exactly edges with bad label. Among all optimal semi-proper orientations of , let be the set of optimal semi-proper orientations such that each of them has exactly edges with bad label. Clearly, is non-empty. Finally, among the optimal semi-proper orientations in , let be an optimal semi-proper orientation such that the sum of the weights of edges with bad labels is minimum. We assume that the optimal semi-proper orientation of has edges with bad label and the sum of the weights of edges with bad label is .
Let be an edge with bad label in (i.e. ) and . Also, let be the set of vertices such that for each of them there is directed path from the vertex to that vertex in . Among all vertices in let be a vertex such that the sum of weights of incoming edges to is minimum (i.e. is minimum over all ). Two cases for the vertex can be considered.
Case 1. Assume that . In this case the sum of weights of incoming edges to is minimum over all vertices in . Let be the set of vertices such that from each of them there is a directed edge to . Without loss of generality assume that . Also, let be the set of vertices such that for each of them there is a directed edge from to that vertex. So, we have . Now, we study the properties of the vertex .
Property 1. For each , we have .
Proof of Property 1. By our assumption for each , we have . Since is a proper vertex coloring, for each , we have .
Property 2. For each edge , , we have .
Proof of Property 2. To the contrary assume that there is a vertex , , such that . Two situations can be considered.
If , then consider the function , where
and . Clearly, is an optimal semi-proper orientation such that it has at most edges with bad label and the sum of the weights of edges with bad label is less than . But this is a contradiction.
If , then consider the function , where
and . Clearly, is an optimal semi-proper orientation such that it has edges with bad label. But this is a contradiction. This completes the proof of the Property 2.
Property 3. For each , we have .
Proof of Property 3. We have , so by Property 2, we have . Thus, by Property 1, we have .
Now, we are ready to prove this case. For each edge , , define a variable . Each variable can be one or two. The sum of variables is an integer between and . (i.e. ). So the sum of the variables can be different integers. Consequently, there is an integer such that and . Assign one and two to the variables such that their sum is . Now, define the function , where
and . By Property 3, and the way that we choose , it is clear that is an optimal semi-proper orientation such that it has edges with bad label. But this is a contradiction.
Case 2. Assume that . By the definition of there is a directed path from the vertex to the vertex . Let be the set of vertices such that from each of them there is a directed edge to . Without loss of generality assume that . (Note that we can have the case where the only directed path form to is the edge . In that case we assume that .) Next, let be the set of vertices such that for each of them there is a directed edge from to that vertex. Now, we study the properties of the vertex .
Property 4. We have .
Proof of Property 4. To the contrary suppose that . So there are indexes , where and . First, we define a new notation and then we complete the proof. Let be two arbitrary adjacent vertices (i.e. ). If we have , then we denote by .
Now, define the function , where
and
Note that for every vertex we have . Thus, is an optimal semi-proper orientation such that it has at most edges with bad label and the sum of the weights of edges with bad label is . But this is a contradiction.
Property 5. For each , we have . Also, we have .
Proof of Property 5. By our assumption the sum of weights of incoming edges to the vertex is minimum. Thus, for each , we have . Also, . On the other hand, the function is a proper vertex coloring, so by Property 4, for each , we have . Also, we have .
Now, we are ready to prove Case 2. For each edge , , define a variable . Each variable can be one or two. The sum of variables is an integer between and . (i.e. ). So the sum of the variables can be different integers. Hence, there is an integer such that and . Assign one and two to the variables such that their sum is . Now, define the function , where
and
By Property 5, and the way that we choose , it is clear that is an optimal semi-proper orientation such that it has at most edges with bad label and the sum of the weights of edges with bad label is at most . But this is a contradiction. This completes the proof.
- *
4 Hardness results
First, we introduce planar -SAT (type ) formula. Let be a -SAT formula with the set of clauses and the set of variables . Let be a graph with the set of vertices , where , such that for each clause , the vertex is adjacent to the vertices , and . Also every vertex is adjacent to the vertex . The formula is called planar -SAT (type ) if the graph is a planar graph. Throughout the paper we refer to as the type 2 graph that was derived from the formula . It was proved that the problem of determining the satisfiability of planar -SAT (type ) is -complete [10].
Problem: *Satisfiability of planar -SAT (type ).
Input*: A planar -SAT (type ) formula .
Question: Is there a truth assignment for that satisfies all the clauses?
Next, by using a polynomial time reduction from Satisfiability of planar -SAT (type ), we show that it is NP-complete to determine whether a given planar graph with has an optimal semi-proper orientation such that the weight of each edge is one.
**Proof of Theorem 2. **
Let be an instance of planar -SAT(type ) formula with the set of variables and the set of clauses . We transform this formula into a planar graph such that and the graph has an optimal semi-proper orientation such that the weight of each edge is one if and only if there is a satisfying assignment for . First, we introduce two useful gadgets.
Property 6. Consider the gadget which is shown in Fig. 1. Let be an optimal semi-proper orientation of such that for every edge we have . Then .
Proof of Property 6. It is easy to see that . Let be an optimal semi-proper orientation of such that for every edge we have . The induced subgraph on the set of three vertices forms a cycle of length three. So,
[TABLE]
Thus, the two edges and were oriented from to and , respectively. (Note that for every edge we have .) Therefore, and . Next, we show that . To the contrary suppose that . So, the edges and were oriented from to and , respectively. Thus, . So for two adjacent vertices and , we have . But this is a contradiction. So . Consequently, . Thus, . Hence .
In our proof we also use the gadget which is shown in Fig. 2. Next, we present the reduction.
Construction of . We construct the planar graph from the type 2 graph (that was derived from the formula ) in two steps.
Step 1. For each variable put a copy of the gadget . We call these variable gadgets. Also, for every clause put a copy of the gadget . We call these clause gadgets.
Step 2. For every clause with the literals , , (i.e. , where ) add the edges , and . Call the resultant graph .
Clearly, the resultant graph is planar and we have . Next, we study an important property of .
Property 7. Let and be an optimal semi-proper orientation of such that for every edge we have . Then every edge that connects a vertex of a clause gadget to a vertex of a variable gadget is oriented from the vertex of the variable gadget to the vertex of the clause gadget.
Proof of Property 7. Let be one of those edges. The induced graph on the set of three vertices forms a cycle of length three. Thus,
[TABLE]
So, the edge was oriented from to .
Property 8. Consider the graph . Let be an arbitrary clause and be an optimal semi-proper orientation of such that for every edge we have . Also, assume that . Then .
Proof of Property 8. Consider the subgraph . To the contrary suppose that . By property 7, and our assumption about the values of the function for the vertices , we can conclude that the edges , and should be oriented form , (, respectively) to , (, respectively). Thus, we have . Since is a proper orientation we have and . Thus the two edges were oriented from , (, respectively) to the vertex . But this shows that the incoming degree of the vertex is three which is a contradiction.
Next, we show that the graph has an optimal semi-proper orientation such that the weight of each edge is one if and only if there is a satisfying assignment for .
Proof of . Let be an optimal semi-proper orientation such that the weight of each edge is one. Let be a function such that if , then and if , then . Next, we prove that is a satisfying assignment for . For each clause , by Property 8, we have . Thus, by Properties 6 and 7, we have . Consequently, the function is a satisfying assignment for .
Proof of . Assume that is satisfiable with the satisfying assignment . Next, in three steps, we present an optimal semi-proper orientation such that the weight of each edge is one.
If is an edge that connects a vertex of a clause gadget to a vertex of a variable gadget, then orient from the vertex of the variable gadget to the vertex of the clause gadget.
For each gadget if , then orient the edges of like Fig. 3.(a). Otherwise orient those edges like Fig. 3.(b).
For each gadget , where , we have . Consequently, we have . Thus base on the values of use one of the orientations that were presented in Fig. 4. This completes the proof of .
Finally, we show that the semi-proper orientation number of the graph is always two. We present an optimal semi-proper orientation such that the weights of some edges are two. Consider the following orientations and weights for the edges of the graph.
If is an edge that connects a vertex of a clause gadget to a vertex of a variable gadget, then put and orient from the vertex of the variable gadget to the vertex of the clause gadget.
For each gadget put orientations and weights on the edges of like Fig. 3.(c)
For each gadget , put the weight of any edge one and orient them like Fig. 4.(a). This completes the proof.
In Part (1) of the next proof we show that for a given planar bipartite graph determining whether is NP-complete. After that in Part (2), we show that computing for planar bipartite graphs is NP-hard.
**Proof of Theorem 3. **
(1) It is clear that the problem is in NP. We reduce Cubic planar 1-in-3 SAT to our problem in polynomial time.
*Cubic planar 1-in-3 SAT.
Instance*: A 3-SAT formula such that every variable appears in exactly three clauses, there is no negation in the formula, and the bipartite graph obtained by linking a variable and a clause if and only if the variable appears in the clause, is planar.
Question: Is there a truth assignment for such that each clause in has exactly one true literal?
In 2001, Moore and Robson proved that Cubic planar 1-in-3 SAT is NP-complete [13].
Consider an instance of Cubic planar 1-in-3 SAT. We transform this into a planar bipartite graph such that the semi-proper orientation number of is two if and only if the formula has a 1-in-3 assignment. First, we introduce some useful gadgets.
Property 9. Let be graph such that and it has the gadget (which is shown in Fig. 5) as an induced subgraph. Also, let be an optimal semi-proper orientation of . Then .
Proof of Property 9. To the contrary suppose that . So by the symmetry of the gadget without loss of generality we can assume that the edges were oriented from to ( and , respectively). Since is a proper vertex coloring, we have . Thus, the three edges were oriented form (, , respectively) to . Hence . But this is a contradiction. This completes the proof.
Property 10. Let be graph such that and it has the gadget (which is shown in Fig. 6) as an induced subgraph. Also, let be an optimal semi-proper orientation of . Then .
Proof of Property 10. By Property 9, we have . To the contrary suppose that . Then at least one of the edges were oriented form to the other endpoint. Without loss of generality assume that were oriented form to . So, . But this is a contradiction.
Property 11. Let be graph such that and it has the variable gadget (which is shown in Fig. 7) as an induced subgraph. Also, let be an optimal semi-proper orientation of . Then .
Proof of Property 11. By Property 10, we have . Thus, the edges and were oriented from (, respectively) to (, respectively). Consequently, .
Property 12. Let be graph such that and it has the gadget (which is shown in Fig. 8) as an induced subgraph. Also, let be an optimal semi-proper orientation of . If there are two edges and such that and . Then .
Proof of Property 12. By Properties 9 and 10, we have . On the other hand, by Property 8, we should have . (Note that although in Property 8, we assume that the weight of any edge is one, the proof for the case where the weights are in is still correct.) Thus, we have .
Property 13. Let be graph such that and it has the gadget (which is shown in Fig. 9) as an induced subgraph. Also, let be an optimal semi-proper orientation of . Then .
Proof of Property 13. To the contrary assume that . The semi-proper orientation number of is two, so at least one of the three edges was oriented from to the other endpoint. By the symmetry suppose that was oriented from to . On the other hand, by property 9, we have . Thus, . So, the edge was oriented from to . Thus, , but this is a contradiction with . This completes the proof.
Property 14. Let be graph such that and it has the clause gadget (which is shown in Fig. 10) as an induced subgraph. Also, let be an optimal semi-proper orientation of . Then .
Proof of Property 14. By Properties 12 and 13, the proof is clear.
Now, we present the construction of and prove the reduction.
Construction of . We construct the planar bipartite graph from in two steps.
Step 1. For each variable put a copy of the variable gadget , which is shown in Fig. 7. Also, for every clause put a copy of the clause gadget , which is shown in Fig. 10.
Step 2. For every clause with the variables , , add the edges , and . Call the resultant graph . It is easy to check that is planar and bipartite.
Next, we show that the semi-proper orientation number of the graph is two if and only if there is a 1-in-3 satisfying assignment for .
Proof of . Let and be an optimal semi-proper orientation. Let be a function such that if , then and if , then . For each clause , by Property 14, we have
[TABLE]
So,
[TABLE]
Thus, the function is a 1-in-3 satisfying assignment for .
Proof of . Assume that is satisfiable with the 1-in-3 satisfying assignment . For each variable gadget orient its edges such that if and only if . Next, for each edge that connects a vertex of a clause gadget to a vertex of a variable gadget, put and orient from the vertex of the variable gadget to the vertex of the clause gadget. Finally we need orient the clause gadgets. Note that for each clause gadget , we have . Thus, we can use the orientation which is presented in Fig. 11 and Fig. 12 to find an optimal semi-proper orientation for clause gadgets. This completes the proof of Part (1).
(2) Note that in the proof of Part (1), we never assign weight one to each edge. Thus, the proof of that part shows the NP-hardness of Part (2) and completes the proof.
- *
5 Conclusions and future research
In this work, we introduced the notation of semi-proper orientations of graphs and studied some properties of these orientations. It is easy to see that . There are several questions regarding the relationship between the proper orientation number and the semi-proper orientation number of graphs. We pose some of them here.
Problem 1
.* Is there any constant number such that ?*
Problem 2
.* Is there any important family of graphs such that for graphs in that family there is a polynomial time algorithm to compute but computing is NP-hard?*
The problem of determining an upper bound for the proper orientation numbers of planar graphs is a well-known open problem in this area [4, 6]. We pose the same problem.
Problem 3
.* Does there exist a constant number such that for all planar graphs ?*
We proved that every graph has an optimal semi-proper orientation such that the weight of each edge is one or two. Also, we proved that determining whether a given planar graph with has an optimal semi-proper orientation such that the weight of each edge is one is NP-complete. It is interesting to find some families of graphs such that each graph in those families has an optimal semi-proper orientation such that the weight of each edge is one. We pose the following problem.
Problem 4
.* Is there any polynomial time algorithm to determine whether a given bipartite graph has an optimal semi-proper orientation such that the weight of each vertex is one?*
Furthermore, in this work we proved that the problem of determining the semi-proper orientation number of planar bipartite graphs is NP-hard. Regarding the complexity of computing the proper orientation number of regular graphs it was shown in [1] that it is NP-complete to decide whether the proper orientation number of a given 4-regular graph is 3. What can we say about the complexity of computing the semi-proper orientation number of regular graphs?
Problem 5
.* Determine the computational complexity of computing the semi-proper orientation number of regular graphs.*
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] A. Ahadi and A. Dehghan. The complexity of the proper orientation number. Inform. Process. Lett. , 113(19-21):799–803, 2013.
- 2[2] A. Ahadi, A. Dehghan, M. Kazemi, and E. Mollaahmadi. Computation of lucky number of planar graphs is NP-hard. Inform. Process. Lett. , 112(4):109–112, 2012.
- 3[3] A. Ahadi, A. Dehghan, and M. Saghafian. Is there any polynomial upper bound for the universal labeling of graphs? J. Comb. Optim. , 34(3):760–770, 2017.
- 4[4] J. Araújo, N. Cohen, S. F. de Rezende, F. Havet, and P. F. S. Moura. On the proper orientation number of bipartite graphs. Theoret. Comput. Sci. , 566:59–75, 2015.
- 5[5] J. Araujo, F. Havet, C. Linhares Sales, and A. Silva. Proper orientation of cacti. Theoret. Comput. Sci. , 639:14–25, 2016.
- 6[6] J. Araújo, C. L. Sales, I. Sau, and A. Silva. Weighted proper orientations of trees and graphs of bounded treewidth. Theoret. Comput. Sci. , accepted, 2018.
- 7[7] P. Bennett, A. Dudek, A. Frieze, and L. Helenius. Weak and strong versions of the 1-2-3 conjecture for uniform hypergraphs. Electron. J. Combin. , 23(2):Paper 2.46, 21, 2016.
- 8[8] M. Borowiecki, J. Grytczuk, and M. Pilśniak. Coloring chip configurations on graphs and digraphs. Inform. Process. Lett. , 112(1-2):1–4, 2012.
