Note

This documents the development version of NetworkX. Documentation for the current release can be found here.

networkx.utils.random_sequence.cumulative_distribution

cumulative_distribution(distribution)[source]

Returns normalized cumulative distribution from discrete distribution.