signed_networks: structural_balance: faction: updated code to include pn_matrix