codes for community structure detection in complex networks with partial background information