Help for this page

Select Code to Download


  1. or download this
    use Graph::Easy;
    my $graph = Graph::Easy->new();
    ...
    
    # print the graph
    print $graph->as_asciii();
    
  2. or download this
    # save the graph by saving the list of original nodes
    open($filehandle,"<","nodes.dat") or die("Can't open file 'nodes.dat' 
    +for writing: $!\n");
    print $filehandle join("\n",@nodes);