Graph:...aphviz(3pm)

πŸ“¦
version 0.76 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Graph::Easy::As_graphviz β€” the Graph:...aphviz(3pm) glow-up πŸ’–

okay so bestie, you found the Graph:...aphviz(3pm) page in the User Contributed Perl Documentation and you're like "what is this even". don't worry, i got you. sit down, sip ur drink, we're doing this together πŸ“


✨ NAME ✨

Graph::Easy::As_graphviz β€” Generate graphviz description from graph object πŸ¦‹

like, that's the whole vibe. it takes ur graph object and spits out graphviz words. iconic.


🌸 SYNOPSIS 🌸

here's the little demo, copy it exactly bestie, no typos:

        use Graph::Easy;

        my $graph = Graph::Easy->new();

        my $bonn = Graph::Easy::Node->new(
                name => 'Bonn',
        );
        my $berlin = Graph::Easy::Node->new(
                name => 'Berlin',
        );

        $graph->add_edge ($bonn, $berlin);

        print $graph->as_graphviz();

        # prints something like:

        # digraph NAME { Bonn -> Berlin }

see? you make a Graph::Easy, you make two nodes, Bonn and Berlin, you add_edge between them, and then as_graphviz() hands you back something in that last comment line. chef's kiss πŸŽ€


πŸ’… DESCRIPTION πŸ’…

so Graph::Easy::As_graphviz is literally just the code that converts a Graph::Easy object into a textual description β€” and that text is the kind of thing you can feed straight into Graphviz programs like dot. that's it. that's the job. no cap. ✨


🫢 EXPORT 🫢

Exports nothing. zero. nada. it's giving minimalism, and honestly? respect. πŸ’œ


πŸ‘‘ SEE ALSO πŸ‘‘

  • Graph::Easy
  • Graph::Easy::Parser::Graphviz

iykyk 🌈


🌟 AUTHOR 🌟

Copyright (C) 2004 - 2008 by Tels <http://bloodgate.com>

See the LICENSE file for information.


and that's the whole page bestie!! πŸ₯³ this was Graph:...aphviz(3pm) from the User Contributed Perl Documentation, brought to you by perl v5.36.0, dated 2022-11-20. go forth and graphviz, main character πŸ’–βœ¨πŸ¦‹