Skip to content
Graphviz (DOT) templates

Hasse Diagram — Divisor Lattice

Divisors of 12 as a lattice ordered by divisibility.

Template previewGraphviz (DOT)
Rendering…

Make it your own.

graph hasse {
  rankdir=BT;
  graph [bgcolor=transparent];
  node [shape=circle, style=filled, fillcolor="#dbeafe", fontname=Inter];
  "1"; "2"; "3"; "4"; "6"; "12";
  "1" -- "2"; "1" -- "3";
  "2" -- "4"; "2" -- "6";
  "3" -- "6";
  "4" -- "12"; "6" -- "12";
  { rank=min; "1" }
  { rank=max; "12" }
}