@open_file(0, mode='r')
def read_dot(path):
    import pydotplus
    data = path.read()
    P = pydotplus.graph_from_dot_data(data)
    return from_pydot(P)
Return a NetworkX MultiGraph or MultiDiGraph from a dot file on path.
dataset/ETHPy150Open networkx/networkx/networkx/drawing/nx_pydot.py/read_dot