LEC 14
LEC 14
Graphs
Chapter 10
Connectivity
Many problems can be modeled with paths formed by
traveling along the edges of graphs. For instance,
For instance, in some books, the term walk is used instead of path,
where a walk is defined to be an alternating sequence of vertices
and edges of a graph, v0, e1, v1, e2, . . . , vn−1, en, vn, where vi−1
and vi are the endpoints of ei for i = 1, 2, . . . , n. When this
terminology is used, closed walk is used instead of circuit to
indicate a walk that begins and ends at the same vertex, and trail is
used to denote a walk that has no repeated edge (replacing the term
simple path). When this terminology is used, the terminology path
is often used for a trail with no repeated vertices, conflicting with
the terminology in last slide. Because of this variation in
terminology, you will need to make sure which set of definitions
are used in a particular book or article when you read about
traversing edges of a graph.
EXAMPLE 1
In the simple graph shown in Figure 1,
Remark: Terminology other than that given abois often used for
the concepts defined there. In particular, the alternative
terminology that uses walk, closed walk, trail, and path (described
earlier) may be used for directed graphs..
• An undirected graph is called connected if there is a path
between every pair of distinct vertices of the graph.
CONNECTED COMPONENTS
DEFINITION 5
A directed graph is weakly connected if there is a path
between every two vertices in the underlying undirected graph.
EXAMPLE 10
Are the directed graphs G and H shown in Figure 5 strongly
connected? Are they weakly connected?
Solution:
G is strongly connected because there is a path between any two
vertices in this directed graph (the reader should verify this). Hence,
G is also weakly connected. The graph H is not strongly connected.
There is no directed path from a to b in this graph. However, H is
weakly connected, because there is a path between any two vertices
in the underlying undirected graph of H (the reader should verify
this)
Paths and Isomorphism
There are several ways that paths and circuits can help determine
whether two graphs are isomorphic.
For example,
THEOREM 2
• a, b, a, b, d;
• a, b, a, c, d;
• a, b, d, b, d;
• a, b, d, c, d;
• a, c, a, b, d;
• a, c, a, c, d;
• a, c, d, b, d;
• a, c, d, c, d
That is, the simple path in the graph G = (V ,E) is a Hamilton path if
and for
, and the simple circuit , (with n > 0) is a Hamilton circuit if is a
Hamilton path.
EXAMPLE 5 Which of the simple graphs in Figure 10 have a
Hamilton circuit or, if not, a Hamilton path?
Solution: has a Hamilton circuit: a, b, c, d, e, a. There is no
Hamilton circuit in (this can be seen by noting that any circuit
containing every vertex must contain the edge {a, b} twice), but
does have a Hamilton path, namely, a, b, c, d. has neither a
Hamilton circuit nor a Hamilton path, because any path containing
all vertices must contain one of the edges {a, b}, {e, f }, and {c, d}
more than once.
CONDITIONS FORTHE EXISTENCE OF HAMILTON
CIRCUITS
Is there a simple way to determine whether a graph has a Hamilton
circuit or path?
Surprisingly, there are no known simple necessary and sufficient
criteria for the existence of Hamilton circuits. However, many
theorems are known that give sufficient conditions for the existence of
Hamilton circuits. Also, certain properties can be used to show that a
graph has no Hamilton circuit.
For instance, a graph with a vertex of degree one cannot have a
Hamilton circuit, because in a Hamilton circuit, each vertex is incident
with two edges in the circuit. Moreover, if a vertex in the graph has
degree two, then both edges that are incident with this vertex must be
part of any Hamilton circuit. Also, note that when a Hamilton circuit is
being constructed and this circuit has passed through a vertex, then all
remaining edges incident with this vertex, other than the two used in
the circuit, can be removed from consideration. Furthermore, a
Hamilton circuit cannot contain a smaller circuit within it.
EXAMPLE 6
Show that neither graph displayed in Figure 11 has a Hamilton
circuit.
Solution:
There is no Hamilton circuit in G because G has a vertex of degree
one, namely, e. Now consider H. Because the degrees of the vertices
a, b, d, and e are all two, every edge incident with these vertices
must be part of any Hamilton circuit. It is now easy to see that no
Hamilton circuit can exist in H, for any Hamilton circuit would have
to contain four edges incident with c, which is impossible.
Although no useful necessary and sufficient conditions for the
existence of Hamilton circuits are known, quite a few sufficient
conditions have been found.
Note that the more edges a graph has, the more likely it is to have a
Hamilton circuit.
Furthermore, adding edges (but not vertices) to a graph with a
Hamilton circuit produces a graph with the same Hamilton circuit.
So as we add edges to a graph, especially when we make sure to
add edges to each vertex, we make it increasingly likely that a
Hamilton circuit exists in this graph.
Consequently, we would expect there to be sufficient conditions for
the existence of Hamilton circuits that depend on the degrees of
vertices being sufficiently large. We state two of the most
important sufficient conditions here.
THEOREM 3 DIRAC’S THEOREM
If G is a simple graph with n vertices with n ≥ 3 such that the
degree of every vertex in G is at least n/2, then G has a Hamilton
circuit.