See Union Find
Find the Weak Connected Component in the Directed Graph (LI.432arrow-up-right)
Connected Component in Undirected Graph (LI.431arrow-up-right)
Last updated 6 years ago