forcegraph: show links with unknown nodes

This commit is contained in:
Milan Pässler 2016-02-27 14:43:27 +01:00
commit 97a00b6925
7 changed files with 36 additions and 24 deletions

View file

@ -24,7 +24,7 @@ define([], function () {
})
n.graph.links = data.graph.links.filter( function (d) {
return filteredIds.has(d.source.id) && filteredIds.has(d.target.id)
return !d.sourceid || (filteredIds.has(d.source.id) && filteredIds.has(d.target.id))
})
return n