added create_dot_file method for graph objects