Question: Algorithm for Connectedness and Components: The following algorithm checks the connectedness of graphs. S - 1 Set HGand component count c = 1 5 -
Algorithm for Connectedness and Components:
The following algorithm checks the connectedness of graphs.
S Set HGand component count c
: Choose an arbitrary vertex v of G
: Fuse all vertices in the neighbourhood overlineNv with v and call this vertex v
: If the number of vertices which are nonadjacent to v is the same as that before the fusion, then go to Step Otherwise, go to Step S: Delete the vertex v with all fused vertex from call this new graph H
: If If has any vertes left in it then let cleftarrow c and go to Step Otherwise, go to Step
S: Print each with its vertices. Stop.
Example Consider the graph given in Figure :
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
