Open In App

Connected component definition & meaning in DSA

Connected component in an undirected graph refers to a group of vertices that are connected to each other through edges, but not connected to other vertices outside the group.

For example in the graph shown below, {0, 1, 2} form a connected component and {3, 4} form another connected component.

Example of connected components

Characteristics of Connected Component:

How to identify  Connected Component:

There are several algorithms to identify Connected Components in a graph. The most popular ones are:

Applications of  Connected Component:

What else can you read?

Article Tags :