Unit V Connected and Disconnected Graphs
Unit V Connected and Disconnected Graphs
Unit V
Connected and Disconnected graphs
A graph is said to be connected if there exist at least one path between every pair of vertices
otherwise graph is said to be disconnected. A null graph of more than one vertex is
disconnected (Fig 3.12). Fig 3.9(a) is a connected graph where as Fig 3.13 are disconnected
graphs.
A disconnected graph consists of two or more connected graphs. Each of these connected
subgraphs is called a component. The graphs in fig 3.13 consists of two components.
5.2 Theorem1:
A graph G is said t be disconnected if and only if its vertex V can be portioned into two
nonempty, disjoint subsets v1 and v2 such that there exists no edge in G whose one end vertex
is in subset v1 and the other in subset v2.
Proof:
Suppose that such a partitioning exists. Consider two arbitrary vertices a and b in G, such that
a ∈ V1 and b ∈ V2. No path can be exists between vertices a and b; otherwise there
would be at least one edge whose one end vertex would be in V1 and the other in V2.
Hence if partition exists, G is not connected.
Let V1 be the set of all vertices that are joined by path to a. Since G is disconnected V1
does not include all vertices of G
Thus the remaining vertices will form a (non-empty) set of V2 i.e. b ∈ V2. Thus no vertex
in V1 is joined to any vertex in V2 by an edge.
5.3 Theorem2:
If a graph (connected or disconnected) has exactly two vertices of odd degree, there must be
a path joining these two vertices.
Proof:
Let G be a graph with all even degree of vertices except two vertices v1 and v2, which are
odd degree. We know that number of vertices with odd degree in a graph is always an even.
That is no graph can have an odd number of odd vertices. Therefore, in graph G, v1 and v2
must be belong to the same component and hence must have a path between them.
5.4 Theorem3:
Proof:
5.5 Example:
Prove that a simple graph with n vertices must be connected if it has more than
[(n - 1) (n – 2)]/2 edges.
Solution:
We know that the maximum number of edges in a simple graph with n vertices is n(n-1)/2.
So we [(n – 1) (n – 2)]/2 number of edges can be drawn for (n – 1) vertices. Thus if we have
more than [(n – 1) (n – 2)]/2 edges than at least one edge should be drawn between the nth
vertex i.e. vn to some vertex vi.
5.6 Example
Let G be a disconnected graph with n vertices where n is even. If G has two components each
of which is complete, prove the G has a minimum of n(n – 1)/4 edges.
Solution
Let x be the number of vertices in one of the components than the other component has
(n – x) vertices. Since both components are complete graph.
We know that number of edges in a simple graph with n vertices are n(n – 1)/2.
E= − + ( − 1) ----------------------------------------- (i)
E’ = 2x – n
E’’ = 2 > 0
i.e. =
E= − + ( − 1)
[ ( )]
=