Description Usage Arguments Value Author(s) See Also Examples
Given a CytoscapeWindow containing a (possibly empty) graph, this method adds a node. Node attributes are added separately, via successive calls to sendNodeAttributesDirect. The new node must be unique – not already a member of the graph as known to Cytoscape.
1  | addCyNode(obj, nodeName)
 | 
obj | 
 a   | 
nodeName | 
 a   | 
None.
Paul Shannon
sendNodeAttributesDirect addCyEdge
1 2 3 4 5 6  |   window.name <- 'demo addCyNode'
  cw <- new.CytoscapeWindow (window.name, graph=makeSimpleGraph ())
  displayGraph (cw)
  addCyNode (cw, 'A NEW NODE')
  redraw (cw)
  layoutNetwork(cw)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.