make linkId unique

This commit is contained in:
Nils Schneider 2015-03-22 14:21:11 +01:00
parent f892501f3b
commit 28cbef5bb6

View file

@ -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) {