mergeNodes {RedeR} | R Documentation

## Merge nodes.

### Description

Merge nodes in an active RedeR session and build a new group.

### Usage

    mergeNodes(obj, nodes)

### Arguments

`obj` | Object of RedPort Class.
`nodes` | Node sequence <array of strings>

### Value

Add/change graph objects.

### Note

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

### Author(s)

Mauro Castro

### See Also

`RedPort`

### Examples

    # Initialize igraph
    library(igraph)

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

    ## Not run:

      rdp <- RedPort()
      calld(rdp)
      addNodes(rdp, nodes)
      mergeNodes(rdp,c("n2","n3","n4"))
      updateGraph(rdp)

    ## End(Not run)

[Package RedeR version 1.38.0 Index]