I have an issue with the way a graph displays itself after a layout change.
I allow the user to change the layout style of an existing graph. Once the new layout is applied, the resulting graph does not fill the viewport very well (it may group itself into a corner, or display itself with a height / width ratio that is nothing like the viewport.
As an example, if a graph has many nodes, and a circle layout is used, I can see the circle layout nicely in the viewport (much like doing a zoomToFit). If I then change the layout to something like a ForceDirected, Tree or LayeredDigraph, the resulting graph does not fit well in the viewport - its width / height ratio seems to be very different to the actual viewport, and seems to have been influenced by the calculated size of the previous Circle layout.
What I would like is for each layout change to result in a graph displayed as though it had been a new graph that had been loaded with all nodes and links - the graph being compact and fitted nicely to the viewport.