How to reload graph in cytoscape.js?

前端 未结 1 1491
我寻月下人不归
我寻月下人不归 2021-01-13 03:54

Is there a function that resets the graph to it\'s freshly loaded state? I\'ve tried cy.reset() but that just resets zoom and pan, not restoring to the virgin graph.

<
1条回答
  •  再見小時候
    2021-01-13 04:28

    Call cy.elements().remove() and cy.add() with the same graph data.

    0 讨论(0)
提交回复
热议问题