Connected Components in Astronaut Graph

Connected components in a graph represent groups where any two nodes are connected by a path.
Step 1/5