Graph::Matrix - create and manipulate a V x V matrix of graph G
use Graph::Matrix; use Graph::Directed; my $g = Graph::Directed->new; $g->add_...(); # build $g my $m = Graph::Matrix->new($g); $m->get($u, $v) $s->get($u, $v, $val)
This module is meant for internal use by the Graph module.
Construct a new Matrix from the Graph $g.
Return the value at the edge from $u to $v.
Set the edge from $u to $v to value $val.
Returns a string roughly representing the matrix, with the $u down the left-hand side, and $v across the top.
$u
$v
Jarkko Hietaniemi jhi@iki.fi
This module is licensed under the same terms as Perl itself.
To install Graph, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Graph
CPAN shell
perl -MCPAN -e shell install Graph
For more information on module installation, please visit the detailed CPAN module installation guide.