Cytoscape: How to obtain node / edgesData WITHOUT using tapNode?

Hi, I’m using tapNode to create and apply a stylesheet to a Dash Cytoscape graph. Specifically, the data returned by tapNode includes information about edges adjacent to the selected (‘tapped’) node (in ‘edgesData’), which is crucial.

I would like to create and apply the same stylesheet using an alternative input: the ‘row_id’ value of an active_cell from a Dash datatable, which will correspond to the ‘id’ of a node in the graph.

Is there a way to get the same data as that returned by tapNode, but by querying the graph directly (using the ‘id’ of the desired node)?

Any help very gratefully recieved! Thank you in advance, community :slight_smile: