networkx.utils.random_sequence.
cumulative_distribution
Return normalized cumulative distribution from discrete distribution.