Graph:...llipop(3pm)

πŸ’– NAME πŸ’–

Graph::Maker::Lollipop β€” it makes a lollipop graph, bestie 🍭✨

(and yeah, this whole thing lives under the User Contributed Perl Documentation umbrella, in case you were wondering where you wandered into 🫢)

🌸 VERSION 🌸

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


✨ SYNOPSIS ✨

Okay so here's the vibe: you get a lollipop graph with N1 nodes chillin' on the left and N2 nodes in the bar. A lollipop graph is literally one fully-connected component of size N1 that's connected to a single path of N2 nodes. And if the graph is directed? Not a problem, bestie β€” edges get added in both directions so it becomes an undirected graph. Obsessed. 🍭

use strict;
use warnings;
use Graph;
use Graph::Maker;
use Graph::Maker::Lollipop;

my $g = new Graph::Maker('lollipop', N1 => 4, N2 => 2);
# work with the graph

πŸŽ€ FUNCTIONS πŸŽ€

πŸ’œ new %params

Creates the lollipop graph with N1 nodes on the left and N2 nodes in the bar. The parameters she actually recognizes are:

  • N1 β€” has to be N1 >= 2, no negotiating 😀
  • N2 β€” has to be N2 >= 0, also no negotiating πŸ’€
  • graph_maker β€” if you pass this in, it gets called to create the Graph class. Super handy if you've got a subclass of Graph, iykyk. If you don't specify it, it defaults to just creating a Graph with the parameters you gave it.

And literally any other params you throw at her? They get passed straight onto Graph's constructor. She's generous like that. πŸ‘‘


🌈 AUTHOR 🌈

Matt Spear, "<batman900+cpan at gmail.com>" β€” yeah, that's the icon who made this 🫢

πŸ¦‹ BUGS πŸ¦‹

Found a bug? Got a feature request? Please report it, bestie, don't just suffer in silence 😭

The way this works: I get notified, and then you automatically get notified of progress on your bug as I make changes. It's giving teamwork. It's giving transparency. Periodt. ✨

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. πŸ’–


That's the whole page, babes πŸŽ€ β€” running under perl v5.32.1, dated 2021-08-27, and this little lollipop moment was brought to you by Graph::Maker::Lollipop(3pm). Stay iconic πŸ’…βœ¨

πŸ“¦ where this page comes from