def random_powerlaw_tree(n, gamma=3, seed=None, tries=100):
 seq = random_powerlaw_tree_sequence(n, gamma=gamma, seed=seed, tries=tries)
 G = degree_sequence_tree(seq)
 G.name = ('random_powerlaw_tree(%s,%s)' % (n, gamma))
 return G

def random_powerlaw_tree ( n , gamma = 3 , seed = None , tries = 100 ) : seq = random_powerlaw_tree_sequence ( n , gamma = gamma , seed = seed , tries = tries ) G = degree_sequence_tree ( seq ) G . name = ( 'random_powerlaw_tree(%s,%s)' % ( n , gamma ) ) return G
returns a tree with a power law degree distribution .