How do I set the resolution when converting dot files (graphviz) to images?

dot, graphviz

Solution

Use the dpi attribute.

Example:

graph G { 
  graph [ dpi = 300 ]; 
  /* The rest of your graph here. */ 
}

Problem

I tried ``` $ dot -Tpng rel_graph.gv > rel_graph.png ``` but the resulting image has a very low quality.

Original source