Description Usage Arguments Value Author(s) See Also Examples
Given one or more node names, this method returns the 'cy2-style' names of the immediately adjacent edges – suitable for being passed, for instance, to selectEdges, and thereby extending the selection.
1 | getAdjacentEdgeNames(graph, node.names)
|
graph |
An R graph |
node.names |
character strings |
Zero or more cy2-style edge names.
Tanja Muetze, Georgi Kolishovski, Paul Shannon
cy2.edge.names, selectEdges, getSelectedNodes, selectFirstNeighborsOfSelectedNodes
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
g <- makeSimpleGraph ()
print (nodes (g))
# [1] "A" "B" "C"
print (getAdjacentEdgeNames (g, 'A'))
# [1] "A (phosphorylates) B" "C (undefined) A"
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.