-----OUTPUT----------print "First connected component == $subgraphs[1]\n"; print "Number of connected components== $#subgraphs\n";
5 ----connected components--------------- - - c - b - a - - e - d First connected component == ARRAY(0x9a8e308) Number of connected components== 1
In reply to Re^2: Finding connected components in a graph.
by zing
in thread Finding connected components in a graph.
by zing
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |