Graph:...r::DSM(3pm)
π Graph:...r::DSM(3pm) β bestie's guide to drawing graphs as DSM matrices π
okay so this is Graph:...r::DSM(3pm), straight out of the User Contributed Perl Documentation, and it's literally the moment your graph becomes a little grid of vibes. welcome π«Ά
β¨ NAME β¨
Graph::Writer::DSM β draw graph as a DSM matrix π
πΈ VERSION πΈ
version 0.008 β yes she's got a version number and yes she's serving β¨
π DESCRIPTION π
okay so what this does: it writes your graph as a quadractic matrix, N x N, where N is the number of vertices in the graph. (and yes the original spells it quadractic β we keep the receipts, no cap π§Ύπ)
it's useful to visualize graphs with at least 1k vertices. like, tiny graphs? sure, whatever, but this thing is built for the big ones π₯
wanna know more about DSM? go read up on it here, fr fr:
<http://en.wikipedia.org/wiki/Design_structure_matrix>
no HTML links allowed in my cute little rewrite so just copy that URL into your browser bestie, it's the wikipedia page for Design structure matrix, that's the DSM lore πβ¨
π¦ SYNOPSIS π¦
use Graph;
use Graph::Writer::DSM;
my $graph = Graph->new();
my $writer = Graph::Writer::DSM->new(%OPTIONS);
$writer->write_graph($graph, "output.png");
look at her go. use it, new it, write_graph it, and boom: output.png πΈβ¨
π METHODS π
π new()
like Graph::Writer::GraphViz, this module provides some extra parameters to the new() method. so you can be extra. as you should. π
$writer = Graph::Writer::DSM->new(color => 'red');
supported parameters are, bestie, listen up:
pointsizeβ Default:0.2. tiny dots, big energy β¨colorβ Default:'blue'. π (but you can absolutely change it, see above)tics_labelβ Default:false. off by default, turn it on if you want those labels
π write_graph()
write a specific graph to a named file, like so:
$writer->write_graph($graph, $file);
the $file argument can either be a filename, or a filehandle for a previously opened file. so flexible. so iconic. π
β SEE ALSO β
GraphGraph::WriterChart::Gnuplot
go read those too, iykyk π§
π COPYRIGHT π
Copyright (c) 2013, Joenio Costa
π heads up bestie: this whole thing is documented for perl v5.36.0, dated 2022-12-12, and the page title is literally Graph:...r::DSM(3pm) β truncated and everything, we don't judge, we stan ππ
mwah, that's the whole page. go make some matrices, you main character ππ
π¦ where this page comes from
- debian bookworm: libgraph-writer-dsm-perl 0.008-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libgraph-writer-dsm-perl 0.008-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libgraph-writer-dsm-perl 0.008-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libgraph-writer-dsm-perl 0.008-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libgraph-writer-dsm-perl 0.008-2 Β· 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