A fan
A radial strategy with a sweep of 120 degrees. Each child is at the middle of an equal part of the arc.
Edit it
6 boxes, 5 edges. The audit finds no defect.
The input
The same layout in TypeScript. The input is plain data, so it can come from JSON.
import { layout } from "ireko";
const input = { "root": { "id": "source", "layout": { "type": "radial", "startAngle": 30, "sweep": 120 }, "children": [ { "id": "ray-1" }, { "id": "ray-2" }, { "id": "ray-3" }, { "id": "ray-4" }, { "id": "ray-5" } ] }};
const result = layout(input, {"nodeSize":{"width":72,"height":32}});