Graph:...:As_vcg(3pm)
β¨ NAME β¨
Graph::Easy::As_vcg β bestie, this is the lil module that makes VCG/GDL text out of a Graph::Easy object π it's a Perl manual page, section 3pm, and it is exactly as niche and iconic as it sounds.
πΈ SYNOPSIS πΈ
okay so here's the whole vibe in code, no cap:
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_vcg();
and this prints something like this, literally:
graph: {
node: { title: "Bonn" }
node: { title: "Berlin" }
edge: { sourcename: "Bonn" targetname: "Berlin" }
}
likeβ¦ look at it go π¦ two nodes and an edge, living their best life.
π DESCRIPTION π
so Graph::Easy::As_vcg contains just the code for converting a Graph::Easy object to either a VCG or a GDL textual description. that's it, that's the whole job, and it does it flawlessly π
also, heads up bestie: the generated format is compatible to GDL aka Graph Description Language. periodt. π
π EXPORT π
Exports nothing. not a single thing. empty pockets. zero vibes exported. π
π₯ SEE ALSO π₯
Graph::Easy- <http://rw4.cs.uni-sb.de/~sander/html/gsvcg1.html>
go read those if you want the full lore, 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 one shipped as part of perl v5.36.0, dated 2022-11-20, and it lives under Graph:...:As_vcg(3pm). mwah, go generate some graphs πβ¨π
π¦ 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