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 bestiegraph_makerβ and then literally any other params get passed straight ontoGraph'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:
- Email:
"bug-graph-maker-hypercube at rt.cpan.org" - Or use the web interface: <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Graph-Maker>
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 & 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, 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
- 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