Learn R Programming

RCytoscape (version 1.22.0)

setEdgeLabelRule: setEdgeLabelRule

Description

Specify the edge attribute to be used as the label displayed on each edge. Non-character attributes are converted to strings before they are used.

Usage

setEdgeLabelRule(obj, edge.attribute.name)

Arguments

obj
a CytoscapeWindowClass object.
edge.attribute.name
the edge attribute whose values will, when this rule is applied, determine the edgeLabel on each edge.

Value

None.

Examples

Run this code
  cw <- new.CytoscapeWindow ('setEdgeLabelRule.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork(cw, 'jgraph-spring')
  redraw (cw)
  setEdgeLabelRule (cw, 'edgeType')

Run the code above in your browser using DataLab