def read_dot(path):
    """Return a NetworkX graph from a dot file on path.

    Parameters
    ----------
    path : file or string
       File name or file handle to read.
    """
    try:
        import pygraphviz
    except __HOLE__:
        raise ImportError('read_dot() requires pygraphviz ',
                          'http://networkx.lanl.gov/pygraphviz ',
                          '(not available for Python3)')
    A=pygraphviz.AGraph(file=path)
    return from_agraph(A)
dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/drawing/nx_agraph.py/read_dot