How many times to reorder atoms during normalisation?
js-ojus opened this issue · 1 comments
js-ojus commented
When a molecule is being normalised, an initial reordering of atoms is performed based on descending secondary hash. Normalised IDs are assigned. A reordering is performed to take into account the order of neighbours. Normalised IDs are assigned, again.
Question: is this enough? Wouldn't it sort once per neighbour, effectively requiring more iterations (probably up to a maximum of 6, practically)?
js-ojus commented
Beyond 3 iterations, there seems to be a trivial swapping occurring, leading to an infinite loop. So, I have limited the number of iterations to 3. This can be re-looked at, should there arise a need.