snap-stanford / snap

Stanford Network Analysis Platform (SNAP) is a general purpose network analysis and graph mining library.
Other
2.16k stars 797 forks source link

set random seed for node2vec #191

Open maxaalexeeva opened 4 years ago

maxaalexeeva commented 4 years ago

Addresses snap-stanford/snap/issues/178 by adding random seed and num of threads args to node2vec

maxaalexeeva commented 4 years ago

This is only deterministic in the single-threaded case. In other words, to make node2vec deterministic, set num_threads to 1 (no parallelization).