networkx.utils.random_sequence.powerlaw_sequence

powerlaw_sequence(n, exponent=2.0, seed=None)[source]

Return sample sequence of length n from a power law distribution.