create nograph get_friends method