1Graph::Matrix(3)      User Contributed Perl Documentation     Graph::Matrix(3)
2
3
4

NAME

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

SYNOPSIS

9           use Graph::Matrix;
10           use Graph::Directed;
11           my $g  = Graph::Directed->new;
12           $g->add_...(); # build $g
13           my $m = Graph::Matrix->new($g);
14           $m->get($u, $v)
15           $s->get($u, $v, $val)
16

DESCRIPTION

18       This module is meant for internal use by the Graph module.
19
20   Class Methods
21       new($g)
22           Construct a new Matrix from the Graph $g.
23
24   Object Methods
25       get($u, $v)
26           Return the value at the edge from $u to $v.
27
28       set($u, $v, $val)
29           Set the edge from $u to $v to value $val.
30
32       Jarkko Hietaniemi jhi@iki.fi
33

LICENSE

35       This module is licensed under the same terms as Perl itself.
36
37
38
39perl v5.28.0                      2014-03-09                  Graph::Matrix(3)
Impressum