getAdjacentEdgeNames

Share:

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

1
getAdjacentEdgeNames(graph, node.names)

Arguments

graph

An R graph

node.names

character strings

Value

Zero or more cy2-style edge names.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

cy2.edge.names, selectEdges, getSelectedNodes, selectFirstNeighborsOfSelectedNodes

Examples

1
2
3
4
5
6
7
8
  # 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"  

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.