Skip to content

Commit

Permalink
update tulipbulb
Browse files Browse the repository at this point in the history
remove inadequate syntax in the graphstat function
  • Loading branch information
Generade-nl committed Feb 6, 2017
1 parent 6fd954e commit cc5a047
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tulipbulb.perl
Expand Up @@ -212,8 +212,8 @@ sub graphStats { # note: modified to use a reference to %adjacency
foreach my $k1 (keys %{$adjacency}) {
$k1 =~ /^(.+)([io])$/;
$seeds{$1} = 1;
if ($2 eq "i") { $incount{scalar keys $$adjacency{$k1}}++; $connectioncount{scalar keys $$adjacency{$k1}}++; }
if ($2 eq "o") { $outcount{scalar keys $$adjacency{$k1}}++; $connectioncount{scalar keys $$adjacency{$k1}}++; }
# if ($2 eq "i") { $incount{scalar keys $$adjacency{$k1}}++; $connectioncount{scalar keys $$adjacency{$k1}}++; }
# if ($2 eq "o") { $outcount{scalar keys $$adjacency{$k1}}++; $connectioncount{scalar keys $$adjacency{$k1}}++; }
foreach my $k2 (keys %{$$adjacency{$k1}}) {
$length[0] += $$adjacency{$k1}{$k2}[2];
$length[1] += $$adjacency{$k1}{$k2}[3];
Expand Down

0 comments on commit cc5a047

Please sign in to comment.