This measure calculated the reciprocity of an asymmetric matrix (directed graph).
Usage
recip_coef(
A,
diag = NULL,
method = c("total_ratio", "ratio_nonnull", "global")
)
Arguments
- A
A matrix
- diag
Whether to consider the diagonal of the matrix
- method
Whether to use
total_ratio
,ratio_nonnull
orglobal
reciprocity