$ srcml example/code.java > example/code.srcml
$ srcml2dot example/code.srcml example/code.dot
$ dot -Tpng example/code.dot > example/code_topdown.png
$ neato -Tpng example/code.dot > example/code_spider.png
Modify srcml2dot.py to add attributes in the same fashion as fontname. See: http://www.graphviz.org/doc/info/attrs.html