to_json: Converts to json representation

View source: R/to_json.R

to_jsonR Documentation

Converts to json representation

Description

This is a nice function that takes a graph structure and converts it to a json format for use on the web.

Usage

to_json(graph, file, forJS = FALSE)

Arguments

graph

An object of type igraph

file

A file to write the output to (default missing)

forJS

A flag to indicate putting a 'var myjson = ' part the file.

Value

A textual json representation of the graph

Author(s)

Rodney J. Dyer <rjdyer@vcu.edu>


dyerlab/popgraph documentation built on July 22, 2022, 5:42 p.m.