Cracking the social network code