Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with deleting nodes added via popup menu #265

Open
Kok0124 opened this issue May 19, 2023 · 0 comments
Open

Issue with deleting nodes added via popup menu #265

Kok0124 opened this issue May 19, 2023 · 0 comments

Comments

@Kok0124
Copy link

Kok0124 commented May 19, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant