getAdjacentEdgeNames: getAdjacentEdgeNames

Description Usage Arguments Value Author(s) See Also Examples

View source: R/RCy3.R

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
 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)

RCy3 documentation built on Nov. 17, 2017, 1:22 p.m.