

def test_node_clique_number(self):
    G = self.G
    assert_equal(nx.node_clique_number(G, 1), 4)
    assert_equal(list(nx.node_clique_number(G, [1]).values()), [4])
    assert_equal(list(nx.node_clique_number(G, [1, 2]).values()), [4, 4])
    assert_equal(nx.node_clique_number(G, [1, 2]), {
        1: 4,
        2: 4,
    })
    assert_equal(nx.node_clique_number(G, 1), 4)
    assert_equal(nx.node_clique_number(G), {
        1: 4,
        2: 4,
        3: 4,
        4: 3,
        5: 3,
        6: 4,
        7: 3,
        8: 2,
        9: 2,
        10: 2,
        11: 2,
    })
    assert_equal(nx.node_clique_number(G, cliques=self.cl), {
        1: 4,
        2: 4,
        3: 4,
        4: 3,
        5: 3,
        6: 4,
        7: 3,
        8: 2,
        9: 2,
        10: 2,
        11: 2,
    })

dataset/ETHPy150Open networkx/networkx/networkx/algorithms/tests/test_clique.py TestCliques.test_node_clique_number/original