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)
I disabled the openmp command because it gives me an error that it's not
enabled anyway:
"OpenMP was not enabled during compilation".
Every time that I press shift + enter in Jupyter to re-run the above piece
of code (without running
anything else in-between) I get a different pos output.
Any news in that front? I tried various things but every time I get different
result.
Is the method deterministic? If not how can I initialize its seed?