Warning

This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.

networkx.utils.random_sequence.powerlaw_sequence

powerlaw_sequence(n, exponent=2.0)[source]

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