-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
results of leiden.community not reproducible across OS #11
Comments
Do you have a graph I could use to reproduce this behavior?
Otherwise, I can’t fix it
…On Fri, Jul 29, 2022 at 04:41 Marie Oestreich ***@***.***> wrote:
Hi!
I have run leidenAlg::leiden.community() on the exact same graph g and
with identical seeds on Windows and on Linux and the results differ. Is
there a known reason (and maybe even fix) for this?
Cheers,
Marie
Code:
set.seed(168575)
partition <- leidenAlg::leiden.community(graph = g, n.iterations = 50)
Expected behaviour: partition is the same when running code on Windows and
Linux.
Observed behaviour: partition is different.
—
Reply to this email directly, view it on GitHub
<#11>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVFHALUKLBN47FO74YZXZTVWOKMLANCNFSM5477L4XQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Could you try installing the package from this branch? https://github.com/kharchenkolab/leidenAlg/tree/no_cpp Please check if the problem remains |
Are you able to see reproducible clusters across OS using igraph::cluster_leiden()? If so, we could try using this. |
Hi, sorry for the delayed response. I will attach a file that holds the edges and weights for a graph where I observed this problem.
|
Yes, this is related to #10 If this is an issue for |
@vtraag is on holiday now and he is the one who knows the Leiden algorithm inside and out, but I've taken a cursory glance at the source code in the meantime and made some tests. |
Thanks for the help, @ntamas |
@MarieOestreich So, unfortunately I cannot reproduce this in my environment. I tried your
I observe the same result in the following environments:
The summary of the partition is this:
Can you let me know the exact R and igraph version that you are using on both platforms and whether it is the official CRAN R or some other R distribution (Anaconda R, Microsoft R Open etc)? |
Thanks for covering in my absense @ntamas! In addition to the tests for Given that a seed is also set here in this R interface Line 70 in e0eeef6
I would assume that the R interface would also yield identical results for both Linux and Windows, whenever a seed it set in R. Without being able to reproduce the issue it seems difficult to track it down. |
Hi!
I have run
leidenAlg::leiden.community()
on the exact same graphg
and with identical seeds on Windows and on Linux and the results differ. Is there a known reason (and maybe even fix) for this?Cheers,
Marie
Code:
set.seed(168575)
partition <- leidenAlg::leiden.community(graph = g, n.iterations = 50)
Expected behaviour: partition is the same when running code on Windows and Linux.
Observed behaviour: partition is different.
The text was updated successfully, but these errors were encountered: