Graph::Matrix(3pm)

Graph::Matrix3pm

Create and manipulate a v x v matrix of graph g

Usage

    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)

Overview

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.

stringify

Returns a string roughly representing the matrix, with the $u down the left-hand side, and $v across the top.

Releases

10 releases since Debian 4.0 (Etch); the text changed 7 times.

  1. 4.0–5.0
  2. 6.0–7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13

License

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

From libgraph-perl 1:0.9735-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.