Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Graph::Matrix

Name Graph::Matrix
Version
Located at /usr/share/perl5/vendor_perl
File /usr/share/perl5/vendor_perl/Graph/Matrix.pm
Is Core No
Search CPAN for this module Graph::Matrix
Documentation Graph::Matrix
Module Details Graph::Matrix

NAME

Graph::Matrix - create and manipulate a V x V matrix of graph G


SYNOPSIS

    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)


DESCRIPTION

This module is meant for internal use by the Graph module.

Class Methods

new($g)
Construct a new Matrix from the Graph $g.

Object Methods

get($u, $v)
Return the value at the edge from $u to $v.

set($u, $v, $val)
Set the edge from $u to $v to value $val.


AUTHOR AND COPYRIGHT

Jarkko Hietaniemi jhi@iki.fi


LICENSE

This module is licensed under the same terms as Perl itself.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2024