Return a tree with a powerlaw degree distribution.
Parameters : | n : int,
gamma : float
seed : int, optional
tries : int
|
---|
Notes
A trial powerlaw degree sequence is chosen and then elements are swapped with new elements from a powerlaw distribution until the sequence makes a tree (#edges=#nodes-1).