Ancestors and descendants for a given class/submission.