Clear all nodes and edges from the graph or kills the graph.
sg_clear_p(proxy, refresh = TRUE)sg_kill_p(proxy, refresh = TRUE)
sg_kill_p(proxy, refresh = TRUE)
An object of class sigmajsProxy as returned by sigmajsProxy.
sigmajsProxy
Whether to refresh the graph after node is dropped, required to take effect, if you are running force the algorithm is killed and restarted.
# NOT RUN { demo("clear-graph", package = "sigmajs") # } # NOT RUN { # }
Run the code above in your browser using DataCamp Workspace