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

Maintain position history #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

beyondbeneath
Copy link

This pull request adds the ability to maintain the position history while the ForceAtlas2 algorithm progresses (just within the NetworkX function, for now). This is useful if you want to create animations of the nodes from random to reaching their final resting positions.

By passing keep_history=True, it will return both the final positions, and a list of all the positions throughout the iterations.

@bhargavchippada
Copy link
Owner

@beyondbeneath Thanks for this useful functionality, I will merge the changes soon. Cheers! 👍

@Aalgarnaal
Copy link

Would be great to have this! Is there any update on the progress for this feature?

@filannim
Copy link

Any news on that review?

@beyondbeneath
Copy link
Author

There's not a lot of active developers on this repo @filannim - but if you're after the seeding, if using the PR branch is not sufficient, I think you can literally just import random and then random.seed(1) from wherever you are running it, and it might actually do what you need.

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

Successfully merging this pull request may close these issues.

4 participants