| getSelectedNodes | R Documentation |
Retrieve the identifiers of all the nodes selected in the current graph.
getSelectedNodes(obj)
obj |
a CytoscapeWindowClass object. |
A list of character strings.
Paul Shannon
cw <- new.CytoscapeWindow ('getSelectedNodes.test', graph=makeSimpleGraph())
displayGraph (cw)
layoutNetwork (cw, 'jgraph-spring')
redraw (cw)
# in Cytoscape, interactively select two nodes, or
selectNodes (cw, c ('A','B'))
getSelectedNodes (cw)
# [1] "A" "B"