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

Deterministic initial layout #7

Closed
jacomyal opened this issue Jan 31, 2020 · 4 comments
Closed

Deterministic initial layout #7

jacomyal opened this issue Jan 31, 2020 · 4 comments

Comments

@jacomyal
Copy link
Owner

Randomizing the initial layout should be an option (maybe even seedable), because at the moment, rerunning the same command with a single option that differs returns a different layout, which may appear unexpected.

@Yomguithereal
Copy link
Collaborator

I should add a way to provide custom rng here: https://github.com/graphology/graphology-layout#random

The seedrandom lib is top notch for this.

@jacomyal
Copy link
Owner Author

I don't get it, your documentation says I actually can provide custom rng. Is it not implemented yet ?

@jacomyal
Copy link
Owner Author

Also, I was more thinking on starting every nodes on a circle or something

@Yomguithereal
Copy link
Collaborator

I dif not read my own documentation correctly :)

jacomyal added a commit that referenced this issue Jan 31, 2020
Details:
- Layout, colors loading and normalization management code moved to
specific JS files
- Normalization magically rescales all nodes to fit image the best
- Option `size` has been removed, and `s` is now an alias for `steps`
- Option `seed` has been added, to obtain repetable results with this
program
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

2 participants