calc_network_R function

Calculate the reproduction number (RR) for a (heterogeneous) network