layouts comparison

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

layouts comparison

Tudor Girba
Hi,

Just for fun, I created a class in the GraphViz package that takes a  
given view script and generates files with different layouts. This  
might be useful for deciding on the kinds of layouts that might be  
appropriate for your graphs. I put this in the MondrianGraphVizLayout  
package because I have hard references to GraphViz classes.

Here is an example:
MOAllLayouts exportView: [:view |
        view nodes: (1 to: 100).
        view shape arrowedLine.
        view edges: (1 to: 100) from: [:x | x // 10] to: #yourself.
        view nodes: (100 to: 200).
        view shape arrowedLine.
        view edges: (100 to: 200) from: [:x | (x // 10) + 100 ] to: #yourself.
]

The result is attached here.

Cheers,
Doru

--
www.tudorgirba.com

"We cannot reach the flow of things unless we let go."




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

layouts.zip (880K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: layouts comparison

Alexandre Bergel-4
Cool :-)

Alexandre


On 10 May 2010, at 13:06, Tudor Girba wrote:

> Hi,
>
> Just for fun, I created a class in the GraphViz package that takes a  
> given view script and generates files with different layouts. This  
> might be useful for deciding on the kinds of layouts that might be  
> appropriate for your graphs. I put this in the  
> MondrianGraphVizLayout package because I have hard references to  
> GraphViz classes.
>
> Here is an example:
> MOAllLayouts exportView: [:view |
> view nodes: (1 to: 100).
> view shape arrowedLine.
> view edges: (1 to: 100) from: [:x | x // 10] to: #yourself.
> view nodes: (100 to: 200).
> view shape arrowedLine.
> view edges: (100 to: 200) from: [:x | (x // 10) + 100 ] to:  
> #yourself.
> ]
>
> The result is attached here.
>
> Cheers,
> Doru
>
> --
> www.tudorgirba.com
>
> "We cannot reach the flow of things unless we let go."
>
> <layouts.zip>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev