Plenty of algorithms available, no need to reinvent the wheel. =)
see also older discussion and cpan connected component.
Cheers Rolf
In reply to Re: How to make buckets of like data (connected components)
by LanX
in thread How to make buckets of like data
by PRyanRay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |