Skip Menu |

This queue is for tickets about the Graph-Easy CPAN distribution.

Report information
The Basics
Id: 31958
Status: resolved
Worked: 30 min
Priority: 0/
Queue: Graph-Easy

People
Owner: TELS [...] cpan.org
Requestors: substack [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.60
Fixed in: 0.61



Subject: Missing methods in Edge class
In Graph::Easy version 0.60 with Graph::Easy::Edge version 0.30, the documented Graph::Easy::Edge methods as_ascii, as_txt, to_nodes, from_nodes, and nodes don't appear to exist for Edge objects. perl 5.8.8 Debian GNU/Linux 2.6.21
Subject: g.pl
#!/usr/bin/env perl use strict; use warnings; use Graph::Easy; my $graph = Graph::Easy->new; $graph->add_edge("foo", "bar"); for my $edge ($graph->edges) { # These methods are documented as methods of the Edge class but # don't want to exist. eval { $edge->as_ascii } or print $@; eval { $edge->as_txt } or print $@; eval { $edge->to_nodes } or print $@; eval { $edge->from_nodes } or print $@; eval { $edge->nodes } or print $@; } print $graph->as_ascii;
This issue should be resolved with the release of v0.61. If not, please reply to this email to re-open the ticket. What I have done is: + add as_ascii() (and simplify it) + add as_txt() stub (require Graph::Easy::As_txt and call _as_txt) + add nodes() + remove the to_nodes() and from_nodes() POD entries Thank you for your report, Tels