def is_clique(G, nodes):
    H = G.subgraph(nodes)
    n = len(H)
    return H.number_of_edges() == n * (n - 1) // 2
<text>
dataset/ETHPy150Open networkx/networkx/networkx/algorithms/approximation/tests/test_clique.py/is_clique--crossover with--dataset/ETHPy150Open ProgVal/Limnoria/plugins/Owner/plugin.py/Owner.logmark