Added some convenient functions to socialgraph util