sigmajs (version 0.1.2)

sg_add_nodes_p: Add nodes or edges

Description

Proxies to dynamically add *multiple* nodes or edges to an already existing graph.

Usage

sg_add_nodes_p(proxy, data, ..., refresh = TRUE, rate = "once")

sg_add_edges_p(proxy, data, ..., refresh = TRUE, rate = "once")

Arguments

proxy

An object of class sigmajsProxy as returned by sigmajsProxy.

data

A data.frame of nodes or edges.

...

any column.

refresh

Whether to refresh the graph after node is dropped, required to take effect, if you are running force the algorithm is killed and restarted at every iteration..

rate

Refresh rate, either once, the graph is refreshed after data.frame of nodes is added or at each iteration (row-wise). Only applies if refresh is set to TRUE.

Examples

Run this code
# NOT RUN {
demo("add-nodes", package = "sigmajs")
demo("add-edges", package = "sigmajs")
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace