GEDCOM to Graphviz
While looking for a utility to parse GEDCOM (Genealogy) files, I ran across Matthew Gray’s blog, where he talked about writing a ruby script to parse his GEDCOM file and produce a .dot file for Graphviz.
Matthew didn’t supply any code, but this seemed like an interesting thing to do, so I wrote a ruby script to more-or-less duplicate his results. Since my family tree is much larger than his, I added some pruning so that I could eliminate everyone except people directly related to me (or the “root” person). The result is shown here, or click on it to see a scalable PDF.
You can fetch the source to my ruby script if you’re interested.
I was actually looking for a way to compare my online family tree at TribalPages with the one I maintain using Reunion on my Mac. It’s a bit of a pain to ensure that they are in sync, so I wanted a way to ensure that I hadn’t missed anything.
Later, I found that TribalPages will let me re-upload a GEDCOM file and retain the associations between the pictures I’ve put there and the people. I’m not sure how they do that, but making that work seems to be the best way to keep it updated.
Update: I added a few more generations back, and updated the ruby script to let me prune all but blood relatives of the root person.