def get_edge_boundary(g, nodes):
    others = set(g.nodes_iter()).difference(nodes)
    out_edges = nx.edge_boundary(g, nodes)
    in_edges = nx.edge_boundary(g, others)

    return in_edges, out_edges
Returns a tuple of the form (in_edges, out_edges),
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/depgraph.py/get_edge_boundary