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 N isn't given, it defaults to 0. Yes, zero. An empty lil star. A void. 😭
  • If graph_maker is specified, it'll be called to create the Graph class however you want (say, if you've got your own subclass of Graph). If you don't specify it, it just defaults to creating a Graph with 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 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 the Graph::Maker::Star page from the User Contributed Perl Documentation, section 3pm β€” and it was brought to you by perl v5.32.1, dated 2021-08-27. That's the vibe check, we're done here. bye bestie πŸ’œπŸ¦‹
πŸ“¦ where this page comes from