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()], …

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()], …

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: