Graph:...aphviz(3pm)
π 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::EasyGraph::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 πβ¨π¦
π¦ where this page comes from
- debian bookworm: libgraph-easy-perl 0.76-3 Β· GPL-2.0-or-later
- debian trixie: libgraph-easy-perl 0.76-3 Β· GPL-2.0-or-later
- ubuntu noble: libgraph-easy-perl 0.76-3 Β· GPL-2.0-or-later
- ubuntu resolute: libgraph-easy-perl 0.76-3 Β· GPL-2.0-or-later
- ubuntu stonking: libgraph-easy-perl 0.76-3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms