Professional Documents
Culture Documents
2.paths and Cycles Apolinario
2.paths and Cycles Apolinario
edges
roads
vertices
cities, or
municipalities,
provinces
MTH 610 GRAPH THEORY
What is a Path? (𝟏, 𝒆𝟏 , 𝟐, 𝒆𝟐 , 𝟑, 𝒆𝟑 , 𝟒) or (1, 2, 3, 4)
G: 𝒆𝟓 Disconnected
𝒆𝟑 graphs 𝒆𝟐G: 𝒆𝟑
𝒆𝟐 𝒆𝟓
𝒆𝟏
6 𝒆𝟏 𝒆𝟔
4 𝒆𝟒
G’:
G’: 3 G’:
𝒆𝟐 3
4 𝒆𝟐
G’:
2
2
MTH 610 GRAPH THEORY
What is a subgraph?
NOTE:
• When deleting a vertex from a graph, G:
you MUST also delete all edges
adjacent to that vertex.
• When deleting an edge from a graph,
you do NOT delete the endpoints of
that edge. Subgraphs of G
G’:
G’:
3
G’: 𝒆𝟐 G’:
4 G’:
2 3
G’: 𝒆𝟐
2
MTH 610 GRAPH THEORY
Find all subgraphs of the graph G
having at least one vertex.
Subgraphs of G
G:
𝑮𝟐
Note: 𝑮𝟏
𝑮𝟑 𝑮𝟒
“Every graph is a
subgraph of
Thus, graph G has 4 subgraphs.
itself.”
MTH 610 GRAPH THEORY
What is a component?
Definition:
G:
Let G be a graph and let v be a
vertex in G. The subgraph G’ of
G consisting of all edges and
G: vertices in G that are contained
5
𝒆𝟓 𝒆𝟔 in some path beginning at v is
3 𝒆𝟑
𝒆𝟐 called the component of G
4 6
𝒆𝟒
containing v.
2
𝒆𝟏
G:
G:
Theorem 8.2.17
Euler Cycle
G:
If a graph 𝐺 has an
Euler cycle, then 𝐺
G:
is connected and Note: If G consists
every vertex has of one vertex v and
even degree. no edges, we call
the path (v) an
Theorem 8.2.18 Euler cycle for G,
If 𝐺 is a connected this is for technical
graph and every reasons.
vertex has even
degree, then 𝐺 has
an Euler cycle.
G:
𝛿 (A) = 𝛿 (E) = 𝛿 (C) = 4
𝛿 (B)= 𝛿 (F) = 𝛿 (D) = 2
Since the degree of every vertex is even, by
Theorem 8.2.18, 𝑮 has an Euler cycle.
(𝑫, 𝒆𝟏 , 𝑨, 𝒆𝟐 , 𝑩, 𝒆𝟑 , 𝑪, 𝒆𝟒 , 𝑨, 𝒆𝟓 , 𝑬, 𝒆𝟔 , 𝑪, 𝒆𝟕 , 𝑭, 𝒆𝟖 , 𝑬, 𝒆𝟗 , 𝑫)
𝛿 (𝑣𝑖 ) = 4 + 4 + 4 + 2 + 2 + 2 = 18 = 2(9)
𝑖=1
Corollary 8.2.22
MTH 610 GRAPH THEORY The proof of the theorem is found on page 394.
Theorem 8.2.23
Example:
𝛿 (A) = 𝛿 (C) = 4
𝛿 (B) = 𝛿 (F) = 2
The path can be: 𝛿 (E) = 3
(𝑫, 𝒆𝟏 , 𝑨, 𝒆𝟐 , 𝑩, 𝒆𝟑 , 𝑪, 𝒆𝟒 , 𝑨, 𝒆𝟓 , 𝑬, 𝒆𝟔 , 𝑪, 𝒆𝟕 , 𝑭, 𝒆𝟖 , 𝑬) 𝛿 (D) =1
Cycle
(1,3,5,4,3,2,1)
Simple Cycle
(1,2,3,1)
(4,5,3,4)