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 $u to $v. πŸŽ€
  • set($u, $v, $val) β€” Set the edge from $u to $v to value $val. literally just, here's the value, put it there. πŸ’…
  • stringify β€” Returns a string roughly representing the matrix, with the $u down the left-hand side, and the $v across the top. it's giving spreadsheet energy fr fr πŸ“Š

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