jung icon indicating copy to clipboard operation
jung copied to clipboard

Issue with deleting nodes added via popup menu

Open Kok0124 opened this issue 1 year ago • 0 comments

Hi all!

I've been working with JUNG and encountered a recurring issue that I may have identified. The problem is with the EditingModalGraphMouse class. Specifically, if I add a node to an empty graph using the popup menu, I am unable to delete that node right after it. I was able the delete the node after adding a new one with the edit mode.

I managed to solve this by adding vv.getNodeSpatial().recalculate() at the end of the node creation part in the EditingPopupGraphMousePlugin (after line 91).

I'm not entirely sure what the vv.getNodeSpatial().recalculate() function does exactly, but I think it should be called when adding a new node with the popup menu.

Thanks!

Kok0124 avatar May 19 '23 14:05 Kok0124