Skip to content
Advertisement

Tag: cytoscape

How can I inject a variable in selectors in Cytoscape JS?

I am trying to visualize edges of a graph with different widths by selecting edges based on their id fields. Is it possible to use variables in selector queries? How can I achieve this behaviour? There are ways to work around this by repeating code, for example: I would however prefer a cleaner solution, preferably by using a variable instead

Advertisement