title: Converting dot to png in python
body: <p>I have a dot file generated from my code and want to render it in my output. For this i have seen on the net that the command is something like this on <code>cmd</code></p>
  
  <pre><code>dot -Tpng InputFile.dot -o OutputFile.png  for Graphviz
  </code></pre>
  
  <p>But my problem is that I want to use this inbuilt in my python program.</p>
  
  <p>How can i do so ??</p>
  
  <p>I looked at pydot but can't seem to find an answer in there.....</p>