Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Layout randomly #71

Closed
ghost opened this issue Nov 23, 2016 · 4 comments
Closed

Change Layout randomly #71

ghost opened this issue Nov 23, 2016 · 4 comments

Comments

@ghost
Copy link

ghost commented Nov 23, 2016

Hello,
if i use e.g. the FR algorithm and then use it again by clicking a button, it changes the layout. But the algorithm is the same. So why should it change with same algorithm and same data?
Thanks:)

@ghost
Copy link
Author

ghost commented Nov 23, 2016

https://postimg.org/image/5ato736ql/
https://postimg.org/image/s0xedtfbx/
Same algorithm and same data but differnt layout, why?

@panthernet
Copy link
Owner

Hello, that's because some algorithms use random initial positions to provide different layout results. You can use algorithm Seed property to specify exact seed if you want one layout result to persist through many generations.

@ghost
Copy link
Author

ghost commented Nov 24, 2016

Can you give me an example for some algorithm please?

@panthernet
Copy link
Owner

To be correct you have to set Seed property for layout algorithm parameters like:
graphArea.LogicCore.DefaultLayoutAlgorithmParams.Seed = 20939202;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant