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

Graph with fixed position #142

Open
ArnauC opened this issue May 4, 2015 · 3 comments
Open

Graph with fixed position #142

ArnauC opened this issue May 4, 2015 · 3 comments

Comments

@ArnauC
Copy link

ArnauC commented May 4, 2015

Hi, another question:

Is there any way to achieve always the same visualisation of the graph given a predefined data?

I mean, given a set of nodes and relations between them, obtain always the same position of the nodes?

@julbra
Copy link

julbra commented May 22, 2015

Have you tried setting the theta coefficient to 0 in the layout parameters?

  • Theta coefficient from Barnes Hut simulation. Ranged between (0, 1). The closer it's to 0 the more nodes algorithm will have to go through. Setting it to zero makes Barnes Hut simulation no different from brute-force forces calculation (each node is considered)
    theta: 1, // default: 0.8

@anvaka
Copy link
Owner

anvaka commented May 22, 2015

@ArnauC the layout should be the same if you run the same number of iterations. VivaGraph uses seeded random number generator, so everything should look the same for the same graph.

Do you see it renders graphs differently every time?

@julbra
Copy link

julbra commented May 29, 2015

I can confirm that the layout is definitely deterministic, this should be closed.

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

3 participants