public void deleteUser ( final Node user ) { Node userReplica , following ; for ( Relationship replica : user . getRelationships ( SocialGraphRelationshipType . REPLICA , Direction . INCOMING ) ) { userReplica = replica . getEndNode ( ) ; following = NeoUtils . getPrevSingleNode ( userReplica , SocialGraphRelationshipType . FOLLOW ) ; this . removeFriendship ( following , user ) ; } }
delete a user removing it from all replica layers of following users