Description Usage Arguments Value Author(s) See Also Examples
Given a CytoscapeWindow containing a (possibly empty) graph, this method adds an edge. Edge attributes are added separately, via successive calls to sendEdgeAttributesDirect. The two nodes must already exist in the Cytoscape network.
1 | addCyEdge(obj, sourceNode, targetNode, edgeType, directed)
|
obj |
a |
sourceNode |
a |
targetNode |
a |
edgeType |
a |
directed |
a |
None.
Tanja Muetze, Georgi Kolishovski, Paul Shannon
sendEdgeAttributesDirect addCyNode
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
window.name <- 'demo addCyEdge'
cw <- CytoscapeWindow (window.name, graph=makeSimpleGraph ())
displayGraph (cw)
layoutNetwork(cw)
directed = TRUE
addCyEdge (cw, 'A', 'B', 'synthetic rescue', directed)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.