Learn R Programming

RCytoscape (version 1.22.0)

setEdgeAttributes: setEdgeAttributes

Description

Transfer the named edge attribute from the the R graph (found in obj@graph) to Cytoscape. This method is typically called by displayGraph, which will suffice for most users' needs. It transfers the specified edge attributes, for all edges, from the cw@graph slot to Cytoscape.

Usage

setEdgeAttributes(obj, attribute.name)

Arguments

obj
a CytoscapeWindowClass object.
attribute.name
a string one of the attributes defined on the edges.

Value

None.

See Also

setEdgeAttributesDirect setNodeAttributes setNodeAttributesDirect

Examples

Run this code
  cw <- new.CytoscapeWindow ('setEdgeAttributes.test', graph=makeSimpleGraph())
  attribute.names = eda.names (cw@graph)

  for (attribute.name in attribute.names)
    result = setEdgeAttributes (cw, attribute.name)

Run the code above in your browser using DataLab