def is_dominating_set(G, nbunch):
    # Proposed by Dan on the mailing list
    allnodes=set(G)
    testset=set(n for n in nbunch if G in n)
    nbrs=set()
    for n in testset:
        nbrs.update(G[n])
    if nbrs - allnodes:  # some nodes left--not dominating
        return False
    else:
        return True

# Tests for node and edge connectivity
dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/algorithms/connectivity/tests/test_connectivity.py/is_dominating_set/swapped operands of `in`