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

sg_kill(sg)

Arguments

sg

An object of class sigmajsas intatiated by sigmajs.