RuntimeWarnings thrown in centrality.py
Closed this issue · 1 comments
clbarnes commented
Specifically, provoked by the unit tests in modularity_derived_metrics etc. by the functions participation_coef_sign.pcoef
and diversity_coef_sign
.
aestrivex commented
Cause of error warning is matrix-wide divide by zero since these metrics are computed separately for positive and negative component. Errors out if the matrix has no negative component but does the math correctly anyway (i.e., returns 0).
Error warnings suppressed for these functions.