Genex v0.1.0 Genex.Support.Genealogy View Source

Implementation of a genealogy tree.

We use the Genealogy tree to model the history of the population from it's initialization to the end of the algorithm. The tree itself is an erlang digraph. An edge emanates from parent and is incident on child.

Link to this section Summary

Functions

Initializes a new Genealogy Tree.

Updates a Genealogy Tree with just a vertex.

Updates a Genealogy Tree with a vertex and it's corresponding parents.

Link to this section Functions

Initializes a new Genealogy Tree.

Returns Graph.

Link to this function

update(genealogy, chromosome)

View Source

Updates a Genealogy Tree with just a vertex.

Returns Graph.

Parameters

  • genealogy - Reference to a Genealogy Tree.
  • chromosome - Chromosome to add to Genealogy.
Link to this function

update(genealogy, chromosome, parent_a, parent_b)

View Source

Updates a Genealogy Tree with a vertex and it's corresponding parents.

Returns Graph.

Parameters

  • genealogy - Reference to a Genealogy Tree.
  • chromosome - Chromosome to add to genealogy.
  • parent_a - Parent Chromosome.
  • parent_b - Parent Chromosome.