I am a newbie here.
It seems that graphComponent.morphLayout(layout) is not executed at the end of the initialize() function. I can later, manually (i.e. via a button) can initiate the layout redraw and it works all right. It's just in the beginning all nodes are sitting in the middle of the canvas (overlapping each other), they are not distributed according to the layout.
What did I do wrong, what did I miss?