You don’t have to stick to nodes and edges data.frames
, sigma.js accepts other formats.
You can create a graph from an igraph object.
data("lesmis_igraph") # load dataset
sigmajs() %>%
sg_from_igraph(lesmis_igraph) %>%
sg_settings(drawLabels = FALSE, drawEdgeLabels = FALSE)
You can also pass layout
, if ommitted the function will use layout_nicely
from the igraph
package.
You can also create graphs from gexf files.