When I want to dynamically add a vertex or edge to a graph,
I should be able to update the layout without creating a new layout,
i did not find and methods to do this in the docs,
and also couldn't find how graphmouse does it, so i had to resort to doing:
treeLayout = new TreeLayout<String,Integer>(graph);
i saw that in 1.7.6 version argkit did:
vv.stop();
vv.restart();
One could also dynamically update the layout with:
vv.getModel().fireStateChanged();
you can also use,
VisualizationViewer<V,E> vv = ...;
vv.repaint();