Return a tree with a powerlaw degree distribution.
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).
Parameters:
n: the number of nodes
gamma: exponent of power law is gamma
tries: number of attempts to adjust sequence to make a tree
seed: seed for random number generator (default=None)