Graph:...::Wheel(3pm)
π Graph::Maker::Wheel π
okay bestie, buckle up, we're doing a User Contributed Perl Documentation page and it's giving graph theory but make it cute. This one's about Graph::Maker::Wheel, no cap. π‘β¨
πΈ NAME πΈ
Graph::Maker::Wheel β literally just creates a wheel graph. that's the whole job. she's a simple queen. π
β¨ VERSION β¨
Version 0.01, babes. brand new, fresh out the box. π
π¦ SYNOPSIS π¦
So the vibe is: you tell it how many nodes you want, and it hands you back a wheel graph. And what even is a wheel graph, you ask? It's a star graph where all the outer nodes get connected to each other in a cycle. like a star that decided to become a friendship bracelet. π«Ά
Oh and heads up: if the graph is directed, then edges get added in both directions, which effectively makes it an undirected graph anyway. the way that it just refuses to be one-way... iconic behavior tbh. π
use strict;
use warnings;
use Graph;
use Graph::Maker;
use Graph::Maker::Wheel;
my $g = new Graph::Maker('wheel', N => 10, undirected => 1);
# work with the graph
π₯ FUNCTIONS π₯
π new %params
Creates a wheel graph with however many nodes you asked for. simple as that, fr fr.
The recognized parameters are:
Nβ your node count. if you don't give it anN, it defaults to 0 (so like, nothing. an empty little void wheel. π)graph_makerβ if you specify this, it gets called to create theGraphclass exactly how you want it (for example, if you've got your own subclass ofGraph, this is your moment, main character energy β¨). if you don't pass it, it just defaults to creating a regularGraphwith the parameters you specified.
and any other params you throw in? they get passed straight onto Graph's constructor. no gatekeeping here. π
π AUTHOR π
Matt Spear, <batman900+cpan at gmail.com> π¦ (yes the email is a batman reference, we love that for him)
π BUGS π
Found a bug? Want a feature? Please report it, bestie, don't just suffer in silence π:
- email
bug-graph-maker-wheel at rt.cpan.org, or - use 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. it's a whole little notification situationship. ππ
π 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.
π§ SEE YA π§
and that's the whole page, periodt. π
cute little sign-off moment: this was generated by perl v5.32.1 on 2021-08-27, and it belongs to the Graph:...::Wheel(3pm) family of docs. go build some wheels, bestie, you're gonna slay. ππ‘π
π¦ 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