

def test_joint_degree_graph(ntimes=100):
    for _ in range(ntimes):
        seed = time.time()
        (n, m, p) = (20, 10, 1)
        g = powerlaw_cluster_graph(n, m, p, seed=seed)
        joint_degrees_g = degree_mixing_dict(n, normalized=False)
        G = joint_degree_graph(joint_degrees_g)
        joint_degrees_G = degree_mixing_dict(G, normalized=False)
        assert_true((joint_degrees_g == joint_degrees_G))

dataset/ETHPy150Open networkx/networkx/networkx/generators/tests/test_joint_degree_seq.py test_joint_degree_graph/VarMisuse@65/87 `g`->`n`