cd fbdata import networkx as nx g = nx.read_edgelist('0.edges') hist(g.degree().values(), bins=20);