duplicateGraph {RedeR} | R Documentation

## Duplicate graphs in RedeR application.

### Description

Method to duplicate graphs and subgraphs of a network.

### Usage

    duplicateGraph(obj, ...)

### Arguments

`obj` | Object of RedPort Class.
`...` | Additional arguments passed to RedeR application.

### Details

Additional arguments:

isToCopyEdges

  Logical value, whether to include edges to the copy (default = TRUE).

isDefaultCopy

  Logical value, whether to duplicate the complete network or to copy only the original graph (default = TRUE).

nodes

  Optional: nodes to be duplicated <array of strings> (p.s. in this case, isDefaultCopy=TRUE).

### Value

Duplicates graphs in RedeR app.

### Author(s)

Mauro Castro

### See Also

`addGraph`

### Examples

    # Initialize igraph
    library(igraph)

    ## Not run:

    rdp <- RedPort()
    calld(rdp)

    ###

    g1 <- graph.lattice(c(3,3,3))
    addGraph( rdp, g1, layout.kamada.kawai(g1) )
    duplicateGraph(rdp)

    ## End(Not run)

[Package RedeR version 1.38.0 Index]