- or download this
use strict;
use warnings;
...
$graph->add_edge( split m{ -> } ) for keys %edges;
print $graph->as_ascii();
- or download this
Using Graph::Easy version 0.76
1 -> 2
...
+---+ | +---+
+ |
| 3 | ----------------+ | 9 | ----
+-------------+
+---+ +---+
- or download this
...
my $graph = Graph::Easy->new();
...
$graph->add_edge( 1, 2 );
print $graph->as_ascii();