<?xml version="1.0" encoding="windows-1252"?>
<node id="996890" title="Re^2: Finding connected components in a graph." created="2012-10-02 14:25:14" updated="2012-10-02 14:25:14">
<type id="11">
note</type>
<author id="955048">
zing</author>
<data>
<field name="doctext">
Hi there,
As per your suggestion I added these two lines, but as you can see in the output section the results are totally invalid.
&lt;code&gt;
print "First connected component == $subgraphs[1]\n";
print "Number of connected components== $#subgraphs\n";&lt;/code&gt;

-----OUTPUT----------
&lt;code&gt;
5
----connected components---------------
-
  - c
  - b
  - a
-
  - e
  - d
First connected component == ARRAY(0x9a8e308)
Number of connected components== 1
&lt;/code&gt;</field>
<field name="root_node">
996887</field>
<field name="parent_node">
996888</field>
</data>
</node>
