Skip to content

Conversation

@maelle
Copy link
Contributor

@maelle maelle commented Oct 17, 2025

Related to #2202

Doing this change on main, in the hope that we will then rebase the #2058 PR, because I don't want to have too many moving parts in #2058.

Copy link
Contributor

@krlmlr krlmlr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking into it!

all.equal(as.vector(M %*% v), lambda * v)
}

is.good <- function(M, v, lambda) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original implementation is better if renamed to expect_principal() and expect_ev() . We could pass the loop index i as a label or something, for clearer messages.

Comment on lines 162 to 165
G <- sample_gnm(10, sample(15:25, 1), directed = FALSE)
while (!is_connected(G)) {
G <- sample_gnm(10, sample(15:25, 1), directed = FALSE)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A repeat {} with a break avoids duplication?

@krlmlr krlmlr enabled auto-merge (squash) October 19, 2025 03:00
@krlmlr krlmlr merged commit 4c0dd30 into main Oct 19, 2025
6 checks passed
@krlmlr krlmlr deleted the new-tests branch October 19, 2025 03:22
krlmlr added a commit that referenced this pull request Oct 25, 2025
igraph 2.2.1

- Fix ASAN checks.

- Add protection to fix rchk error.

- Improve centralitystress test (#2214).

- Fix flaky test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants