GraphStream Users

Archives de la liste Aide

Re: Simple Tree-Layout

Chronologique Discussions 
  • From: Benjamin Aaron Degenhart < AT>
  • To: guilhelm savin <guilhelm.savin AT>
  • Cc: graphstream-users AT, Yoann Pigné <yoann.pigne AT>
  • Subject: Re: Simple Tree-Layout
  • Date: Sun, 10 May 2015 19:59:02 +0200

Haha, ok, thanks for the invitation! I might actually give it a try... just not right now, but maybe soon.


On Sun, May 10, 2015 at 7:50 PM, guilhelm savin <guilhelm.savin AT> wrote:
But if you want to complete this layout, you are really welcome ! :)

Le dim. 10 mai 2015 à 19:49, Benjamin Aaron Degenhart < AT> a écrit :
Oh, I see. Thanks for the reply though.

On Sun, May 10, 2015 at 7:43 PM, guilhelm savin <guilhelm.savin AT> wrote:

I am afraid that this class is just a "work in progress" (and since a long time....), that should not be included inside the release. So this is not a big surprise that the result is a bit random... Sorry for that.


Le sam. 9 mai 2015 à 21:54, Benjamin Aaron Degenhart < AT> a écrit :
I see, thanks for your reply Yoann!

Then I am wondering though why the layout produced by the HierarchicalLayout class looks so odd in comparison to the result by an equivalently named algorithm in yEd for instance:
Guilhelm, am I using your class wrong?

Best regards,

On Sat, May 9, 2015 at 8:21 PM, Yoann Pigné <yoann.pigne AT> wrote:
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