Refactored Graphviz dumper

* Integrated visitor pattern to navigate through the graph
* Moved formatting logic out from the callgraph display
Code syntax compliance