So, is it better to store node ids or references in links?
Drawbacks of storing refs:
Need to create new node objects during crossover and update each ref
So if the links only contains the node ids, there is no need to iterate over all links and update the refs during crossover. I would only have to create/store the correct nodes.
So, is it better to store node ids or references in links?
Drawbacks of storing refs:
So if the links only contains the node ids, there is no need to iterate over all links and update the refs during crossover. I would only have to create/store the correct nodes.