Compute connectance of an interaction matrix.
getConnectance(A)
A | an interaction matrix |
---|
the connectance
The connectance is defined as \(c=E/(N*(N-1))\), where \(E\) is the number of realized arcs (the number of non-zero entries in the interaction matrix) and \(N*(N-1)\) the number of possible arcs. The diagonal (self-arcs) is excluded.