[networkx] Get value of selected node and adjacency node


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)

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.

Thank you for the explanation. I just added a new GitHub Issue.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.