Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Finding connected components in a graph.

by zing (Beadle)
on Oct 02, 2012 at 18:25 UTC ( #996890=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print "First connected component == $subgraphs[1]\n";
    print "Number of connected components== $#subgraphs\n";
    
  2. or download this
    5
    ----connected components---------------
    ...
      - d
    First connected component == ARRAY(0x9a8e308)
    Number of connected components== 1
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://996890]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2017-06-23 10:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (542 votes). Check out past polls.