UNPKG

d3-dag

Version:

Layout algorithms for visualizing directed acylic graphs.

5 lines (4 loc) 98 B
// Count the number of nodes export default function() { return this.reduce((a) => a + 1, 0); }