Graph:...percube(3pm)

πŸ’– NAME πŸ’–

Graph::Maker::Hypercube β€” bestie, it creates the N-dimensional hypercube graph. That's it, that's the whole job, and it does it gorgeously ✨


🌸 VERSION 🌸

Version 0.01 πŸŽ€ (yes she's baby, she's new, she's slaying anyway)


πŸ¦‹ SYNOPSIS πŸ¦‹

Okay so real quick: this makes you the N-dimensional hypercube graph. And here's the lil plot twist β€” if the graph is directed, then edges get added in both directions, which turns it into an undirected graph. The way that it just fixes that for you?? Iconic behavior honestly πŸ’…

use strict;
use warnings;
use Graph;
use Graph::Maker;
use Graph::Maker::Hypercube;

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

Like. Copy that. Paste that. Run that. You're a graph girlie now 🌈


✨ FUNCTIONS ✨

🫢 new %params

Creates the N-dimensional hypercube graph, no cap 🧚

Here's the tea on the parameters it actually recognizes:

  • N β€” the dimension, obviously, the whole point bestie
  • graph_maker β€” and then literally any other params get passed straight onto Graph's constructor, they're not being gatekept, they get forwarded πŸ’Œ

If N is not given, it defaults to 0. Yes. Zero. The empty lil hypercube. It's giving minimalism πŸ“

And if graph_maker is specified, it will be called to create the Graph class however you want β€” like, for example, if you've got a subclass of Graph and you want that one instead. Main character energy, custom class edition πŸ‘‘


πŸ’œ AUTHOR πŸ’œ

Matt Spear, "<batman900+cpan at gmail.com>" β€” thank you for your service king πŸ«‘πŸ’–


😭 BUGS 😭

Found a bug? A feature request? A vibe that's off? Please report it, don't just suffer in silence bestie:

And one more time, because it bears repeating (it's literally in this section too, we're not skipping it): if graph_maker is specified it will be called to create the Graph class as desired β€” like if you have a subclass of Graph β€” and this defaults to creating a Graph with the parameters specified. Periodt πŸ’…


🌟 ACKNOWLEDGEMENTS 🌟

This package owes a lot to NetworkX. Respect where respect is due, fr fr πŸ™Œ


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, legally speaking βš–οΈβœ¨


ngl, that's the whole page. Go build a hypercube. You got this 🌸

perl v5.32.1 Β· 2021-08-27 Β· Graph::Maker::Hypercube (3pm) β€” mwah, that's a wrap bestie, ty for reading my little manpage πŸ’…πŸ’–πŸ¦‹

πŸ“¦ where this page comes from