1Graph::Easy::As_txt(3)User Contributed Perl DocumentationGraph::Easy::As_txt(3)
2
3
4
6 Graph::Easy::As_txt - Generate textual description from graph object
7
9 use Graph::Easy;
10
11 my $graph = Graph::Easy->new();
12
13 my $bonn = Graph::Easy::Node->new(
14 name => 'Bonn',
15 );
16 my $berlin = Graph::Easy::Node->new(
17 name => 'Berlin',
18 );
19
20 $graph->add_edge ($bonn, $berlin);
21
22 print $graph->as_txt();
23
24 # prints something like:
25
26 # [ Bonn ] -> [ Berlin ]
27
29 "Graph::Easy::As_txt" contains just the code for converting a
30 Graph::Easy object to a human-readable textual description.
31
33 Exports nothing.
34
36 Graph::Easy.
37
39 Copyright (C) 2004 - 2007 by Tels <http://bloodgate.com>
40
41 See the LICENSE file for information.
42
43
44
45perl v5.12.3 2010-11-05 Graph::Easy::As_txt(3)