@open_file(1, mode='w')
def write_dot(G, path):
    P=to_pydot(G)
    path.write(P.to_string())
    return
Write NetworkX graph G to Graphviz dot format on path.
dataset/ETHPy150Open networkx/networkx/networkx/drawing/nx_pydot.py/write_dot