barabasiAlbert rewrite