gephi-toolkit icon indicating copy to clipboard operation
gephi-toolkit copied to clipboard

VisualizationController getSelectedEdges()/getSelectedNodes()

Open jbliesener opened this issue 6 years ago • 1 comments

Is there a way to get the currently selected edges or nodes in a graph?

I see that SelectionManager has a method getSelectedNodes(), but SelectionManager is not a public interface (I'd have to cast VisualizationController to VizController and call getSelectionManager to get it).

But then, SelectionManager lacks a getSelectedEdges() method...

Also, VisualizationController does not have any listeners that would allow me to keep track when edges are selected or deselected.

I need this for my "Average weight of selected edges" statistics plugin...

Any clue? Thank you!

jbliesener avatar Apr 26 '18 21:04 jbliesener

Hi, getSelectedEdges is not implemented in the current version, and the VizController is exposed though not in a modular way.

This will change in a future release, as I am re-implementing the whole visualization module from scratch, in a reusable and extensible way.

eduramiba avatar Apr 27 '18 13:04 eduramiba

Hi @jbliesener I'm cleaning up old issues on the toolkit. I think this one is resolved, see https://github.com/gephi/gephi/commit/38fcedeb55ccf2120afebd906d871c61e381e048

mbastian avatar Mar 17 '23 20:03 mbastian