Hello WikiTree Community,
I hope this message finds you all well. I've been working on a project involving the construction and analysis of family trees using data from WikiTree. Specifically, I'm trying to find common ancestors between different individuals.
I've converted the data into a directed graph structure, where nodes represent individuals and directed edges represent parent-child relationships. However, when testing my common ancestor finding algorithm on sibling pairs (e.g., Adams-2241 and Adams-2240), the algorithm isn't returning any common ancestors, which isn't logically possible for siblings.
I've checked my raw data, node consistency, edge consistency, direction of edges, graph connectivity, and my graph representation. I've also reviewed my algorithm to ensure it correctly traverses the graph and considers all possible paths.
Despite these checks, I'm still facing this issue. Here is the link to my code: https://github.com/Raulramf/Genealogy-LCA-Algorithm/blob/f5080bd780d0a991d5d5112eeb922e6f927953fb/main.py
I would greatly appreciate any insights or suggestions you might have. If you see anything in the code that could be causing this issue or if you have any advice on what I should check or try next, I would be very thankful.
Best regards.