Learn R Programming

popgraph (version 1.4)

to_json: 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)

Arguments

graph
An object of type igraph
file
A file to write the output to (default missing)

Value

A textual json representation of the graph