It basically determines common friends between two (someone on your friends list and you) or more (friend w, friend x, ... friend z, and you) LiveJournal bloggers, as well as each one's 'other' friends.
moreFriends is written in PHP. If you need the source, just drop a comment.