Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: simplify find_better_node_maybe
by checking first whether the candidate_node equals the current best node, the set of conditionals gets simplified and multiple previous conditions are combined into one. There are now three possible results: - move to the parent node. Happens whenever best_node==candidate_node and all mutations that lead to the candidate_node are also found in the private mutations of best_node - move to a child (candidate_node!=best_node). This only happens when there is at least one mutation shared. - stay: in this case, the final placing is either a direct child of candidate_node, or splits the branch leading to it.
- Loading branch information