1 generation consists of parents, children and spouses.
so 1 generation: father, mother, spouses, and children
2 generation: For each person in 1 generations you get father, mother, spouses, and children unless already added. (grandparents, siblings, grandchildren, parents other spouses, children's spouses, spouses parents, spouses other children,...)