It’s relatively challenging since there could be multiple heirs. The first step when creating a family tree is to identify the direct line of descent from a current monarch or head of state and eliminate non-royal branches that may lead to conversations in marriage/friendship between two different generations.