In [1]:
cd fbdata
In [2]:
import networkx as nx
We open a edge file with a social graph.
In [3]:
g = nx.read_edgelist('0.edges')
The hist function plots a histogram of an array of values.
In [4]:
hist(g.degree().values(), bins=20);