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 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