Skip to content

Issue with deleting nodes added via popup menu #265

@Kok0124

Description

@Kok0124

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions