Closed rudaoshi closed 3 years ago
@rudaoshi can you please provide more detatils?
adding new vertex failed.
error?model.clear()
clears the model and new vertex can be added when enclosed within the regular model.beginUpdate()
/model.endUpdate()
Try this, it works for me graph.removeCells(graph.getChildVertices(graph.getDefaultParent()));
I am also facing the same issue as @rudaoshi. If I invoke graph.removeCells(graph.getChildVertices(graph.getDefaultParent())); as suggested, the vertices are removed but if there are dangling edges (unconnected edges) in the graph they are not removed. If I invoke model.clear() everything gets deleted, even dangling edges but then adding new vertex fails.