in reply to Re: Finding subgraphs induced by a set of given vertices.
in thread Finding subgraphs induced by a set of given vertices.
Hi LanX,
I tried to make the code a little flexible
But Im getting this error::my @z; for (my $r = 0; $r <= 2; $r++) {$z[$r]=$subgraphs[0][$r];} for my $QT (@z ){ print Dumper $QT; for my $triplet ( @S ){ my %Pie; undef @Pie{@$QT}; delete @Pie{ @$triplet }; print "@$triplet\n" if keys(%Pie) <= ( @$QT - @$triplet ) ; } }
Can't use string ("c") as an ARRAY ref while "strict refs" in use at combo.pl line 89
Line 89 being " undef @Pie{@$QT};"
In Section
Seekers of Perl Wisdom