added create_dot_file method for creating dot files for a graph object