Skip to content
Graphviz (DOT) templates

Kinship Diagram

Three-generation kinship tree with standard anthropology symbols.

Template previewGraphviz (DOT)
Rendering…

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"];
}