in reply to Finding all connected nodes in an all-against-all comparison
A C B C [download]
There is no path from A to B, so do you consider them in the same or different groups?
Or do you have a guaranty that these intersections are not possible?
Cheers Rolf