1Graph::Matrix(3) User Contributed Perl Documentation Graph::Matrix(3)
2
3
4
6 Graph::Matrix - create and manipulate a V x V matrix of graph G
7
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
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
31 stringify
32 Returns a string roughly representing the matrix, with the $u down
33 the left-hand side, and $v across the top.
34
36 Jarkko Hietaniemi jhi@iki.fi
37
39 This module is licensed under the same terms as Perl itself.
40
41
42
43perl v5.32.1 2021-01-27 Graph::Matrix(3)