Define dash cystoscope concentric function

Hi,

based on Cystoscape docs, I can change the function the determines the how concentric layout works. the way the docs present is through the layout option, ‘concentric’ : function(node)

i used the following function

def func(node):
return nx.degree_centrality(G)[node]

and i then used it in the layout:

cyto.Cytoscape( id=‘org-chart’, layout={‘name’: ‘concentric’, ‘concentric’ : func }

but it didn’t work out. There was an error and the whole app didn’t work.
I tried func(node) instead of only func but of course i got an error because ‘node’ is not defined.
How can we modify the function of the concentric layout?

Thanks

Thanks