| initNodeAttribute | R Documentation | 
Create the node attribute slot that the Bioconductor graph class requires, including a default value, and then specifying what the base type (or 'class') is – 'char', 'integer', or 'numeric' – which is needed by RCytoscape. This method converts these standard R data type names, to the forms needed by Cytoscape.
initNodeAttribute(graph, attribute.name, attribute.type, default.value)
| graph | a Bioconductor graphobject. | 
| attribute.name | a string, the name of the new node
attribute. | 
| attribute.type | a string, either 'char', 'integer', or 'numeric' | 
| default.value | something sensible, of the right type | 
Returns the modified graph.
Paul Shannon
initEdgeAttribute makeSimpleGraph
  g = new ('graphNEL', edgemode='directed')
  g = initNodeAttribute (g, 'lfc', 'numeric', 1.0)