ENH: preferential attachment model now get the number of existing nodes to connect to
FIX: __getitem__ in sparse graph did not work properly for single index