-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
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.
suntong
Metadata
Metadata
Assignees
Labels
No labels