I am building a .dot file to represent a directed acyclic graph.
I need to generate an image from this graph.dot file (using C#) so that I can show the image in a Picture Box in my application. What library should I use?
Using GraphViz’s command in the command prompt:
dot -Tpng graph.dot -o graph.png
I am able to generate the image fine, so I know that the formatting of my .dot file is correct.
Thank you.
Thank you @marapet for pointing me to David Brown’s project.
I have downloaded the sample at: David Brown’s Implicit Operator
The sample works well.
I copied the required code to my project. I had to change my .NET Target Framework from 4.0 to 3.5, but that isn’t a problem.
So far, the code has never crashed. (Even though other people have reported issues.)
UPDATE
David Brown’s website seems to be down so I have updated this answer with the code I’d taken from the website.