toCytoscape {paxtoolsr} | R Documentation

## Convert igraph to Cytoscape JSON

### Description

Convert igraph to Cytoscape JSON

### Usage

    toCytoscape(igraphobj)

### Arguments

`igraphobj` | an igraph object

### Value

a JSON object

### Note

From https://github.com/idekerlab/cy-rest-R/blob/17f748426bb5e48ba4075b9d97318ad582b250da/utility/cytoscape_util.R

### Examples

    library(igraph)
    g <- barabasi.game(20)
    json <- toCytoscape(g)

[Package paxtoolsr version 1.28.0 Index]