Skip to content

Commit

Permalink
chore!: remove deprecated neimode parameter from bfs / dfs; ori…
Browse files Browse the repository at this point in the history
…ginally planned for removal in 1.4.0
  • Loading branch information
maelle committed Sep 24, 2024
1 parent a34e7c0 commit 663c2be
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions R/structural.properties.R
Original file line number Diff line number Diff line change
Expand Up @@ -2140,14 +2140,11 @@ bfs <- function(
ensure_igraph(graph)

if (lifecycle::is_present(neimode)) {
lifecycle::deprecate_warn(
lifecycle::deprecate_stop(
"1.3.0",
"bfs(neimode)",
"bfs(mode)"
)
if (missing(mode)) {
mode <- neimode
}
}

if (length(root) == 1) {
Expand Down Expand Up @@ -2315,14 +2312,11 @@ dfs <- function(graph, root, mode = c("out", "in", "all", "total"),
rho = parent.frame(), neimode = deprecated()) {
ensure_igraph(graph)
if (lifecycle::is_present(neimode)) {
lifecycle::deprecate_warn(
lifecycle::deprecate_stop(
"1.3.0",
"dfs(neimode)",
"dfs(mode)"
)
if (missing(mode)) {
mode <- neimode
}
}

root <- as_igraph_vs(graph, root) - 1
Expand Down

0 comments on commit 663c2be

Please sign in to comment.