title: Generate image of GraphViz graph given dot text c++
body: <p>I have a string in a C++ Qt application (on Ubuntu) which contains valid GraphViz/dot graph syntax. I want to generate an image file/object from this text, similar to the images that various online tools (like this one: <a href="http://www.webgraphviz.com/" rel="nofollow noreferrer">http://www.webgraphviz.com/</a>) spit out. Maybe I'm using wrong search terms, but I can't seem to find relevant help with this.</p>
  
  <p>What I basically want is something like this:</p>
  
  <pre><code>generate_dot_graph_image(std::string dot_text, std::string image_file_path)
  </code></pre>
  
  <p><strong>Additional details:</strong> I have a Dijkstra solver whose solution (basically the original graph after removing non-used edges) I want to visualize inside my application. The solver already includes an option to convert the solution to a string that can be parsed as a dot graph using a utility such as the one I linked above. But what I want is to be able to do this from inside C++.</p>