Querying Graphs with Gremlin

Please help me with the query on Gremlin lang I have a graph with 2 types of vertices: User and Group. I need to find friends of ‘U1’. If users have edges ( member or invite ) to ‘Group A’ need to …