When I first populate a graph, all the nodes appear stacked on the top-left corner. When I invoke applyLayout()
on the graph, the nodes move to the appropriate location with a nice animation. However, after I change the graph (remove some nodes, adds others) and invoke applyLayout()
again, all the nodes move to their appropriate location, but they start at the top-left corner again.
Is there a way to make the nodes move from their current location to the new one, without having them reset to the top-left?