Forum Discussion
Louvain clustering with R wpa network_p2p
- May 30, 2022
ant_molisani - initial suspicion was right - this was resolved by adding `set.seed(seed = seed)` within the function, prior to the line where the louvain algorithm was run.
This is now being addressed in the following pull request: https://github.com/microsoft/wpa/pull/222
Once it is merged, you should be able to use the new function by installing the development version of the package on GitHub. The production version will be released in the next CRAN release cycle.
Hi ant_molisani - thank you for your question! I was able to reproduce your error, so I have created a GitHub issue (https://github.com/microsoft/wpa/issues/221) and we will look into resolving this.
My initial suspicion is that (1) Louvain is a stochastic algorithm, so seeding must happen in order to make the results deterministic, and (2) the seeding needs to happen in the function environment rather than outside of it for this to work. Will be looking into this, and will update this when we can find a solution!