Description Usage Arguments Value Author(s) See Also Examples
Returns a non-redundant ('uniquified') list of all of the first neighbors of the supplied list of nodes.
1 | getFirstNeighbors(obj, node.names)
|
obj |
a |
node.names |
a |
A list of node names.
Paul Shannon
selectNodes selectFirstNeighborsOfSelectedNodes
1 2 3 4 5 6 | cw <- new.CytoscapeWindow ('getFirstNeighbors.test', graph=makeSimpleGraph())
displayGraph (cw)
redraw (cw)
layoutNetwork(cw, 'jgraph-spring')
print (getFirstNeighbors (cw, 'A'))
selectNodes (cw, getFirstNeighbors (cw, 'A')) # note that A is not selected
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.