Graph::Easy::As_txt - Generate textual description from graph object
Contents
Description
"Graph::Easy::As_txt" contains just the code for converting a Graph::Easy object to a human-readable
textual description.
Export
Exports nothing.
Name
Graph::Easy::As_txt - Generate textual description from graph object
See Also
Graph::Easy.
Synopsis
use Graph::Easy;
my $graph = Graph::Easy->new();
my $bonn = Graph::Easy::Node->new(
name => 'Bonn',
);
my $berlin = Graph::Easy::Node->new(
name => 'Berlin',
);
$graph->add_edge ($bonn, $berlin);
print $graph->as_txt();
# prints something like:
# [ Bonn ] -> [ Berlin ]
