Graph::Simple::As_graphviz - Generate graphviz description from graph object


SYNOPSIS

        use Graph::Simple;
        
        my $graph = Graph::Simple->new();
        my $bonn = Graph::Simple::Node->new(
                name => 'Bonn',
        );
        my $berlin = Graph::Simple::Node->new(
                name => 'Berlin',
        );
        $graph->add_edge ($bonn, $berlin);
        print $graph->as_graphviz();
        # prints something like:
        # digraph NAME { Bonn -> Berlin }


DESCRIPTION

Graph::Simple::As_graphviz contains just the code for converting a Graph::Simple object to a textual description suitable for feeding it to graphviz.


EXPORT

Exports nothing.


SEE ALSO

the Graph::Simple manpage.


AUTHOR

Copyright (C) 2004 - 2005 by Tels http://bloodgate.com

See the LICENSE file for information.