Disable edges from_networkx graph

Hello,

I’m currently trying to plot a graph from networkx with around 2k nodes. The edges makes it unreadable so I used a glyph to hide them (line_alpha=0) until the node associated with them is clicked. The issue with this solution is that the graph is really laggy so I was wondering if there’s another solution where the lines are plotted only when the node is clicked (hence they are non existent at first and not hidden like I do right now).

Thank you in advance.

It should be possible to provide the edge renderer with an empty data source and then just populate it with just the relevant edges data when a node is highlighted.