Hi Benjamin,
Your code is actually running two layout algorithms; the default one and the hierarchical one.
In order to deactivate the default layout, pass parameter `false` to the graph.display method :
Viewer viewer = graph.display(false);
Since the hierarchical layout computes only once (after each graph update I guess), this will also answer your second question about animation.
Regards,
Yoann
> On May 9, 2015, at 6:53 PM, Benjamin Aaron Degenhart <b.degenhart.study AT gmail.com> wrote:
>
> Hello there,
>
> graphstream seems great, I'd like to use it!
>
> Unfortunately I am failing (despite searching around) at the simple task to create a tree-layout in an example: https://gist.github.com/benjaminaaron/6f95c3dca98c124acd15
> I would be grateful for some guidance as to what I need for the result to be a hierarchical layout and not the default one.
> Also is there a way I can shorten or avoid the animation and have the layouted graph immediately?
>
> Greetings from Munich, Germany,
> Benjamin
Archives gérées par MHonArc 2.6.16.