in reply to Finding connected components in a graph.
I haven't read YAML before, (Data::Dumper is nice and perl-y), so I'm partly guessing at the structure here.
@subgraphs looks like a list of the connected components. Pick one element of the array, and you're looking at one subgraph.
The number of connected components is just 0+@subgraphs.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Finding connected components in a graph.
by zing (Beadle) on Oct 02, 2012 at 18:25 UTC | |
by SuicideJunkie (Vicar) on Oct 02, 2012 at 18:32 UTC |