Clear
Removes all nodes and edges from the canvas, allowing it to be reused. This method does not require any parameters.
canvas.clear()
Removes all nodes and edges from the canvas, allowing it to be reused. This method does not require any parameters.
canvas.clear()