getSelectedNodeCount | R Documentation |
Returns the number of node currently selected.
getSelectedNodeCount(obj)
obj |
a CytoscapeWindowClass object. |
An integer.
Paul Shannon
cw <- new.CytoscapeWindow ('getSelectedNodeCount.test', graph=makeSimpleGraph()) displayGraph (cw) layoutNetwork (cw, 'jgraph-spring') redraw (cw) # in Cytoscape, interactively select two nodes, or selectNodes (cw, c ('A','B')) getSelectedNodeCount (cw) # [1] 2