Network graph using plot ly js

Hey guys,

So I am currently working on a network graph, and I successfully made following more or less this guide. Now here is the thing, I need to be able to make custom hovers and custom events for each node and edge (for the nodes is easy I guess), and would want to, for example, any time I double click on a node, all the nodes that are connected to it are highlighted, and also the same for edges.

Anybody done the same with plotly.js? Thank you!