You could implement this using a simple class structure:
public class Person {
private List<Person> parents;
private List<Person> children;
...
public void addParent(Person parent) {
this.getParents().add(parent);
parent.getChildren().add(this);
}
public void addChild(Person child) {
this.getChildren().add(child);
child.getParents().add(this);
}
}
Obviously you will need to implement the getters and setters for the lists but that will allow you to construct your family tree. Also you may wish to limit the parent list to 2 entries or change this for :
private Person mother;
private Person father;
instead.
Hope this gets you started.
