Closed Lumphie closed 7 years ago
Marked as FIX_ISSUE_249
assert fails here:
void sado::add_edges_impl_2(
const attractivenesses& as,
genotype_graph& g,
const double min_attractiveness
)
{
assert(is_valid(as));
It is right: attractivenesses
is a matrix that should have a diagonal of zeroes, as individuals have a zero probability to mate with themselves.
This seems to work. Only one thing I overlooked. The model is able to give output every X generations. So there won't be any parents in generation 0 for individuals in generation X if X does not equal 1. Easily fixed by just giving output every generation, but no so easily fixed if we want to keep the flexible output.
I was thinking about using connected components and filtered graphs