Graph5_E11
Graph5_E11
Module III
Fundamentals of Graphs
Graphs: Introduction, Isomorphism, Subgraphs, Walks, Paths, Circuits, Connectedness, Components, Euler
Graphs, Hamiltonian Paths and Circuits.
_____________________________________________________
Connectedness, Components
Graph G1 is connected, because for every pair of distinct vertices there is a path between them.
Graph G2 is not connected. For instance, there is no path in G2 between vertices a and d.
Example 2. The graph H is the union of three disjoint connected subgraphs 𝐻1 , 𝐻2 , and 𝐻3 ,
shown below. These three subgraphs are the connected components of H.
Theorem 1. If a graph 𝐺 (either connected or disconnected) has exactly two vertices of odd
degree, then there exists a path joining these two vertices.
Proof.
Case (i) Let 𝐺 be connected.
Let 𝑣1 and 𝑣2 be the only vertices of 𝐺 which are of odd degree. Now, we know that
the number of odd vertices is even. Therefore, there is a path joining these two vertices.
Proof.
Let 𝐺 = (𝑉, 𝐸) be a simple graph with 𝑛 vertices and 𝑘 components. Suppose, each of the
components has 𝑛1 , 𝑛2 , … , 𝑛𝑘 . Therefore, we have
𝑛1 + 𝑛2 + … + 𝑛𝑘 = 𝑛
∴ ∑𝑛𝑖=1 𝑛𝑖 = 𝑛 (1)
We know that
∑𝑘𝑖=1(𝑛𝑖 − 1) = 𝑛 − 𝑘 (2)
⇒ ∑ 𝑛𝑖2 ≤ 𝑛2 + 𝑘 2 − 2𝑛𝑘 + 2𝑛 − 𝑘
𝑖=1
We know that the maximum number of edges in the ith component of a simple graph is
1
= 𝑛𝑖 (𝑛𝑖 − 1).
2
1
Hence, the maximum number of edges in a graph = ∑𝑘𝑖=1 𝑛𝑖 (𝑛𝑖 − 1)
2
𝑘 𝑘
1 1
= ∑ 𝑛𝑖2 − ∑ 𝑛𝑖
2 2
𝑖=1 𝑖=1
1
= [𝑛2 − (2𝑛 − 𝑘)(𝑘 − 1) − 𝑛] , by (1) & (3)
2
Simplifying, we get:
1
Maximum number of edges in a graph = (𝑛 − 𝑘)(𝑛 − 𝑘 + 1).
2
2. Show that a simple graph with 𝑛 vertices and 𝑘 connected components has at most
1
(𝑛 − 𝑘)(𝑛 − 𝑘 + 1) edges.
2
***