weight for community detection