tgvaughan / MASTER

A versatile simulation engine for stochastic population dynamics models.
http://tgvaughan.github.io/MASTER
GNU General Public License v3.0
22 stars 8 forks source link

Left/right ordering of child nodes not guaranteed in coalescent tree generation #19

Closed tgvaughan closed 9 years ago

tgvaughan commented 11 years ago

This is due to the use of the keys of a HashMap to represent the group of lineages involved in a reaction. As the key set has no guaranteed iteration order, the processing order can change, even when the RNG seed is fixed.

This isn't a major issue, but can cause confusing behaviour.

tgvaughan commented 9 years ago

This was fixed a while ago through the use of LinkedHashMap.