Skip Menu |

This queue is for tickets about the Graph CPAN distribution.

Report information
The Basics
Id: 17405
Status: resolved
Priority: 0/
Queue: Graph

People
Owner: Nobody in particular
Requestors: natg [...] shore.net
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.67
Fixed in: (no value)



Subject: has_cycle with empty args should return FALSE
Hi Jarkko I'm not sure if this is really a bug or just a boundary case not covered in the documentation. When calling has_cycle with no arguments, the code returns a TRUE value. A literal reading of the documentation suggests that the code should return FALSE. A test program (which fails) follows. Best, Nat -------------------- use Test::More qw/no_plan/; use Graph::Directed; my $g=new Graph::Directed(vertices=>['a']); ok(!$g->has_cycle,'has_cycle with empty args should return FALSE'); --------------------
Please see Graph 0.70.