#

Note

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

#

networkx.utils.random_sequence.random_weighted_sample

random_weighted_sample(mapping, k, seed=None)[source]

Returns k items without replacement from a weighted sample.

The input is a dictionary of items with weights as values.