getAllNestLevels: Given the a list representing the parents of each clone, return a vector specifying how deeply each clone is nested
Description
Given the a list representing the parents of each clone, return a vector specifying how deeply each clone is nested
Usage
getAllNestLevels(parents)
Arguments
parents
An integer vector specifying parental relationships between clones
Value
An integer vector representing how deeply each subclone is nested