Graph:...::Cycle(3pm)

πŸ’« NAME πŸ’«

Graph::Maker::Cycle β€” bestie, it literally makes a graph that is one big cycle. That's it. That's the whole vibe. πŸŽ€


🌈 VERSION 🌈

Version 0.01 β€” baby's first release, and she's serving. πŸ’…


✨ SYNOPSIS ✨

okay so picture this: you get a cyclic graph with however many nodes you want. A cyclic graph is basically a linear graph where the last node loops back and connects to the first one β€” like a friendship bracelet that closes up. 🫢

And listen β€” if the graph is directed, then edges get added in both directions, which creates an undirected graph. yes it's giving chaotic but that's what it does. 😭

use strict;
use warnings;
use Graph;
use Graph::Maker;
use Graph::Maker::Cycle;

my $g = new Graph::Maker('cycle', N => 4, undirected => 1);
# work with the graph

πŸ¦‹ FUNCTIONS πŸ¦‹

πŸ’– new %params

Makes you a cyclic graph with N nodes, periodt. 🌸

The parameters she recognizes are:

  • N β€” how many nodes you want, queen. If you don't hand it over, it just defaults to 0. no drama. ✨
  • graph_maker β€” if you pass this in, it gets called to create the Graph class however you like (say, if you've got a subclass of Graph and you're feeling fancy πŸ‘‘). If you don't pass it, it just defaults to creating a Graph with the parameters you specified. πŸŽ€
  • Any other params? They get passed straight onto Graph's constructor. iykyk. πŸ’…

🌟 AUTHOR 🌟

Matt Spear, "<batman900+cpan at gmail.com>" β€” go say hi, he made this. 🫢


πŸ’€ BUGS πŸ’€

None at the moment... iconic behaviour, honestly. ✨

But fr fr, please report any bugs or feature requests to "bug-graph-maker-cycle at rt.cpan.org", or through the web interface at:

<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Graph-Maker>

I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. the way that's actually a whole closed feedback loop... obsessed. πŸ’–


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. slay. 🌈


and that's the whole page bestie πŸ’œ perl v5.32.1, dated 2021-08-27 β€” Graph:...::Cycle(3pm), signing off, mwah 😘
πŸ“¦ where this page comes from