Setting random seed for cytoscape.js syntax layout?

In cytoscape.js 2.0.0beta1, is it possible to get a mock arbor for a deterministic result? I would like to be able to do the equivalent of setting the random seed that it uses to a fixed number.

My sample code is here: http://www.strgen.org/~jmc/cs2/ppi1.html

If you reload it, you will notice that every time the page loads, the nodes can appear in a variety of layouts.

+4
source share
1 answer

I do not think that the gazebo provides an opportunity for this, so I do not think that this would be possible without a significant revision of the gazebo itself.

0
source

Source: https://habr.com/ru/post/1441951/


All Articles