Learn R Programming

RedeR (version 1.20.0)

selectNodes: Select nodes.

Description

Method to select nodes in an active RedeR application. Selected objects are put available for other methods. It can be done interactively as well.

Usage

selectNodes(obj, nodes, nt=NULL)

Arguments

obj
Object of RedPort Class.
nodes
Names of nodes (or containers)
nt
Optional for nested nodes: to restrict searching to a specific container

Value

Mark nodes -- which can be handled by other methods.

See Also

RedPort, deleteSelectedNodes

Examples

Run this code
rdp <- RedPort('MyPort') 
edges<-c("n1","n2","n1","n3","n1","n4","n1","n5","n1","n6","n1","n7")

## Not run: 
# 
#   calld(rdp)  
#   addEdges(rdp, edges)
#   selectNodes(rdp,c("n3","n4","n5"))
#   updateGraph(rdp)
# ## End(Not run)  

Run the code above in your browser using DataLab