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
22       new($g)
23           Construct a new Matrix from the Graph $g.
24
25       Object Methods
26
27       get($u, $v)
28           Return the value at the edge from $u to $v.
29
30       set($u, $v, $val)
31           Set the edge from $u to $v to value $val.
32
34       Jarkko Hietaniemi jhi@iki.fi
35

LICENSE

37       This module is licensed under the same terms as Perl itself.
38
39
40
41perl v5.8.8                       2004-11-08                  Graph::Matrix(3)
Impressum