Family trees are graphs. Why do we still draw them as trees?

(orbyian.com)

16 points | by xerratus 21 hours ago ago

12 comments

  • xerratus 21 hours ago ago

    I've been experimenting with canvas-based interfaces for a few different projects, and family relationships turned out to be a particularly interesting problem.

    A lot of the development time on Orbyian has gone into figuring out how to navigate the graph rather than simply how to render it. Things like maintaining spatial orientation, progressively expanding relationships, and changing whose perspective you're viewing the family from.

    I'm curious whether others here have experimented with similar approaches to graph navigation, particularly outside of genealogy.

    Happy to answer any questions about the implementation.

  • sophiek42 21 hours ago ago

    This is one of those things that seems obvious after someone builds it. The animation showing how you're related to someone is particularly nice. Much more useful than just highlighting a node.

    • xerratus 21 hours ago ago

      Thanks! That ended up being one of my favorite features. Originally, finding someone was more about getting to their location on the canvas, but seeing how you get there turned out to be much more interesting.

  • _isaacroberts 21 hours ago ago

    This looks visually impressive but considerably less information-dense than a traditional family tree. Why waste so much space on circles?

    • xerratus 21 hours ago ago

      Information density is definitely something I'm sacrificing with this approach. I'm optimizing more for exploration than for displaying as much information as possible at once. If I were building something primarily for printing or comparing generations, I'd probably make very different design decisions.

  • madichef729 21 hours ago ago

    My mother has been doing genealogy for 20 years. I could see her spending hours playing around with something like this.

    • xerratus 21 hours ago ago

      I'd be curious to hear what someone with that much genealogy experience thinks of it. I'm approaching this primarily from a software and UI perspective, so there are probably things experienced genealogists would notice immediately that I haven't considered.

  • pseudohadamard an hour ago ago

    Unless it's the Spanish Habsburg family tree, which is best drawn as a Venn diagram.

  • rmitchell407 21 hours ago ago

    Curious about the implementation. Is this SVG, Canvas, or WebGL? Are you using an existing graph visualization library?

    • xerratus 21 hours ago ago

      It's using the browser's 2D Canvas API. A big part of the project has been experimenting with how the layout and interactions work together. I wanted the canvas to feel more like a space you navigate than a diagram you manipulate.

  • arjunbyte09 21 hours ago ago

    Trees are graphs. The title makes this sound like some profound computer science revelation when it really isn't.

    • xerratus 21 hours ago ago

      Fair criticism of the title. The interesting part to me isn't the classification of the data structure. It's how choosing a particular representation influences the way we interact with the underlying data.