Commit bcf54441 authored by Tiago Peixoto's avatar Tiago Peixoto

Fix typo bug in random_graph()

parent 7d08bc42
......@@ -341,7 +341,7 @@ def random_graph(N, deg_sampler, deg_corr=None, directed=True,
if blockmodel is not None:
sampler = lambda i: deg_sampler(blockmodel[i])
else:
sample = deg_sampler
sampler = deg_sampler
else:
sampler = lambda i: deg_sampler()
......
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