Permuting web and social graphs