Genex v0.2.1 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
Add a generation of Chromosomes
to Genealogy Tree.
Exports the genealogy tree.
Initializes a new Genealogy Tree.
Updates a Genealogy Tree with just a vertex.
Updates a Genealogy Tree with a vertex and it's parents.
Link to this section Functions
Add a generation of Chromosomes
to Genealogy Tree.
Returns Graph
.
Parameters
genealogy
- Reference to a Genealogy tree.chromosome
- Chromosome to add.
Exports the genealogy tree.
Initializes a new Genealogy Tree.
Returns Graph
.
Updates a Genealogy Tree with just a vertex.
Returns Graph
.
Parameters
genealogy
- Reference to a Genealogy Tree.chromosome
- Chromosome to add to Genealogy.
Updates a Genealogy Tree with a vertex and it's parents.
Returns Graph
.
Parameters
genealogy
- Reference to a Genealogy Tree.child
- Chromosome to add.parent_a
- Child's parent.parent_b
- Child's parent.