

In this case the gadget has a variable which is TRUE, the gadget is therefore satisfied. One: A gadget can have a connection with a variable Node that is set to TRUE. Now we have two scenarios for each of the clause gadgets: So set the variable corresponding to the one node that is selected in each of the variable gadgets to TRUE.

We must have 2 nodes in each clause gadget because if we don't, then one of the connection in the clause gadget is not incident. (This is because k = variables+2clauses,if you don't choose one of the variable in the variable gadget then the middle connection in the gadget is not incident, and if you choose in one gadget, you will end up with variables + 1 + 2 clauses, we'll show that you must choose 2 nodes in each clause gadget in the next sentence.) Since there is a k Vertex Cover, then one and only one node of each of the variable gadgets must be in the Vertex Cover. So all you need to do is to show that as long as there is a k Vertex Cover for the graph constructed in the reduction, you have a satisfying solution to 3SAT. This is effectively the "only if" part to the proof that the two are "equivalent".

How this setup proves that if there exists a k-covering, then the boolean expression in CNF is satisfiable. That there is a 3SAT satisfaction if and only if there is a k vertex cover in the graph constructed in the reduction step.Īssuming you are familiar with how the reduction is done, (if not ,refer to the document). Hence the indegree of 'a' is 1.To show that Vertex Cover and 3SAT is "equivalent", you have to show Similarly, the graph has an edge 'ba' coming towards vertex 'a'. Vertex 'a' has an edge 'ae' going outwards from vertex 'a'. Take a look at the following directed graph. The indegree and outdegree of other vertices are shown in the following table − Vertex Similarly, there is an edge 'ga', coming towards vertex 'a'. Vertex 'a' has two edges, 'ad' and 'ab', which are going outwards. Outdegree of vertex V is the number of edges which are going out from the vertex V.Ĭonsider the following examples.

Indegree of vertex V is the number of edges which are coming into the vertex V. In a directed graph, each vertex has an indegree and an outdegree. The graph does not have any pendent vertex. Example 1ĭeg(a) = 2, as there are 2 edges meeting at vertex 'a'.ĭeg(b) = 3, as there are 3 edges meeting at vertex 'b'.ĭeg(c) = 1, as there is 1 edge formed at vertex 'c'ĭeg(d) = 2, as there are 2 edges meeting at vertex 'd'.ĭeg(e) = 0, as there are 0 edges formed at vertex 'e'.ĭeg(a) = 2, deg(b) = 2, deg(c) = 2, deg(d) = 2, and deg(e) = 0. If there is a loop at any of the vertices, then it is not a Simple Graph.ĭegree of vertex can be considered under two cases of graphs −Īn undirected graph has no directed edges. This 1 is for the self-vertex as it cannot form a loop by itself. So the degree of a vertex will be up to the number of vertices in the graph minus 1. In a simple graph with n number of vertices, the degree of any vertices is − deg(v) = n – 1 ∀ v ∈ GĪ vertex can form an edge with all other vertices except by itself. It is the number of vertices adjacent to a vertex V.
