I've looked at the Elgg API and I saw that the ElggUser class contains the function:
ElggUser.addFriend($friend_guid)
Is there any elegant way to add friendship hierarchy like in facebook.
For examle, if I want to add my class mate John, I prefer to add him as one of my 'class mates' friends, by using something like:
ElggUser.addFriend($friend_guid, $my_friends_group_guid)
Thanks,
Vova