updateSelection Example - cytoscape/cytoscape-web GitHub Wiki

Format of response for updateSelection results

[
  {
    "action": "updateSelection",
    "data": {
              "nodes": [number], // Node IDs
              "edges": [number]  // Edge IDs
            }
  }
]

Example:

[
  {
    "action": "updateSelection",
    "data": {
              "nodes": [0, 15, 25],
              "edges": [3, 6]
            }
  }
]