updateGraph {RedeR} | R Documentation

## Update RedeR graphs.

### Description

This function updates an active RedeR application session.

### Usage

    updateGraph(obj, g=NULL)

### Arguments

`obj` | Object of RedPort Class.
`g` | An optional igraph object. If provided, 'g' will be updated with the graph layout displayed in the RedeR interface. Note: 'g' must be the same igraph object sent to the RedeR interface by the `addGraph` function.

### Value

An update igraph object.

### Note

Prior calling this method make sure that there is an active RedeR session.

### Author(s)

Mauro Castro

### See Also

`RedPort`

### 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)
      updateGraph(rdp)

    ## End(Not run)

[Package RedeR version 1.42.0 Index]