'Tests for forbidding self-loops.'

def test_no_self_loops(self):

    n = 10
    k = 3
    alpha = 1
    G = random_k_out_graph(n, k, alpha, self_loops=False)
    assert_equal(G.number_of_selfloops(), 0)
