Last updated 5 years ago
See Union Find
Find the Weak Connected Component in the Directed Graph ()
Connected Component in Undirected Graph ()