functionalities for community detection added