import snap G = snap.GenPrefAttach(100000, 3) G.PlotInDegDistr("pref-attach", "PrefAttach(100000, 3) in Degree")