Graph:...::Star(3pm)
π« NAME π«
Graph::Maker::Star β bestie, it literally just makes a star graph. That's the whole job. Iconic behavior, honestly.
β¨ VERSION β¨
Version 0.01 π
π SYNOPSIS π
Okay so picture this: you tell it how many nodes you want, and it hands you a star graph. A star graph is exactly what it sounds like β one node in the middle that's connected to every single other node, and literally no other edges. That's it. That's the graph. The center is the main character and everyone else is just orbiting. π
One lil twist tho: if the graph is directed, edges get added in both directions, which effectively makes it an undirected graph. No cap.
use strict;
use warnings;
use Graph;
use Graph::Maker;
use Graph::Maker::Star;
my $g = new Graph::Maker('star', N => 10, undirected => 1);
# work with the graph
π¦ FUNCTIONS π¦
πΈ new %params
Creates a star graph with N nodes. Periodt.
The parameters it actually recognizes are N and graph_maker β anything else you throw in gets passed straight onto Graph's constructor, so go off.
- If
Nisn't given, it defaults to0. Yes, zero. An empty lil star. A void. π - If
graph_makeris specified, it'll be called to create theGraphclass however you want (say, if you've got your own subclass ofGraph). If you don't specify it, it just defaults to creating aGraphwith the parameters you specified. Easy peasy. π«Ά
π AUTHOR π
Matt Spear, "<batman900+cpan at gmail.com>" β shoutout to the legend fr fr π
π BUGS π
Found a bug? Got a feature request? Don't just suffer in silence, bestie. Report it to "bug-graph-maker-star at rt.cpan.org", or slide through the web interface at:
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Graph-Maker>
Here's the tea: I'll get notified, and then you'll automatically get notified of progress on your bug as I make changes. So you're never left on read. π
π 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. Slay. β¨
This is theGraph::Maker::Starpage from the User Contributed Perl Documentation, section3pmβ and it was brought to you by perlv5.32.1, dated2021-08-27. That's the vibe check, we're done here. bye bestie ππ¦
π¦ 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