Graph:...irected(3pm)

πŸ’– Graph::Undirected(3pm) πŸ’–

okay so bestie, welcome to the manual page for Graph::Undirected(3pm) β€” it lives in the User Contributed Perl Documentation section and it's literally the chillest little module. graphs but undirected. no arrows, no drama, just vibes πŸ¦‹


🌸 NAME 🌸

Graph::Undirected β€” undirected graphs. that's it, that's the name, slay ✨


πŸŽ€ SYNOPSIS πŸŽ€

use Graph::Undirected;
my $g = Graph::Undirected->new;

# Or alternatively:

use Graph;
my $g = Graph->new(undirected => 1);
my $g = Graph->new(directed => 0);

okay so there's three whole ways to get into this and all of them are valid. you can go straight through Graph::Undirected and call new, or you can roll up with plain use Graph; and pass either undirected => 1 or directed => 0 and get the exact same energy. pick your fighter πŸ’…


✨ DESCRIPTION ✨

Graph::Undirected allows you to create undirected graphs. that's the whole gig. it's giving "specialised subclass" and we love that for it πŸ‘‘

for the available methods, see Graph. (yes, literally, go read that one, all the actual method tea is in there πŸ«–)


πŸ’œ SEE ALSO πŸ’œ

  • Graph β€” the main character, all the methods live here
  • Graph::Directed β€” the directed sibling, arrows everywhere, also iconic

Jarkko Hietaniemi jhi@iki.fi


⭐ LICENSE ⭐

this module is licensed under the same terms as Perl itself. no cap, same terms, that's the deal 🌈


πŸ’€ friendly reminder that if you need methods, you gotta go see Graph. this page is short and it knows it and it's at peace with that.

and that's the whole page bestie, no notes 🌸 this was perl v5.40.1, dated 2025-03-28, Graph:...irected(3pm) β€” go forth and connect some nodes, periodt πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from