generate dot file and render it using graphviz