From Definitions to Proof Obligations
A graph statement is easier to prove once its definition has been translated into a list of precise requirements. For example, “\(H\) is a subgraph of \(G\)” requires checking both vertices and edges, while “\(G\) is connected” requires addressing every pair of vertices. In this tutorial, graphs are finite and simple: they have no loops or multiple edges. The goal is to turn these definitions into proof obligations that make clear what must be checked—and what would count as a counterexample.
For a graph \(G=(V,E)\), an edge \(uv\) joins two distinct vertices \(u,v\in V\). A path is a sequence of distinct vertices in which consecutive vertices are joined by an edge; a length-zero path consists of one vertex. The graph \(G\) is connected if it is nonempty and, for every pair of vertices \(u,v\in V\), there is a path from \(u\) to \(v\). A vertex \(x\) is adjacent to \(y\) when \(xy\in E\). These definitions already indicate the quantifiers: connectedness asks for paths for all pairs, whereas adjacency is a condition on one pair.
The last condition is important. A subgraph can omit edges between its chosen vertices; an induced subgraph cannot. In quantified form, for distinct \(u,v\in S\), the induced-subgraph condition is \(uv\in E(G[S])\) exactly when \(uv\in E(G)\). Both directions matter: an edge of \(G\) between vertices in \(S\) must be retained, and an edge in \(G[S]\) must already be an edge of \(G\).
Inclusion and Equality
Proof. The first assertion is precisely the definition of subgraph, so checking those conditions establishes it. For graph equality, equality of graphs means equality of their vertex sets and equality of their edge sets. Each set equality requires both inclusions: \(V(H)\subseteq V(G)\), \(V(G)\subseteq V(H)\), \(E(H)\subseteq E(G)\), and \(E(G)\subseteq E(H)\). Together these give the two set equalities, and hence \(H=G\). Conversely, if \(H=G\), their vertex sets and edge sets are equal by the meaning of graph equality. \(\square\)
This is a useful general pattern: an inclusion claim typically asks you to take an arbitrary element of one set and show it belongs to another. An equality claim asks you to do that in both directions. For edge sets, “take an arbitrary edge” means naming its endpoints and using the definition of an edge or subgraph to justify the required membership.
Proof. Suppose first that \(H=G[S]\). By definition, \(V(H)=S\), and the edges of \(H\) are exactly the edges of \(G\) with both endpoints in \(S\). Thus, for each distinct \(u,v\in S\), \(uv\in E(H)\) if and only if \(uv\in E(G)\). Conversely, suppose \(V(H)=S\) and the stated equivalence holds for every such pair. Every edge of \(H\) then belongs to \(G\), so \(H\) is a subgraph of \(G\). Also, every edge of \(G\) with both endpoints in \(S\) belongs to \(H\), and no other edge of \(H\) exists. Therefore the edge set of \(H\) is exactly the edge set of \(G[S]\), and \(H=G[S]\). If \(S\) has fewer than two vertices, there are no distinct pairs to test; since the graph is simple, there are no edges with both endpoints in \(S\), so the conclusion still holds. \(\square\)
Worked Example: Checking an Induced Subgraph
Let \(G\) have vertex set \(\{1,2,3,4,5\}\) and edge set \(\{12,13,14,23,34,45\}\). Take \(S=\{1,2,4\}\), and let \(H\) have vertex set \(\{1,2,4\}\) and edge set \(\{12,14\}\). Determine whether \(H\) is a subgraph of \(G\), and whether it is the induced subgraph \(G[S]\).
First, \(V(H)=S\subseteq V(G)\). The two edges of \(H\), namely \(12\) and \(14\), both belong to \(E(G)\), and their endpoints belong to \(S\). Thus \(H\) is a subgraph of \(G\).
To test whether it is induced, check all three unordered pairs of distinct vertices in \(S\). The pair \(1,2\) is an edge of \(G\) and of \(H\). The pair \(1,4\) is also an edge of both. The pair \(2,4\) is not an edge of \(G\), and it is not an edge of \(H\). The required edge-membership equivalence holds for every pair, so \(H=G[S]\).
Check: The only edges of \(G\) whose endpoints both lie in \(S=\{1,2,4\}\) are \(12\) and \(14\); hence \(E(G[S])=\{12,14\}=E(H)\). If instead \(H\) had edge set \(\{12\}\), it would still be a subgraph, but it would not be induced because it would omit the edge \(14\) between two vertices of \(S\).
Quantifiers for Adjacency and Connectedness
Definitions involving “every” or “some” should be written with their quantifiers in view. For example, the statement “every vertex of \(G\) has a neighbor” means that for every \(v\in V(G)\), there exists a vertex \(u\in V(G)\) such that \(uv\in E(G)\). The order of the quantifiers matters. “There is a vertex adjacent to every other vertex” instead means that there exists \(x\in V(G)\) such that for every \(v\in V(G)\) with \(v\ne x\), \(xv\in E(G)\).
Connectedness has the same “for every pair” structure. A helpful equivalent test is to choose one vertex and find paths from it to all the others. The following result justifies that reduction.
Proof. Suppose \(G\) is connected. Choose any \(r\in V(G)\), which is possible because \(G\) is nonempty. By connectedness, every vertex \(v\in V(G)\) has a path to \(r\). Conversely, suppose there is such a vertex \(r\). For any \(u,v\in V(G)\), take a path from \(u\) to \(r\) and a path from \(r\) to \(v\). Joining these sequences gives a walk from \(u\) to \(v\), possibly with repeated vertices. If a walk repeats a vertex, delete the part of the sequence between two occurrences of that vertex; the remaining sequence is still a walk with the same endpoints and has shorter length. Repeating this deletion finitely many times produces a path. Thus every pair \(u,v\) has a path, so \(G\) is connected. When \(G\) has one vertex, that vertex has a length-zero path to itself, and the argument applies. The empty graph is excluded by the stated nonempty hypothesis. \(\square\)
Worked Example: Proving a Graph Connected
Let \(G\) have vertex set \(\{a,b,c,d,e\}\) and edge set \(\{ab,bc,ac,cd,de\}\). Prove that \(G\) is connected.
Choose \(r=a\). The following table gives a path from \(a\) to each vertex. Every consecutive pair in each sequence is an edge listed in \(E(G)\).
| Vertex | Path from \(a\) | Length |
|---|---|---|
| \(a\) | \(a\) | 0 |
| \(b\) | \(a,b\) | 1 |
| \(c\) | \(a,c\) | 1 |
| \(d\) | \(a,c,d\) | 2 |
| \(e\) | \(a,c,d,e\) | 3 |
For example, \(a,c,d,e\) uses the edges \(ac\), \(cd\), and \(de\), all of which belong to \(E(G)\). The table supplies a path from the fixed vertex \(a\) to every vertex of \(G\). By the proposition, \(G\) is connected.
Check: The five listed paths cover every vertex in \(V(G)\), and each consecutive pair is an edge. In particular, the table includes the length-zero path for \(a\); it does not require a loop at \(a\).
Universal Claims and Counterexamples
A universal claim says that a property holds for every object in its stated range. To prove it, begin with an arbitrary object satisfying the hypotheses and establish the conclusion without relying on a special feature of that object. To refute it, one counterexample in the stated range is enough. A precise negation is useful: “for every graph \(G\), \(P(G)\)” is false if there exists a graph \(G\) for which \(P(G)\) fails.
Worked Example: Refuting a Claim About Universal Vertices
Consider the claim: “Every connected graph has a vertex adjacent to every other vertex.” A vertex with this property is called a universal vertex. Test the claim on the graph \(G\) with vertex set \(\{1,2,3,4\}\) and edge set \(\{12,23,34,41\}\).
This graph is connected: the edges form the cycle \(1,2,3,4,1\), so any two vertices can be joined by following part of that cycle. Now check the universal-vertex condition vertex by vertex. Vertex \(1\) is not adjacent to \(3\); vertex \(2\) is not adjacent to \(4\); vertex \(3\) is not adjacent to \(1\); and vertex \(4\) is not adjacent to \(2\). Thus no vertex is adjacent to all three other vertices. The graph is connected but has no universal vertex, so it disproves the claim.
Check: Each vertex has exactly two neighbors: \(1\) has \(2,4\); \(2\) has \(1,3\); \(3\) has \(2,4\); and \(4\) has \(1,3\). Since each has only two neighbors, none is adjacent to all three other vertices. The connectedness verification and the failure of the conclusion are separate obligations, and both have been checked.
Quantifier order also helps distinguish a universal vertex from a statement that every vertex has a neighbor. In the example, every vertex does have a neighbor, but there is no one vertex adjacent to every other vertex. Conversely, an edgeless graph with two vertices has no vertex with a neighbor. A claim about all graphs must account for such boundary cases if they fall within its hypotheses.
Common Pitfalls
Checking only one inclusion when proving equality. Suppose \(E(H)\subseteq E(G)\). This establishes only that \(H\) has no edge outside \(G\); it does not show that \(H\) contains every edge of \(G\) that it should contain. For an induced subgraph on \(S\), the missing obligation is to check that every edge of \(G\) with both endpoints in \(S\) is retained.
Replacing “every” with “some.” To prove connectedness, finding a path between one pair of vertices is not enough. The definition requires a path for every pair. The fixed-vertex criterion reduces the work, but it still requires paths from that vertex to all vertices.
Using a picture instead of a definition-based check. A drawing can suggest adjacency or connectedness, but the proof should refer to the stated vertex and edge sets. In the connectedness example, each path is justified by checking its consecutive pairs against the edge set.
Check Your Understanding
For each question, write down the relevant quantifiers or set inclusions before deciding what must be shown.
- Let \(G\) have vertex set \(\{1,2,3,4\}\) and edge set \(\{12,23,34,14\}\). Is the graph on \(\{1,2,3\}\) with edge set \(\{12,23\}\) a subgraph of \(G\)? Is it an induced subgraph of \(G\) on \(\{1,2,3\}\)?
- State, using quantifiers, what it means for every vertex of a graph to have a neighbor. How does this differ from having a universal vertex?
- Let \(G\) have vertex set \(\{a,b,c\}\) and edge set \(\{ab,bc\}\). Give paths from a fixed vertex to all vertices, and use them to justify that \(G\) is connected.
- What two set equalities must be established to prove that two graphs are equal?
- Give a connected graph with no universal vertex, specifying its vertex set and edge set. Verify both properties.