My problem is same this, please see this fiddle.
I remove a node, and add a new node in d3 graph, but I still can see the removed node in graph.
The "ios" is added but dont see in the "svg". What's wrong?
function dynamicAddNodes() {
var updatedata = {
"name":"ios",
"NumOccurrences":"500",
"color":"green",
"x":0,
"y":1
}
data.nodes.pop();
data.nodes.push(updatedata);
restart();
}