This project is read-only.

Dynamically Adding New Vertecies

Aug 11, 2009 at 10:43 PM


I am trying to create a very simple application that allows a user to modify a graph.  I am able to create the graph and display it but when the user clicks a button that modifies the graph nothing happens.  Do I have to redraw somehow?  I am currently working with the example from the video tutorial.  I just added a button and that button calls a method which creates a new graph and sets _graphToVisualize to that new graph.

Thank you in advance for the help,


Aug 18, 2009 at 8:17 PM

Can you please send us some code to investigate? 


Thank you



Aug 20, 2009 at 8:46 PM


I was able to figure out my problem with this.  The tutorial used a bidirectionalgraph and to be able to add vertices on the fly I needed to use a MutableBidirectionalGraph.  Once I replaced this it worked fine.

Thanks again,