Three Kinds of Set Certificates
Many graph questions ask whether a proposed set has a particular property: does it meet every edge, contain no adjacent vertices, or consist entirely of mutually adjacent vertices? These properties can be verified by inspecting the graph’s edges and nonedges. A proposed set with a verified property is a certificate of feasibility: it proves that the set works. By itself, it does not prove that the set is smallest or largest among all sets with that property.
Throughout, graphs are finite and simple. Thus an edge joins two distinct vertices, and there is at most one edge between any pair. For distinct vertices \(u,v\), the pair \(uv\) is a nonedge when \(uv\notin E(G)\). All the checks below concern pairs of distinct vertices; a vertex is not paired with itself.
The three tests have different directions. To check a cover, inspect the edges of the graph. To check an independent set, inspect pairs within the proposed set and make sure none is an edge. To check a clique, inspect pairs within the proposed set and make sure each one is an edge. A single uncovered edge, internal edge in an independent set, or missing edge in a clique is enough to reject a proposed certificate.
Why the Checks Work
Proof. First consider the cover statement. If \(C\) is a vertex cover, take any two distinct vertices \(u,v\in V(G)\setminus C\). If \(uv\) were an edge, neither endpoint would belong to \(C\), contradicting that \(C\) meets every edge. Thus \(V(G)\setminus C\) is independent. Conversely, suppose \(V(G)\setminus C\) is independent. If an edge had neither endpoint in \(C\), both endpoints would belong to \(V(G)\setminus C\), contradicting independence. Therefore every edge has an endpoint in \(C\), so \(C\) is a vertex cover.
For the complement statement, the complement \(\overline G\) has the same vertex set as \(G\), and two distinct vertices are adjacent in \(\overline G\) exactly when they are nonadjacent in \(G\). If \(Q\) is a clique in \(G\), every pair in \(Q\) is an edge of \(G\), hence a nonedge of \(\overline G\); so \(Q\) is independent in \(\overline G\). Conversely, if \(Q\) is independent in \(\overline G\), none of its pairs is an edge of \(\overline G\), so every pair is an edge of \(G\). Hence \(Q\) is a clique in \(G\). \(\square\)
These equivalences explain why all three certificates reduce to pair checks. A cover can be checked either by looking for an edge with both endpoints outside the proposed cover, or by checking that the omitted vertices form an independent set. A clique can be checked in \(G\), or by checking that the same vertices form an independent set in \(\overline G\).
Proof. For the cover test, inspect every edge \(uv\in E(G)\) and accept exactly when \(u\in S\) or \(v\in S\) for each edge. This is precisely the definition of a vertex cover, so the test accepts exactly the covers. For the independent-set test, inspect every pair of distinct vertices \(u,v\in S\) and accept exactly when \(uv\notin E(G)\) for each pair. This is precisely the definition of independence. For the clique test, inspect every pair of distinct vertices \(u,v\in S\) and accept exactly when \(uv\in E(G)\) for each pair. This is precisely the definition of a clique. If there are no edges to inspect, the cover test accepts: the empty edge set is met by every set. If there are fewer than two vertices in \(S\), there are no pairs to inspect, so both pair tests accept, as required by their definitions. \(\square\)
For an explicit check, one may mark the vertices of \(S\) and scan the edge list for a cover, or list all pairs in \(S\) for an independent set or clique. If \(S\) has \(k\) vertices, there are \(k(k-1)/2\) distinct pairs to test. A pair can appear only once in this list, since the graph is simple and the pair is unordered. For an independent set, one can stop as soon as an internal edge is found; for a clique, one can stop as soon as a required edge is missing.
Worked Certificates in One Graph
Worked Example: A Cover, an Independent Set, and a Clique
Let \(G=(V,E)\) be the simple graph with \(V=\{1,2,3,4,5\}\) and \(E=\{12,13,23,24,34,45\}\). Check the proposed cover \(C=\{2,3,4\}\), independent set \(I=\{1,5\}\), and clique \(Q=\{2,3,4\}\).
For the cover, check each edge in the given list. Edge \(12\) meets \(C\) at \(2\); edge \(13\) meets \(C\) at \(3\); edge \(23\) meets \(C\) at both \(2\) and \(3\); edge \(24\) meets \(C\) at \(2\) and \(4\); edge \(34\) meets \(C\) at \(3\) and \(4\); and edge \(45\) meets \(C\) at \(4\). All six edges have an endpoint in \(C\), so \(C\) is a vertex cover.
For \(I=\{1,5\}\), there is one pair to check: \(15\). Since \(15\notin E\), its two vertices are nonadjacent, so \(I\) is independent. For \(Q=\{2,3,4\}\), there are \(3(3-1)/2=3\) pairs: \(23\), \(24\), and \(34\). All three belong to \(E\), so \(Q\) is a clique.
Check: The complement of \(C\) is \(\{1,5\}\), which is exactly the independent set just checked. This agrees with the cover-complement theorem. In particular, the cover check can also be confirmed by observing that the only pair outside \(C\) is \(15\), a nonedge.
This example also illustrates that one vertex set can have different roles in a graph. Here \(\{2,3,4\}\) is both a cover and a clique, but these claims need different checks: the cover claim concerns every edge of \(G\), while the clique claim concerns only the pairs inside \(\{2,3,4\}\). Checking that the three internal pairs are edges does not by itself establish that the set covers all edges.
Rejecting Plausible but Invalid Certificates
Worked Example: One Failed Check Is Enough
Use the graph \(G\) with \(V=\{a,b,c,d,e\}\) and \(E=\{ab,ac,bc,bd,cd,de\}\). Test the proposed cover \(C=\{b,c\}\), independent set \(I=\{a,b\}\), and clique \(Q=\{a,b,d\}\).
For the cover, scan the edge list. Edges \(ab,ac,bc,bd,cd\) meet \(C\), respectively at \(b,c,b,b,c\). But edge \(de\) has neither endpoint in \(C\). Thus \(C\) is not a cover; the specific edge \(de\) is a counterexample.
For the independent-set proposal, the only pair is \(ab\), and \(ab\in E\). Therefore \(I\) is not independent. For the clique proposal, the three pairs are \(ab,ad,bd\). The edge \(ab\) is present and \(bd\) is present, but \(ad\notin E\). Thus \(Q\) is not a clique. The missing pair \(ad\) is enough to invalidate the claim.
Check: Each failed set has a concrete witness: \(de\) is an uncovered edge, \(ab\) is an edge inside the proposed independent set, and \(ad\) is a nonedge inside the proposed clique. A rejection certificate can therefore be as concise as one offending edge or pair.
For a cover, it is important to scan every edge, not just edges incident with a particular vertex or a chosen part of the graph. For an independent set or clique, it is important to check every pair in the proposed set, not merely consecutive vertices in some ordering of that set. Their definitions impose conditions on all relevant edges or pairs.
Worked Example: Checking All Pairs in a Clique Candidate
Let \(H=(V,E)\) have \(V=\{p,q,r,s,t\}\) and \(E=\{pq,pr,qr,rs,st\}\). Check \(C=\{q,r,s\}\), \(I=\{p,s\}\), and the proposed clique \(Q=\{p,q,r,s\}\).
For \(C\), inspect all five edges: \(pq\) meets \(C\) at \(q\), \(pr\) at \(r\), \(qr\) at \(q\) and \(r\), \(rs\) at \(r\) and \(s\), and \(st\) at \(s\). Hence \(C\) is a cover.
The independent-set candidate \(I\) has one pair, \(ps\). This pair is not in \(E\), so \(I\) is independent. For \(Q\), there are \(4(4-1)/2=6\) pairs. They are \(pq,pr,ps,qr,qs,rs\). Among them, \(pq,pr,qr,rs\) are edges, while \(ps\) and \(qs\) are not in \(E\). Since a clique requires all six pairs to be edges, \(Q\) is not a clique.
Check: The two nonedges \(ps\) and \(qs\) are witnesses against the clique claim. The fact that \(p,q,r\) form a triangle, and that \(rs\) is an edge, does not make the four-vertex set a clique: the pairs joining \(s\) to \(p\) and \(q\) must also be edges.
What a Valid Certificate Does—and Does Not—Prove
There is a useful distinction between verifying a set’s property and optimizing its size. Write \(\tau(G)\) for the minimum size of a vertex cover, \(\alpha(G)\) for the maximum size of an independent set, and \(\omega(G)\) for the maximum size of a clique. If a proposed set \(C\) is a verified cover, its size gives an upper bound \(\tau(G)\leq |C|\). If \(I\) is a verified independent set, then \(\alpha(G)\geq |I|\). If \(Q\) is a verified clique, then \(\omega(G)\geq |Q|\). These bounds follow directly from the meanings of minimum and maximum: the minimum cannot exceed the size of one available cover, and the maximum cannot be smaller than the size of one available independent set or clique.
None of those one-sided bounds alone proves optimality. A cover of size \(4\) proves that a cover of size at most \(4\) exists; it does not rule out a cover of size \(3\). A clique of size \(3\) proves that a three-vertex clique exists; it does not rule out a larger clique elsewhere in the graph. To establish optimality, an argument must also rule out all better candidates, usually by providing a separate bound or proof. The edge and pair checks establish feasibility, not that no competing set is better.
Likewise, maximal and maximum describe different claims. A maximal independent set cannot be enlarged by adding a vertex while keeping it independent; a maximum independent set has the largest size among all independent sets. Direct pair checks can verify independence, and one can test whether a particular outside vertex can be added, but neither test by itself compares the set with every independent set in the graph. A valid certificate for membership in one of these families should not be mistaken for a certificate of optimal size.
A Reliable Checking Routine
Confirm which vertices are included. For a cover, use the proposed set \(C\); for an independent set or clique, use the vertices in \(I\) or \(Q\).
For a cover, scan every edge in \(E(G)\). For independence or a clique, enumerate every unordered pair of distinct vertices in the proposed set.
A cover needs at least one endpoint of each edge in the set. An independent set needs every internal pair to be a nonedge. A clique needs every internal pair to be an edge.
For acceptance, report that every required edge or pair passed the test. For rejection, name an uncovered edge, an internal edge, or a missing clique edge.
The routine also handles boundary cases. The empty set is a cover of an edgeless graph because there are no edges that fail the condition. The empty set and every one-vertex set are independent sets and cliques: there are no pairs of distinct vertices within them to violate either condition. These conclusions follow from the definitions and the universal checks in the verification proposition.
Thinking of a proposed set as a certificate makes a graph claim concrete and auditable. A cover is supported by an edge-by-edge check; independence and clique claims are supported by a pair-by-pair check. If a claim fails, a single counterexample identifies the failure. If it passes, the certificate confirms the stated property—but any claim of minimum or maximum size still requires a further argument.
Check Your Understanding
For each question, state the edge or pair checks needed and distinguish feasibility from any claim of optimality.
- In the graph \(V=\{1,2,3,4\}\), \(E=\{12,23,34\}\), is \(C=\{2,3\}\) a vertex cover? List the check for each edge.
- In the same graph, is \(I=\{1,3\}\) independent? Which pair determines the answer?
- In the graph \(V=\{a,b,c,d\}\), \(E=\{ab,ac,bc,cd\}\), is \(Q=\{a,b,c,d\}\) a clique? List every missing pair that prevents it from being one.
- Explain why checking that a proposed independent set has no internal edge does not prove that it is maximum.
- Prove that if \(C\) is a vertex cover, then every edge has an endpoint in \(C\), using the equivalent condition that \(V(G)\setminus C\) is independent.