Moving nodes in gephi
Posted: 14 Feb 2017 14:14
Hi,
Is there a simple way to drag a selected node using gephi,
I'm using the demo project, so in the MouseListnerTemplate I implement the moussePressed method to save the initial mouse click on the node
(X and Y ).
then in the mouseDragged method I set the node position with the PreviewMouseEvent X and Y attributes (selectedNode.setPosition(event.x, event.y);).
but that doesn't work as I want, the position of the node doesn't change.
And I think also that I need to change the postion of the edges related to this node,
Any ideas.
Thanks in advance.
Is there a simple way to drag a selected node using gephi,
I'm using the demo project, so in the MouseListnerTemplate I implement the moussePressed method to save the initial mouse click on the node
(X and Y ).
then in the mouseDragged method I set the node position with the PreviewMouseEvent X and Y attributes (selectedNode.setPosition(event.x, event.y);).
but that doesn't work as I want, the position of the node doesn't change.
And I think also that I need to change the postion of the edges related to this node,
Any ideas.
Thanks in advance.