Skip to content
Graphviz (DOT) templates

Kinship Diagram

Three-generation kinship tree with standard anthropology symbols.

Template previewGraphviz (DOT)
k GF Grandfather GM Grandmother GF->GM marriage M Mother GF->M parent F Father U Uncle GF->U GM->M GM->U M->F marriage Ego Ego (you) M->Ego Sib Sister M->Sib F->Ego F->Sib Cou Cousin U->Cou

What this template contains

Graph
Directed
Edges
12
Source
24 lines

Make it your own.

digraph k {
  rankdir=TB;
  graph [bgcolor=transparent];
  node [fontname=Inter, fontsize=10];

  GF [label="Grandfather", shape=triangle, style=filled, fillcolor="#dbeafe"];
  GM [label="Grandmother", shape=circle, style=filled, fillcolor="#fce7f3"];
  M [label="Mother", shape=circle, style=filled, fillcolor="#fce7f3"];
  F [label="Father", shape=triangle, style=filled, fillcolor="#dbeafe"];
  U [label="Uncle", shape=triangle, style=filled, fillcolor="#dbeafe"];
  Ego [label="Ego (you)", shape=doublecircle, style=filled, fillcolor="#fef3c7"];
  Sib [label="Sister", shape=circle, style=filled, fillcolor="#fce7f3"];
  Cou [label="Cousin", shape=triangle, style=filled, fillcolor="#dbeafe"];

  GF -> M [label="parent"];
  GM -> M;
  GF -> U;
  GM -> U;
  GF -> F [style=invis];

  M -> Ego;  F -> Ego;
  M -> Sib;  F -> Sib;
  U -> Cou;

  edge [arrowhead=none, color="#dc2626", style=dashed];
  GF -> GM [label="marriage"];
  M -> F [label="marriage"];
}