Dynamically Adding New Vertecies

Aug 11, 2009 at 9:43 PM

Hi,

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,

Dirk

Developer
Aug 18, 2009 at 7:17 PM

Can you please send us some code to investigate? 

 

Thank you

 

badang

Aug 20, 2009 at 7:46 PM

Hello,

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,

Dirk