Tracking Genealogy in a Genealogy Tree
Sometimes, especially in evolutionary simulations, it’s useful to track the genealogy of the evolution. Genealogy is the study of families and family histories. In the context of genetic algorithms, genealogy is the history of a chromosome’s lineage. It allows you to trace the ancestry of a specific chromosome—all the way back to the initial population.
To track genealogy, you’ll take advantage of the libgraph[5] package. libgraph is an Elixir package for creating graph structures. libgraph offers a ton of convenient features for creating, manipulating, and querying graphs. If you want to learn more about the beauty of graphs in Elixir, check out Elixir for Graphs [Ham20].
You’ll use libgraph to implement ...
Get Genetic Algorithms in Elixir now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.