def write_dot(G,path):
    try:
        import pygraphviz
    except ImportError:
        raise ImportError('requires pygraphviz ',
                          'http://networkx.lanl.gov/pygraphviz ',
                          '(not available for Python3)')
    A=to_agraph(G)
    A.write(path)
    A.clear()
    return
Write NetworkX graph G to Graphviz dot format on path.
dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/drawing/nx_agraph.py/write_dot