For animal mobility networks where every node is either a source or a destination (but not both), the $R_0$ of the network is exactly 0. Thus, the contribution of every node is also 0.
The code divides the individual contributions by the total $R_0 = 0$ to compute the relative contributions and returns NA.
For animal mobility networks where every node is either a source or a destination (but not both), the $R_0$ of the network is exactly 0. Thus, the contribution of every node is also 0. The code divides the individual contributions by the total $R_0 = 0$ to compute the relative contributions and returns NA.
Created on 2019-04-07 by the reprex package (v0.2.0).
Expected output: a constant value equal to 100/N, where N is the number of nodes.