added a method for finding mediators based on node degree and several communities