On Sat, Apr 27, 2013 at 1:26 PM, Yasir Mohmand
<
yasir.t...@gmail.com> wrote:
> Dear All,
> Can anyone explain to me how to make a cumulative degree
> distribution chart in Networkx. I am completely new to this software, thus
> asking. Thanks in advance.
You can get a cumulative degree distribution like this (G is your graph):
list(cumulative_sum(nx.degree_histogram(G)))
Then plot the numbers, for example with matplotlib
import matplotlib.pyplot as plt
plt.plot(list(cumulative_sum(nx.degree_histogram(G))))
Aric