Gantt chart scheduling app
function getScheduleFromGantt(gantt) { const tasks = {} const edges = [] for (const {name, start, end, children} of gantt) { tasks[name] = {start, end} for (const child of children) { edges.push([name, child]) } } return tasks, edges }