Learn R Programming

RCy3 (version 1.2.0)

getAdjacentEdgeNames: getAdjacentEdgeNames

Description

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.

Usage

getAdjacentEdgeNames(graph, node.names)

Arguments

graph
An R graph
node.names
character strings

Value

Zero or more cy2-style edge names.

See Also

cy2.edge.names, selectEdges, getSelectedNodes, selectFirstNeighborsOfSelectedNodes

Examples

Run this code
  # 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"  

Run the code above in your browser using DataLab