Your code should print the number of connected components and return a dictionary with component id as key and list of nodes as values

Showing the single result

Showing the single result