Layout your graph.
sg_layout(sg, directed = TRUE, layout = igraph::layout_nicely, save_igraph = TRUE, ...) sg_get_layout(nodes, edges, directed = TRUE, layout = igraph::layout_nicely, save_igraph = TRUE, ...)
An object of class
Whether or not to create a directed graph, passed to
Whether to save the
Any other parameter to pass to
Nodes and edges as prepared for sigmajs.
sg_get_layout returns nodes with
The package uses
igraph internally for a lot of computations the
allows saving the object to speed up subsequent computations.
sg_layout layout your graph.
sg_get_layout helper to get graph's