GraphStream Users

Archives de la liste Aide

Re: Simple Tree-Layout

Chronologique Discussions 
  • From: Yoann Pigné <yoann.pigne AT>
  • To: graphstream-users AT, Benjamin Aaron Degenhart < AT>
  • Subject: Re: Simple Tree-Layout
  • Date: Sat, 9 May 2015 20:21:17 +0200

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.



> On May 9, 2015, at 6:53 PM, Benjamin Aaron Degenhart
> < AT>
> 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:
> 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.

Top of page