Counts the number of migrations between pairs of demes, and coalescences within each deme
Usage
NodeCountC(ED, n_deme, node_indices)
Arguments
- ED
NumericMatrix Extended data object representing structured phylogeny
- n_deme
int Number of demes modelled under ED
- node_indices
NumericVector Vector giving row numbers in ED for node labels
Value
List containing matrix m with element (i,j) giving the number of migrations i -> j backwards in time, and a vector c with element i giving the number of coalescences occurring in deme i