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 beN1 >= 2, no negotiating π€N2β has to beN2 >= 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 aGraphwith 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 π
- Email:
"bug-graph-maker-lollipop at rt.cpan.org" - Or slide through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Graph-Maker>
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 & 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. π
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
- 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