I just learned of this project today, and it's really cool!
Thought you'd be interested to know of the GraphViz2 module, which may make things easier/better in this script. Example usage:
From https://github.com/PDLPorters/pdl/blob/master/perldl#L335-L338:
my $g = PDL::Core::pdumpgraph(PDL::Core::pdumphash($pdl));
require GraphViz2;
my $gv = GraphViz2->from_graph(PDL::Core::pdumpgraphvizify($g));
$gv->run(format => $format, output_file => $file);
The general idiom is you make a Graph object, then annotate it (e.g. with a graphvizify procedure such as https://github.com/PDLPorters/pdl/blob/ac270e21cafeda8726dd64fa4b90e4a6e686c8c2/Basic/Core/Core.pm#L2394-L2439), then GraphViz2 can run with it.
I just learned of this project today, and it's really cool!
Thought you'd be interested to know of the GraphViz2 module, which may make things easier/better in this script. Example usage:
From https://github.com/PDLPorters/pdl/blob/master/perldl#L335-L338:
The general idiom is you make a
Graphobject, then annotate it (e.g. with agraphvizifyprocedure such as https://github.com/PDLPorters/pdl/blob/ac270e21cafeda8726dd64fa4b90e4a6e686c8c2/Basic/Core/Core.pm#L2394-L2439), thenGraphViz2can run with it.