Subject: | type() on undirected graph |
Date: | Sun, 10 May 2015 08:16:09 +1000 |
To: | bug-Graph-Easy [...] rt.cpan.org |
From: | Kevin Ryde <user42_kevin [...] yahoo.com.au> |
In Graph::Easy 0.75 on recent debian i386 perl 5.20.2, the type() method
on an undirected graph says directed. Eg. a program
use Graph::Easy;
my $graph = Graph::Easy->new(undirected => 1);
print $graph->type(),"\n";
prints "directed" where I expected it to print "undirected".
The is_directed() and is_undirected() methods seem ok. Maybe the type()
method would do $self->attribute('type') the same as them.