It’s a problem with the export.
I didn’t realise that anyone was using this export. I wrote it as a proof of concept for someone who was interested in using graph database to analyse Gramps data.
The problem is that the export only looks at parent families of every person when writing the edges. It needs to consider all families, but then it also needs to be careful to avoid writing duplicate edges.