Subject: | add_edge_by_id on multigraph malfunctioning |
Date: | Mon, 24 Nov 2008 19:37:57 +0200 |
To: | bug-Graph [...] rt.cpan.org |
From: | "Selçuk Cihan" <selcukcihan [...] gmail.com> |
Hi, following piece of code should add an edge (v0, v1) but it adds (v0, v0)
my $G = Graph->new(undirected => 1, vertices => ["v0", "v1", "v2"],
multiedged => 1);
$G->add_edge_by_id("v0", "v1", "0");
print "$G:\n";
the problem is with the id parameter, "0". when i change it to, say
"4", it works. "00" also breaks.
i have perl 5.10.0 from activestate, on vista. Graph is version 0.84.