Description Usage Arguments Value Author(s) See Also Examples
Node and edge attributes are usually added to a Cytoscape network by defining them on the graph used to construct a CytoscapeWindow. Once Cytoscape has been passed an attribute, however, it persists until you exit the application or delete it – using the Cytoscape graphical user interface, or by calling this method.
1 | deleteEdgeAttribute(obj, attribute.name)
|
obj |
a |
attribute.name |
a |
nothing
Paul Shannon
getEdgeAttributeNames addEdgeAttribute deleteNodeAttribute
1 2 3 4 5 6 7 8 9 10 | window.name = 'demo.deleteEdgeAttribute'
cw = new.CytoscapeWindow (window.name, graph=makeSimpleGraph ())
setDefaultEdgeLineWidth (cw, 5);
displayGraph (cw)
redraw (cw)
layoutNetwork(cw)
print (paste ("before: ", getEdgeAttributeNames (cw)))
deleteEdgeAttribute (cw, 'score')
print (paste ("after: ", getEdgeAttributeNames (cw)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.