Get/Set selected vertex

Oct 27, 2015 at 2:07 AM
Hi

Thanks for the awesome library. I've got it working in my app and now need to figure out how to get a reference to the selected vertex, or change the selected vertex.

My app is MVVM and I need to access the selected vertex from the view model using binding. I need a property that is set when the user clicks on a vertex and I need to change the selected vertex in the view model and have the graph update accordingly when the user performs some action (for example clicking the "add vertex" button.).

How can this be accomplished?

Thanks

Stuart