setNodeAttributes: setNodeAttributes

Description Usage Arguments Value Author(s) See Also Examples

Description

Transfer the named node 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 node attributes, for all nodes, from the cw@graph slot to Cytoscape.

Usage

1
setNodeAttributes(obj, attribute.name)

Arguments

obj

a CytoscapeWindowClass object.

attribute.name

a string one of the attributes defined on the nodes.

Value

None.

Author(s)

Paul Shannon

See Also

setNodeAttributesDirect setEdgeAttributes setEdgeAttributesDirect sendEdges sendNodes displayGraph

Examples

1
2
3
4
5
  cw <- new.CytoscapeWindow ('setNodeAttributes.test', graph=makeSimpleGraph())
  attribute.names = noa.names (cw@graph)

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

RCytoscape documentation built on Nov. 17, 2017, 10:52 a.m.