Update: added sample code on Anonymonk's castigation --
use GraphViz; my $g = GraphViz->new( directed => 1, layout => 'circo', ratio => 'compress', width => 6, height => 6, node => {shape => 'ellipse'}, ); .. add nodes and edges .. my $image = 'foo'; open OUT_FILE, ">$image.png" or die $!; binmode (OUT_FILE); $g->as_png(\*OUT_FILE); close OUT_FILE; my $cmap = $g->as_cmapx; print <<END; Content-Type: text/html\n\n <html> <head> <title>test</title> $cmap </head> <body> <img src="$image.png" border="0" usemap="#test"> </body> </html> END
In reply to Problems with GraphViz module by punkish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |