

def test_richclub_normalized():
    G = nx.Graph([(0, 1), (0, 2), (1, 2), (1, 3), (1, 4), (4, 5)])
    rcNorm = nx.richclub.rich_club_coefficient(G, Q=2)
    assert_equal(rcNorm, {
        0: 1.0,
        1: 1.0,
    })

dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/algorithms/tests/test_richclub.py test_richclub_normalized/original