Skip to content
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

Failure in test suite with upcoming igraph version #1

Closed
szhorvat opened this issue Sep 5, 2024 · 4 comments
Closed

Failure in test suite with upcoming igraph version #1

szhorvat opened this issue Sep 5, 2024 · 4 comments

Comments

@szhorvat
Copy link

szhorvat commented Sep 5, 2024

I am writing on behalf of igraph. The priorCON test suite fails with the upcoming igraph version, as it assumes a specific output for igraph::cluster_louvain(). The issue is here:

# Detect graph communities using the louvain algorithm
pre_graphs <- get_metrics(combined_edge_list, which_community = "louvain")
expect_equal(
head(pre_graphs$memberships[[1]]),
c(31, 48, 48, 48, 48, 31)
)

You can see a discussion of the test output here: igraph/rigraph#1470 (comment)

igraph::cluster_louvain() implements a stochastic algorithm. With such algorithms, we do not guarantee that the output won't change for the same random seed across bugfix versions. It will in fact change in the next R/igraph release—this was necessitated by a bugfix (igraph/igraph#2650).

What we do guarantee is unchanged statistical properties.

Let me know if you have questions 😊

cadam00 added a commit that referenced this issue Sep 5, 2024
@cadam00
Copy link
Owner

cadam00 commented Sep 5, 2024

Thanks a lot!!!! I just took care of it and I do not use the exact values of the memberships for testing!!! Is it alright now?
I corrected the Github version, but I think that I must wait about 2 weeks before resubmitting on CRAN (first package publish was done on 2024-08-19).

Do you think that I might resubmit it even right now on CRAN?

@szhorvat
Copy link
Author

szhorvat commented Sep 5, 2024

Thanks so much for the amazingly quick response!

@krlmlr @maelle, do you have any input for the question above? Or generally about the urgency of resubmitting?

(I don't do that much R myself, I was just the one responsible for the bugfix that triggered the issue here :-)

@krlmlr
Copy link

krlmlr commented Sep 7, 2024

Thanks. An update now should be fine, it would only be flagged if it's less than a week ago (or if you had more than six updates in the last 180 days).

@cadam00
Copy link
Owner

cadam00 commented Sep 7, 2024

Ok thanks!!! I will make a try!!!! I close this issue now and in case that something else prompts please do not hesitate to notify me!!!!

@cadam00 cadam00 closed this as completed Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants