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;