\name{addCyEdge} \alias{addCyEdge} \alias{addCyEdge,CytoscapeWindowClass-method} \title{addCyEdge} \description{ Given a CytoscapeWindow containing a (possibly empty) graph, this method adds a edge. Edge attributes are added separately, via successive calls to sendEdgeAttributesDirect. The two nodes must already exist in the Cytoscape network. } \usage{ addCyEdge(obj, sourceNode, targetNode, edgeType, directed) } \arguments{ \item{obj}{a \code{CytoscapeWindowClass} object. } \item{sourceNode}{a \code{character string} object. } \item{targetNode}{a \code{character string} object. } \item{edgeType}{a \code{character string} object. } \item{directed}{a \code{boolean} object. } } \value{ None. } \author{Paul Shannon} \seealso{ sendEdgeAttributesDirect addCyNode } \examples{ window.name <- 'demo addCyEdge' cw <- new.CytoscapeWindow (window.name, graph=makeSimpleGraph ()) displayGraph (cw) directed = TRUE addCyEdge (cw, 'A', 'B', 'synthetic rescue', directed) redraw (cw) layoutNetwork(cw) } \keyword{graph}