Dash Cytoscape - returning node positions from layout

Hi,

I have stumbled upon the same problem: I would like to access the positions of the nodes after they where computed by some layout (for example, ‘cose-bilkent’).

I have tried to implement some solution based on the cited stack overflow post

But the problem with this solution is that I cannot create a ‘cytoscape’ (from cytoscape.js) object using already existing graph generated and rendered by Dash Cytoscape (and the answer shows how we can create a graph from the scratch using cytoscape.js). I also believe there is no such capability coming from ‘cytoscape.js’.

I was wondering if there is a solution for this problem from the Dash Cytoscape side.

1 Like