signed_networks: structural_balance: metrics: faction: detect_community function written