Commit 1cc26bed authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Always use fast edge removal in random_graph()

parent da179ff0
......@@ -414,9 +414,11 @@ def random_graph(N, deg_sampler, directed=True,
bm = None
if random:
random_rewire(g, parallel_edges=parallel_edges,
self_loops=self_loops, verbose=verbose,
block_membership=bm, **kwargs)
if bm is None:
return g
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment