Both connected components are now generated, and solved a connection bug
merge