If you paste code in this forum, please be sure to format it correctly by surrounding your code with lines consisting only of triple backquotes. Code Formatting
I searched above link as mentioned in your reply . But My requirement is different I want to highlight node in different style… I attached screen shot for your reference.
When a node is selected then that node will green …
Backward node’s links from selected node will be in blue and forward node’s links will be in green.
Only one node will select one time. as mentioned in image.