anvaka / npmgraph.an

2d visualization of npm

Home Page:https://npm.anvaka.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: More easily find the leaf nodes

SgtPooki opened this issue · comments

For those of us concerned about our dependency graphs, it would be really useful to be able to more easily find the leaf nodes, or to filter nodes in the graph by their depth.

commented

could you use native functions graph.foreachNode or graph.foreachLinkedNode ?

Or

var degree = calculator.degreeCentrality(graph); degree.forEach( function (node) { console.log( node.value)  })