computeLayout method
Repeatedly run iterate until a stable layout is obtained.
This method is not guaranteed to terminate; be careful when using it on complex graphs. Subclasses of InteractiveLayoutAlgorithm are expected to override this method, providing their own implementation which must always terminate.
Implementation
@override
void computeLayout() {
while (!iterate()) {}
}