selectFirstNeighborsOfSelectedNodes | R Documentation |
Expand the selection by adding the first neighbors, in the Cytosape network, of the nodes currently selected (again, in the Cytoscape network). The R graph is unchanged
selectFirstNeighborsOfSelectedNodes (obj)
obj |
a CytoscapeWindowClass object. |
None.
Paul Shannon
clearSelection getSelectedNodeCount getSelectedNodes hideSelectedNodes getFirstNeighbors
cw <- new.CytoscapeWindow ('selectFirstNeighborsOfSelecteNodes.test', graph=makeSimpleGraph()) displayGraph (cw) layoutNetwork (cw) clearSelection (cw) selectNodes (cw, 'A') selectFirstNeighborsOfSelectedNodes (cw) print (sort (getSelectedNodes (cw))) # [1] "A" "B" "C"