Tree: Find the Connected Component in the Undirected Graph