

def test_richclub2():
    T = nx.balanced_tree(2, 10)
    rc = nx.richclub.rich_club_coefficient(rc, normalized=False)
    assert_equal(rc, {
        0: (4092 / (2047 * 2046.0)),
        1: (2044.0 / (1023 * 1022)),
        2: (2040.0 / (1022 * 1021)),
    })

dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/algorithms/tests/test_richclub.py test_richclub2/VarMisuse@28/41 `T`->`rc`