-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
Conversation
Current Aviator status
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.
|
This pull request failed to merge: some CI status(es) failed. Remove the Failed CI(s): Coverage |
@krlmlr this was great, but unfortunately we need the same change for |
@@ -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)) |
There was a problem hiding this comment.
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))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, investigating.
@jefferis: For natverse/nat#517 (comment).