x1 is a step-parent via the mother of x2 due to marriage with the latter's mother according to law/custom x3, where said motherhood is not necessarily biological.
x1 is a step-parent via the father of x2 due to marriage with the latter's father according to law/custom x3, where said fatherhood is not necessarily biological.
x1 is direct ancestor/mentorial-ancestor of x2 of order x3 (li; nonnegative integer) in graph/network of ancestry (family tree) x4 (defaults to maximal option), where x3 is the smallest possible number which is so constrained; x1 is the x3th-great-grandparent of x2.