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.
"t"
"b"
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.
"c"
To install GraphViz::Graph, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GraphViz::Graph
CPAN shell
perl -MCPAN -e shell install GraphViz::Graph
For more information on module installation, please visit the detailed CPAN module installation guide.