I am currently browsing a network where the nodes have a type list attribute, for example:
{"data": {"name": "b", "go": ["c", "d", "f"], "id": "n0"}, "group": "nodes"},
{"data": {"name": "a", "go": ["a", "b", "c"], "id": "n1"}, "group": "nodes"},
{"data": {"target": "n0", "source": "n1", "id": "e1"}, "group": "edges"}
Is it possible, using cytoscape.js, to select all nodes whose list attribute ('go' in the example) contains a specific value?
Sort of:
cy.elements('node[go.contains("b")]')
which node n1 will select ...
Thank you very much in advance
source
share