sg_clear_p

0th

Percentile

Clear or kill the graph

Clear all nodes and edges from the graph or kills the graph.

Kill the graph to ensure new data is redrawn, useful in Shiny when graph is not updated by sigmajsProxy.

Usage
sg_clear_p(proxy, refresh = TRUE)

sg_kill_p(proxy, refresh = TRUE)

sg_kill(sg)

sg_clear(sg)

Arguments
proxy

An object of class sigmajsProxy as returned by sigmajsProxy.

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.

sg

An object of class sigmajsas intatiated by sigmajs.

Aliases
  • sg_clear_p
  • sg_kill_p
  • sg_kill
  • sg_clear
Examples
# NOT RUN {
demo("clear-graph", package = "sigmajs")
# }
# NOT RUN {
# }
Documentation reproduced from package sigmajs, version 0.1.3, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.