Add nodes and edges to a
sg_nodes(sg, data, ...) sg_edges(sg, data, ...) sg_edges2(sg, data) sg_nodes2(sg, data)
An object of class
Data.frame (or list) of nodes or edges.
Each node must include a unique id, ideally the user passes
y, if they are not passed then they are randomly generated.
Each edge also must include a unique
id as well as two columns named
node also takes a SharedData.
Functions ending in
2 take a list like the original sigma.js JSON.
Other functions take the arguments described above.