The codebase works by assuming all links in a Wikipedia infobox table row are relevant to that keyword. This is not always the case.
Specific issue: sometimes spouses are linked in the "Issue" section, as the other parent. This results in the spouse being registered as a child as well.
For example, this is a portion of Berenice I of Egypt's wiki page:

This is what it looks like on the graph:

Suggested fix: Regex out lines with keyword with