UNPKG

d3-dag

Version:

Layout algorithms for visualizing directed acylic graphs.

7 lines (6 loc) 164 B
// Call a function on each link in the dag export default function(func) { let i = 0; this.each((n) => n.eachChildLinks((l) => func(l, i++))); return this; }