Graph:...nected(3pm)

πŸ’– Graph::Maker::Disconnected πŸ’–

okay bestie, so this is Graph::Maker::Disconnected from the 3pm manual pages β€” and yes, it's exactly what it sounds like: a maker that makes you a graph with zero edges. That's the whole personality. It's giving "I'm here, I exist, but I'm not connecting with anybody" energy and honestly? relatable. ✨


🌈 VERSION 🌈

Version 0.01


πŸ¦‹ SYNOPSIS πŸ¦‹

So basically it creates a disconnected graph with however many nodes you ask for. And a disconnected graph is, by definition, N nodes and no edges. That's it, that's the vibe. No cap.

use strict;
use warnings;
use Graph;
use Graph::Maker;
use Graph::Maker::Disconnected;

my $g = new Graph::Maker('disconnected', N => 4, undirected => 1);
# work with the graph

πŸ’… FUNCTIONS πŸ’…

πŸŽ€ new %params

Creates a disconnected graph with N nodes. Slay.

The parameters it actually recognizes are:

  • graph_maker
  • N

...and literally any other params you throw at it get passed straight on over to Graph's constructor, no questions asked. 🫢

A couple of important deets:

  • If N isn't given, it defaults to 0. (Yes, a graph with zero nodes. It's minimalism, bestie, it's a statement.)
  • If graph_maker is specified, that thing gets called to create the Graph class however you want it β€” like if you've got a subclass of Graph and you're feeling fancy. By default it just creates a Graph with the parameters you specified.

πŸ‘‘ AUTHOR πŸ‘‘

Matt Spear, "<batman900+cpan at gmail.com>" β€” give him his flowers πŸ’


πŸ’€ BUGS πŸ’€

None at the moment... (iconic behaviour, honestly, not a single one to report 😭)

But if you do find something, please report any bugs or feature requests to "bug-graph-maker-disconnected at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Graph-Maker>.

Here's the deal though: I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. So it's a whole mutual-notification situationship. πŸ’œ


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. (So, like, free free. Go off. 🧚)


reminder bestie: N with no edges means no edges. If you wanted edges you're in the wrong manpage, iykyk. πŸ™ˆ

okay that's the whole page, and just so you have the receipts: this is from perl v5.32.1, dated 2021-08-27, and it's Graph:...nected(3pm) β€” she's been around a minute and she's still thriving. periodt. πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from