def is_dominating_set(G, nbunch):
    testset = set(n for n in nbunch if n in G)
    nbrs = set(chain.from_iterable(G[n] for n in testset))
    return len(set(G) - testset - nbrs) == 0
Calculate the key to check the MEDIASYNC['JOINED'] dict for, perform the
dataset/ETHPy150Open networkx/networkx/networkx/algorithms/dominating.py/is_dominating_set--crossover with--dataset/ETHPy150Open sunlightlabs/django-mediasync/mediasync/views.py/_find_combo_match