Write NetworkX graph G to Graphviz dot format on path.
G : graph
A networkx graph
path : filename
Filename or file handle to write