def _get_inner_edges(G, srcs, dests):
    fwdset = set()
    backset = set()
    for node in dests:
        backset.update(_dfs_connections(G, node, visited=backset, reverse=True))

    for node in srcs:
        fwdset.update(_dfs_connections(G, node, visited=fwdset))

    return fwdset.intersection(backset)
Return the full set of edges between the
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/depgraph.py/_get_inner_edges