Subject: | SNA::Network->communities |
Date: | Sun, 16 Nov 2014 14:37:51 +0100 |
To: | bug-SNA-Network [...] rt.cpan.org |
From: | Daniel PaquƩ <d_paque12 [...] cs.uni-kl.de> |
Hey,
the documentation for SNA::Network->communities says:
"Return a list of ... If no such algorithm was executed, returns |undef|."
It seems that the latter case does not work.
Code:
#!/usr/bin/perl
use strict;
use warnings;
use SNA::Network;
my $net = SNA::Network->new_from_pajek_net('network.net');
my $list = $net->communities;
Output:
Can't use an undefined value as an ARRAY reference at
C:/Strawberry/perl/site/lib/SNA/Network.pm line 312.
Configuration:
Windows, Strawberry Perl (64-bit) 5.20.1.1-64bit
Regards,
Daniel PaquƩ