sg_from_gexf {sigmajs}R Documentation

Graph from GEXF file

Description

Create a sigmajs graph from a GEXF file.

Usage

sg_from_gexf(sg, file, sd = NULL)

Arguments

sg

An object of class sigmajsas intatiated by sigmajs.

file

Path to GEXF file.

sd

A SharedData of nodes.

Value

A modified version of the sg object.

Examples

## Not run: 
gexf <- "https://gephi.org/gexf/data/yeast.gexf"

sigmajs() %>% 
  sg_from_gexf(gexf) 

## End(Not run)


[Package sigmajs version 0.1.5 Index]