I saw this example here http://www.d3noob.org/2013/03/d3js-force-directed-graph-example-basic.html I can understand it to an extent where I can make basic changes, but have not been able to do one thing specifically which is to highlight (change color) of all connected nodes. e.g If I mouse over node 1 or click on node 1,it should find all neighboring nodes and highlight the link paths by changing color.
I looked at clicking a node in d3 from a button outside the svg already answered but I couldn't make it work on this example.
I will be grateful if someone can help here and modify the existing code to achieve the searching of connected nodes/links.
I do apologize if this is really a very basic question and I am missing something really obvious here.