You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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 theEditingPopupGraphMousePlugin
(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!
The text was updated successfully, but these errors were encountered: