Reputation: 158344
RGL supports writing DOT files from a graph, is it possible to create a graph from a DOT file?
(Obviously I can parse the DOT file myself and create a graph, but I'm wondering if this functionality exists already).
Upvotes: 0
Views: 466
Reputation: 1851
First you have to install graphviz which gives you the 'dot' command. Then you can run
dot -Tpng graph.dot > output.png
but I found that after installing dot the rgl method write_to_graphic_file automatically writes the image if you do something like
graph_obj.write_to_graphic_file('png')
Upvotes: 0