forcegraph: show links with unknown nodes
This commit is contained in:
parent
9f48cb1f3b
commit
97a00b6925
7 changed files with 36 additions and 24 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue