here is my code and the text file is here
import networkx as nx
import pylab as plt
webg = nx.read_edgelist('web-graph.txt',create_using=nx.DiGraph(),nodetype=int)
in_degrees = webg.in_degree()
in_values = sorted(set(in_degrees.values()))
in_hist = [in_degrees.values().count(x)for x in in_values]
I want to plot degree distribution web graph how can i change dict to solve?
dictmethods behave differently in Python 3 vs Python 2.