setNodeShapeDirectR Documentation

setNodeShapeDirect

Description

In the specified CytoscapeWindow, set the shape of the specified node.

Usage

setNodeShapeDirect(obj, node.names, new.shape)

Arguments

obj a CytoscapeWindowClass object.
node.names one or more String objects.
new.shape a String object, one of the allowed values returned by getNodeShapeDirects.

Value

None.

Author(s)

Paul Shannon

See Also

getNodeShapes

Examples

  cw <- new.CytoscapeWindow ('setNodeShapeDirect.test', graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork (cw, 'jgraph-spring')
  getNodeShapes (cw)
  setNodeShapeDirect (cw, 'A', 'triangle')
  redraw (cw)