UNPKG

d3-dag

Version:

Layout algorithms for visualizing directed acylic graphs.

5 lines (4 loc) 140 B
// Return the roots of the current dag export default function roots() { return this.id === undefined ? this.children.slice() : [this]; }