signed_networks: structural_balance: metrics: edge: minor refactoring