The family tree of Polish and Lithuanian monarchs reflects a complex history of division, alliances, and shifting political power across centuries.