Networkx, Graph, Network Analysis, Twitter, Ml So Good.
degree_freq[deg] += 1 else: degree_freq[deg] = 1 x = sorted(degree_freq.keys()) y = [degree_freq[k] for k in x] return x, y x, y = get_frequencies(dict(retweets_G.out_degree(set(data.user_screen)))) plt.title(“out degree”) plt.loglog(x, y, linestyle=’None’, marker=’.’, ) plt.show() We end up with a