How to go from graphiz to PNG? What am I missing here?

I'm using dot in graphiz to display a directed graph, and I would like to export this to PNG. I am pretty new with this whole process and find it very interesting; however, I cannot figure out for the life of me how to export this to an image file. I see nothing in the GVEdit for Graphviz application to do this.

I installed the executable package from AT&T ( for Windows if that helps.

Can someone point me in the right direction?

Sure. If you are using

Sure. If you are using gvedit, you first create or open a graph using File or Edit or one of the two left icons, and then describe your graph using the DOT language. From your message, it seems you've already gotten this far. If you click on the the rightmost Running Man icon, you'll see a picture of the graph you've described. If, instead, you click on the icon to the left of the Running Man, you'll get a dialogue box. This has menus for picking the layout algorithm, the output type (PNG is the default) and where the output file should be saved. The other menus can assist you in setting default attributes for nodes, edges and graphs. Once you've set these, click on OK. You'll see the graph layout in gvedit, and the output file will be written where specified.

We are fans of languages rather than GUIs, and we've never had the time to do a good GUI. So more typically, even on Windows, we will open a command shell, use a text editor to create a Graphviz file, say, test.gv (this is what you'd be typing into the main text window in gvedit), and then run the command dot -Tpng test.gv > out.png. The desired PNG file will be out.png.

Recent comments