anvaka / VivaGraphJS

Graph drawing library for JavaScript
Other
3.76k stars 425 forks source link

Graph with fixed position #142

Open ArnauC opened 9 years ago

ArnauC commented 9 years ago

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 commented 9 years ago

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

anvaka commented 9 years ago

@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 commented 9 years ago

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