Pedigree analysis for Bandit

Use
generations for calculation