I would like to add/delete nodes based on user interaction with a given network. Adding is working fine with the following type of api call:
CyNode ntmp = Cytoscape.getCyNode(NewNodeID, true);
current_network.addNode(ntmp);
However, when I want to delete a node using:
current_network.removeNode(clickedNode.getRootGraphIndex(), true);
and later call:
List<Node> nodeList = Cytoscape.getCyNodesList();
the "removed" node is still found in nodeList. Do I need to somehow refresh the network between removeNode() and getCyNodeList() for it to register the removal? Or is there a different api call for total removal? The documentation
found here makes it sound like removeNode() is what I want...
P.S. is this type of question most appropriate for here or the developer's list?