# 16.5.1 Graphing code with graphviz

radare 1.4 adds two new commands (agd and agdv) that stand for 'analyze-graph-dot' and +'view'. The first one will print to stdout a dot format file. Pipe it to a file and then run graphviz on it to get the rendered result.

The second command (agdv) does all this stuff automatically for you. This is:

    - generate dot file
    - graphviz to png
    - rsc view png (runs gqview or any other available image viewer of your system)

Let's do it manually:

    []> agd > file.dot
    []> !!dot -Tpng -o file.png file.dot
    []> !!rsc view file.png