VivaGraphJS icon indicating copy to clipboard operation
VivaGraphJS copied to clipboard

Graph with fixed position

Open ArnauC opened this issue 9 years ago • 3 comments

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?

ArnauC avatar May 04 '15 12:05 ArnauC

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

julbra avatar May 22 '15 12:05 julbra

@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?

anvaka avatar May 22 '15 17:05 anvaka

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

julbra avatar May 29 '15 16:05 julbra