NetworkX

Previous topic

networkx.utils.cumulative_distribution

Next topic

networkx.utils.scipy_pareto_sequence

networkx.utils.discrete_sequence

discrete_sequence(n, distribution=None, cdistribution=None)

Return sample sequence of length n from a given discrete distribution or discrete cumulative distribution.

One of the following must be specified.

distribution = histogram of values, will be normalized

cdistribution = normalized discrete cumulative distribution