Learn R Programming

RCytoscape (version 1.22.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
  g <- makeSimpleGraph ()
  print (nodes (g))
  print (getAdjacentEdgeNames (g, 'A'))

Run the code above in your browser using DataLab