Weakly Connected Component implemented