Graph:...Linear(3pm)
β¨ NAME β¨
Graph::Maker::Linear β bestie, it makes a linear graph. That's it. That's the whole vibe. π
πΈ VERSION πΈ
Version 0.01 β baby's first release, iconic behavior fr.
π¦ SYNOPSIS π¦
okay so picture this: you get a graph with N edges where node i is connected to i+1 (nodes are numbered from 1 to N, no zero-indexing shenanigans here π
). And if the graph is directed? Then edges get added in both directions, which lowkey just makes it an undirected graph. she's flexible like that.
use strict;
use warnings;
use Graph;
use Graph::Maker;
use Graph::Maker::Linear;
my $g = new Graph::Maker('linear', N => 10);
# work with the graph
π FUNCTIONS π
new %params
Creates a Graph with N nodes. The parameters it actually recognizes are N and graph_maker β anything else you hand over gets passed straight onto Graph's constructor, no questions asked. π«Ά
If graph_maker is specified, it'll get called to create the Graph class however you want (say, if you've got a subclass of Graph lying around β main character energy β¨). If you don't specify it, it just defaults to creating a Graph with the parameters you gave it. Simple. Clean. Slay.
π AUTHOR π
Matt Spear, "<batman900+cpan at gmail.com>" β shoutout to the author, we love to see it. π
π BUGS π
Found a bug? Got a feature request? Please report it to "bug-graph-maker-linear at rt.cpan.org", or slide through the web interface at:
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Graph-Maker>
Not me getting notified, and then you automatically getting notified of progress on your bug as changes get made. it's giving transparency, it's giving communication, we stan. π
π COPYRIGHT & LICENSE π
Copyright 2008 Matt Spear, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. periodt. π
and that's the whole page bestie β this one came from perl v5.32.1, dated 2021-08-27, and it lives in the Graph:...Linear(3pm) manual. now go build ur little line of nodes and thrive π§β¨
π¦ where this page comes from
- debian bookworm: libgraph-maker-perl 0.02-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libgraph-maker-perl 0.02-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libgraph-maker-perl 0.02-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libgraph-maker-perl 0.02-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libgraph-maker-perl 0.02-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libgraph-maker-perl 0.02-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