Function fwdpp::ts::get_parent_ids

Function Documentation

std::pair<table_index_t, table_index_t> fwdpp::ts::get_parent_ids(const table_index_t first_parental_index, const table_index_t parent, const int did_swap)

Convert the index of a parent into the two node IDs.

Note

This function is trivial in implementation and is easily replaced if a more complex set of rules are needed

Parameters
  • first_parental_index: First index of possible parents for offspring

  • parent: Index of parent in the population

  • did_swap: This is the “Mendel” step.