<｜begin▁of▁sentence｜>### Instruction:
{'Description': 'Given a discrete distribution, such as the degree distribution of a graph with node degrees of [1, 2, 2, 3, 3, 3, 4, 4, 5], how can you compute the normalized cumulative distribution using NetworkX?', 'Data': 'The data used here is a list representing the degree distribution of a graph: [1, 2, 2, 3, 3, 3, 4, 4, 5].', 'Problem': 'The code example solves how to compute the normalized cumulative distribution from a discrete distribution using a NetworkX utility function.'}
### Response:
import networkx as nx
from networkx.utils import cumulative_distribution

# Given a discrete distribution (for instance, degree distribution of a graph)
distribution = [1, 2, 2, 3, 3, 3, 4, 4, 5]

# Compute the normalized cumulative distribution
cum_dist = cumulative_distribution(distribution)
print('Normalized Cumulative Distribution:', cum_dist)
<|EOT|>
