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

Allow specifying start position of nodes #20

Closed
thomasp85 opened this issue Aug 16, 2019 · 3 comments
Closed

Allow specifying start position of nodes #20

thomasp85 opened this issue Aug 16, 2019 · 3 comments
Labels
question Further information is requested

Comments

@thomasp85
Copy link

While not being fully clear on the underlying algorithms, most layout algorithms sample some start position of the nodes and then iterate on that. In igraph it is possible to provide the start position and it only sample if none is given. Will this be possible for the layouts herein as well?

@schochastics
Copy link
Owner

layout_with_stress() can be initialized with an mds layout (specified with mds=TRUE). But ultimately it does not matter for any of the algorithms in graphlayouts, because all algorithms are deterministic (up to rotations and maybe minimal shifts, but not as crazy as some of the igraph layouts). The results will always be independent of the chosen initial layout.

I am actually thinking about hardcoding a set seed in most layout function to always return the exact same result to get rid of the rotation problem. I know that this is done in some other software for stress layouts.

@schochastics schochastics added the question Further information is requested label Aug 16, 2019
@thomasp85
Copy link
Author

I see... so if you had a dynamic network and calculated the layout at time t and time t+Δ you’d get two layouts that were pretty close to each other (assuming not a lot happened in Δ time?

@schochastics
Copy link
Owner

Yes...probably but the rotation of the layout may well be different. For dynamic networks, there are better options:
This is pretty good. Is actually on my list. maybe I give it a go over the weekend.

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

No branches or pull requests

2 participants