Subject: | Star N=1 empty graph |
Date: | Fri, 07 Aug 2015 10:36:22 +1000 |
To: | bug-Graph-Maker [...] rt.cpan.org |
From: | Kevin Ryde <user42_kevin [...] yahoo.com.au> |
With Graph::Maker::Star 0.01 on recent i386 debian perl 5.20.2, a
program
use Graph::Maker::Star;
my $graph = Graph::Maker->new('star',N=>1);
my $num_vertices = $graph->vertices;
print "$num_vertices\n";
prints 0, where I expected it to print 1 for creating a star of N=1
vertices.
In the code I suspect N=1 results in no add_edges() so no automatic
vertex creation. An explicit add_vertex may be needed for $N==1.