Graph::Matrix(3pm)
π Graph::Matrix π
okay so bestie, this is the Graph::Matrix page from the User Contributed Perl Documentation section of the manual β it's a Perl module, it lives at Graph::Matrix(3pm), and no cap, it is not for you. It's an internal lil helper. π«Ά
β¨ 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)
like, that's the whole vibe. $g gets built, $m wraps it, and then you're getting things out of it. π¦
πΈ DESCRIPTION πΈ
This module is meant for internal use by the Graph module. that's it, that's the whole tea β it's not out here trying to be your main character, it's the backstage crew. β¨
π§ Class Methods π§
new($g)β Construct a new Matrix from the Graph$g. fresh out the box, one graph in, one matrix out. π
π Object Methods π
get($u, $v)β Return the value at the edge from$uto$v. πset($u, $v, $val)β Set the edge from$uto$vto value$val. literally just, here's the value, put it there. πstringifyβ Returns a string roughly representing the matrix, with the$udown the left-hand side, and the$vacross the top. it's giving spreadsheet energy fr fr π
π AUTHOR AND COPYRIGHT π
Jarkko Hietaniemi jhi@iki.fi π
β LICENSE β
This module is licensed under the same terms as Perl itself. periodt. π
okay bestie that's the whole page, you ate that π
this was perl v5.40.1, dated 2025-03-28, and it's the Graph::Matrix(3pm) page β catch you in the next manpage, mwah πβ¨
π¦ where this page comes from
- debian trixie: libgraph-perl 1:0.9735-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libgraph-perl 1:0.9735-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libgraph-perl 1:0.9735-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms