D3-Force updating parameters after initializing graph
问题 In D3 v4 with the force module, how do you update the parameters of the simulation once you have initialized the graph? More precisely, I am trying to change the .forceLink and .forceManyBody of the force directed graph when the user clicks one of its nodes. var node = svg .append("g") .attr("class", "gnodes") .selectAll(".node") .data(graph.nodes) .enter() .append("g") .attr("class", "node") .on('dblclick', connectedNodes); //calls for change in simulation parameters So far I have been able