So I have a force directed graph, and I would like that when I hover a node, all the connected nodes and links gets highlighted ( the stroke color would change until the mouse would leave the node )
This would help the navigation of really crowded graphs.
How can I find connected links ( and connected nodes ) when inside of the on() function ?
var nodeCircle = node.append("circle")
.on("mouseover",function(d) {
[...] //Find attached link, and node, and force a stroke color
})
.on("mouseout", function(d) {
[...] //Restore previous color
});