Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -slw
    
    ...
    binmode STDOUT, ':encoding(UTF-8)';
    print $graph->as_graphml();
    close STDOUT;
    
  2. or download this
    
    <?xml version="1.0" encoding="UTF-8"?>
    ...
        </edge>
      </graph>
    </graphml>
    
  3. or download this
    #!/usr/bin/perl -slw
    
    ...
    
    my $parser = Graph::Easy::Parser->new();
    print $parser->from_text('[Bonn]->[Berlin]')->as_ascii();