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, ...@@ -414,9 +414,11 @@ def random_graph(N, deg_sampler, directed=True,
bm = None bm = None
if random: if random:
g.set_fast_edge_removal(True)
random_rewire(g, parallel_edges=parallel_edges, random_rewire(g, parallel_edges=parallel_edges,
self_loops=self_loops, verbose=verbose, self_loops=self_loops, verbose=verbose,
block_membership=bm, **kwargs) block_membership=bm, **kwargs)
g.set_fast_edge_removal(False)
if bm is None: if bm is None:
return g return g
......
Markdown is supported
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