On 22.03.2016 03:57, Kimon wrote:
I am trying to fix the layout that I get every time that I re-run my script.
I gave input pos to sfdp a propertymap that initializes all positions to [1,1]. However, the output pos that I am getting is slightly different every time.
If you put all vertices on the same position, the repulsive force between them will be undefined. What the algorithm does in this case, is to push the vertices apart in random directions. To avoid this, you should put them initially in different positions. Furthermore, you should disable parallel processing with OpenMP which will introduce another source of non-determinism. You can do this by calling: openmp_set_num_threads(1) Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>