'Tests that the generated graph is `k`-out-regular.'

def test_regularity(self):

    n = 10
    k = 3
    alpha = 1
    G = random_k_out_graph(n, k, alpha)
    assert_true(all(((d == k) for (v, d) in G.out_degree())))
