This doesn't surprise me. (clique meme)
I am a member of 1 clique of size 8
madcaptenor,
sirlightblade,
agoddess,
liquidsnake,
marissav,
unitarymatrix,
penniavaswen,
nectarfizzics
For those who are not quite as in touch with the LJ universe as I am, all eight of these people live on my hall (or lived there before the summer start). The four individuals
madcaptenor,
unitarymatrix,
sirlightblade,
agoddess live in four consecutive rooms.
I actually searched this manually at some point a few months ago; I wish I had the results saved. The results were qualitatively like this (there was a large clique, and it was entirely Floor Pi people) but I don't remember if they were quantitatively the same.
The algorithm used is a bit
imperfect, though, albeit for a large savings in running time. An algorithm that would find
all cliques including a certain user would be as follows:
input: member. output: set consisting of only that member; this is all the cliques of size 1 containing them.
input: all cliques of size n
for each clique, get friends of each member.
take intersection of those sets of friends. add each of those members to the clique of size n to get a new clique of size n+1.
eliminate duplicates (how?); if we don't do this as we go along, a clique of size n will occur n! times.
output: all cliques of size n+1
repeat until all cliques have been found.
Of course, this algorithm generates a huge tree; if I remember correctly, though, the tree prunes itself pretty quickly, in that most cliques of a certain size (say 4) don't extend to any cliques of size 5. But it has the potential to go crazy pretty fast; comments to the entry above claim it's NP-hard, which certainly sounds possible.