Section 15.3 Connected vertices, graphs, and components
- connected vertices
- connected graph
- every pair of vertices is connected
Example 15.3.2. A nonconnected graph.
Being connected is a symmetric relationship between vertices, and walks connecting vertices can be shortened to paths.
Proposition 15.3.3. Characterizations of connected vertices.
Assume are vertices in a graph. Then the following are equivalent.
- Vertices
are connected.
Proof idea.
As usual, we prove the equivalence of multiple statements using a cycle of logical implications.
Statement 1 implies Statement 2.
This is the definition of connected vertices.
Statement 2 implies Statement 3.
Suppose is a walk with and If this walk is not a path, then there is a repeated vertex. Suppose with Then
is also a walk from to Keep removing repeated vertices in this way until a path is obtained.
Statement 3 implies Statement 4.
Just reverse the order of the vertices and edges in the path from to to obtain a walk in the other direction.
Statement 4 implies Statement 5.
As before, if the walk from to is not a path, each pair of repeated vertices can be eliminated by βsnipping outβ the portion of the walk between them.
Statement 5 implies Statement 1.
Reverse the path from to to obtain a walk from to thereby satisfying the definition of connected vertices.
A nonconnected graph can be considered to simply be a collection of connected subgraphs.
- connected component (working definition)
- a connected subgraph of a graph which is not contained in any larger connected subgraph of that graph
- connected component (formal definition)
Example 15.3.4. Breaking a nonconnected graph into connected components.
Considering Figure 15.3.5 below as a single graph, we have placed the connected components (of which there are three) into boxes.
This nonconnected graph has other connected subgraphs. For example, the subgraph that contains only the left-most two vertices joined by a single edge is a connected subgraph. But that connected graph is not a connected component because it is a subgraph of a larger connected subgraph.
Example 15.3.6. Connected components do not depend on how the graph is represented diagrammatically.
The two graphs in Figure 15.3.7 are in fact the same graph, just with different diagrammatic representations. In the second version of the graph, we have again identified connected components by placing each of them in a box.
Example 15.3.8. A connected graph has one component.
If a graph is connected, then the entire graph is a largest connected subgraph possible.
Note 15.3.10.
As in our working definition, informally the connected components of a graph are the βlargestβ subgraphs of that are connected. The second condition in the formal definition is just a positive way of stating the working definition. We will make the general notion of βlargestβ more precise in a similar way in Chapter 19 (see the definition of maximal element, the Test for Maximal/Minimal Elements, as well as Example 19.5.7).
Theorem 15.3.11. A lower bound for the number of edges in a connected graph.
Proof.
By (strong) induction.
Base case .
Every graph with only one vertex is connected and satisfies
Induction step.
Assume and the statement is true for all Let be a connected graph with vertices. We must show
Arbitrarily choose some vertex and let be the graph obtained from by removing and all edges incident to it. Unfortunately, might not be connected. Let be its connected components. Write and let Then each is connected and has at most vertices, so the induction hypothesis applies. Also note that since every vertex of except is part of exactly one subgraph
Therefore, using our induction hypothesis we may calculate
However, since is connected, must be the glue keeping the subgraphs together. That is, for each there must be at least one edge between and some vertex of Therefore,