selectNodes {RedeR} | R Documentation

## 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, anchor=FALSE, nt=NULL)

### Arguments

`obj` | Object of RedPort Class.
`nodes` | Names of nodes (or containers) <string or array of strings>
`anchor` | Option to anchor selected nodes: this will prevent the `relax` function from applying the relaxing algorithm on the selected nodes <boolean>
`nt` | Option for nested nodes: to restrict searching to a specific container <string>

### Value

Mark nodes – which can be handled by other methods.

### Note

Prior calling this method invoke RedeR application via XML-RPC server (i.e. 'calld').

### Author(s)

Mauro Castro

### See Also

`RedPort`, `deleteSelectedNodes`

### Examples

    # Initialize igraph
    library(igraph)

    edges<-c("n1","n2","n1","n3","n1","n4","n1","n5","n1","n6","n1","n7")

    ## Not run:

      rdp <- RedPort()
      calld(rdp)
      addEdges(rdp, edges)
      selectNodes(rdp,c("n3","n4","n5"))
      updateGraph(rdp)

    ## End(Not run)

[Package RedeR version 1.42.0 Index]