With this simple API you can simply call GraphViz's dot from your Java programs.