I have a graph in networkx and im trying to plot the degree distribution. So i wrote the following code:
g = nx.read_edgelist(\'graph.txt\', create_using= nx.