make linkId unique
This commit is contained in:
parent
f892501f3b
commit
28cbef5bb6
@ -195,7 +195,9 @@ function showTq(d) {
|
||||
}
|
||||
|
||||
function linkId(d) {
|
||||
return d.source.node.nodeinfo.node_id + "-" + d.target.node.nodeinfo.node_id
|
||||
var ids = [d.source.node.nodeinfo.node_id, d.target.node.nodeinfo.node_id]
|
||||
|
||||
return ids.sort().join("-")
|
||||
}
|
||||
|
||||
function mkmap(map, newnodes, lostnodes, onlinenodes, graph, gotoAnything) {
|
||||
|
Loading…
Reference in New Issue
Block a user