Added a method to save the results in dot format.