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

fix: bfs() no longer pads order with zeros with igraph_options(return.vs.es = FALSE) #1124

Merged
merged 3 commits into from
Jan 20, 2024

Conversation

krlmlr
Copy link
Contributor

@krlmlr krlmlr commented Jan 20, 2024

Copy link
Contributor

aviator-app bot commented Jan 20, 2024

Current Aviator status

Aviator will automatically update this comment as the status of the PR changes.
Comment /aviator refresh to force Aviator to re-examine your PR (or learn about other /aviator commands).

This PR was merged using Aviator.


See the real-time status of this PR on the Aviator webapp.

Use the Aviator Chrome Extension to see the status of your PR within GitHub.

@krlmlr krlmlr added this to the upgrade milestone Jan 20, 2024
@aviator-app aviator-app bot added the blocked label Jan 20, 2024
Copy link
Contributor

aviator-app bot commented Jan 20, 2024

This pull request failed to merge: some CI status(es) failed. Remove the blocked label to re-queue.

Failed CI(s): Coverage

@krlmlr krlmlr removed the blocked label Jan 20, 2024
@aviator-app aviator-app bot merged commit ba56d83 into main Jan 20, 2024
14 checks passed
@aviator-app aviator-app bot deleted the b-bfs-pad branch January 20, 2024 20:14
@jefferis
Copy link

@krlmlr this was great, but unfortunately we need the same change for dfs() as well.

@@ -6,4 +6,7 @@ test_that("DFS uses 1-based root vertex index", {
test_that("DFS does not pad order", {
g <- make_star(3)
expect_equal(as.numeric(dfs(g, root = 2, unreachable = FALSE)$order), c(2, 1))

local_igraph_options(return.vs.es = FALSE)
expect_equal(as.numeric(bfs(g, root = 2, unreachable = FALSE)$order), c(2, 1))

Choose a reason for hiding this comment

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

I guess this should have been

expect_equal(as.numeric(**dfs**(g, root = 2, unreachable = FALSE)$order), c(2, 1))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, investigating.

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

Successfully merging this pull request may close these issues.

2 participants