☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

[networkx] Get value of selected node and adjacency node

Community Supportbokeh
blckvnm
blckvnm

Hi,

Is there a way to get the node data(source, target value) of selected node and adjacency node?
Then, I want to show the values somewhere else out of the hover tool. (i.e datatable, textarea, etc)

⌁   Link to post
Bryan
Bryan

There is not currently a direct way. The NodesAndLinkedEdges hit-test policy will set a selection on the edge renderer data source, which you could respond to and manually look up the nodes for each edge. A NodesAndAdjacentNodes hit-test policy seems like a reasonable ask for future development (and possibly a good first issue for a new contributor). Please feel free to open a new GitHub Issue.

⌁   Link to post

End of archived discussion · Replies are disabled