Graph:...:As_vcg(3pm)

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

✨ 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 πŸ”₯

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 πŸ’–βœ¨πŸŒˆ