It depends on the specifics of your family tree, but to build a family tree, you will typically need information on parent-child relationships, sibling relationships, and perhaps relationships between spouses. To represent this information, you can use a directed graph, where each person is a vertex and each relationship is an edge connecting the vertices.

For example, you can have a directed edge from parent to child, from spouse to spouse, and from sibling to sibling. To go back multiple generations, you can keep following the edges from one vertex to another until you reach the desired number of generations.

Note that, depending on the complexity of your family tree and the information you have, you may need to incorporate additional relationships and edges, such as step-parent or step-sibling relationships, into your graph representation.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence