my $label = $graph -> label(…);
$label->loc('t'); # put label to top of graph
For graphs and clusters, only "t" (top)and "b" (bottom, default) are allowed.
Possible values for nodes seem to be "t", "b" and "c" (centered, default). The value is only used when the height of the node is larger than the height of its label.
To install GraphViz::Graph, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.