in reply to Re^2: connected component
in thread connected component

an inelegant cheesy solution, but I had this case covered by bogus self <-> self links, as shown by the test on 4 iso nodes, which return as 4 iso components.
# resulting components <--- graph 'a|b|c|d' => [ [qw(a a)], [qw(b b)], [qw(c c)], [qw(d d)] ],
again, a cheesy handrolled quick hack for what I needed, is all.