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

Seed for deterministic layout #94

Open
dnnsthnnr opened this issue Oct 30, 2019 · 4 comments
Open

Seed for deterministic layout #94

dnnsthnnr opened this issue Oct 30, 2019 · 4 comments

Comments

@dnnsthnnr
Copy link

Hi,

currently when the layout is run everytime, then a new layout/order of the the nodes is generated.
Is there a way to apply a specific seed to the layout to have the same results if no nodes/edges are changed?

Best

@hasanbalci
Copy link
Contributor

@dnnsthnnr Unfortunately, current layout doesn't have an option to accept a seed from the user. It can be considered in the future releases.

@dnnsthnnr
Copy link
Author

@hasanbalci Can you point me in the right direction, where this should be implemented. I guess in cose-base or layout-base. Then I can work on it.

@ugurdogrusoz
Copy link
Contributor

@dnnsthnnr the extension code is rather involved, trying to explain its structure and changes needed over Github would be rather inefficient and difficult for all parties involved.

@carsten-jahn
Copy link

I looked into this for a while and had to try various cytoscape layouts to find one which comes up with a deterministic layout (given the same input graph). Found that the cose-bilkent layout from this repo is in fact deterministic and fcose is not.

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

4 participants