Plot cumulative distribution with networkx and numpy

I want to implement the cumulative distribution for a graph. Here is my code: g = nx.read_edgelist(‘graph’, create_using= nx.Graph(), nodetype=int) degree_sequence = sorted([d for n, d in g.degree()], …

Create a matrix with np.random.normal

I need to create an nxn matrix in which the numbers in the cells are distributed following a Gaussian distribution. This code may not go well because it fills a cell with a sequence. how can I do? Answer Edited for border of zeros np.random.normal takes a size keyword argument. You can use it like this: