Skip to content

Commit

Permalink
fix: preserve as.undirected() signature thanks to @jhollway (#1536)
Browse files Browse the repository at this point in the history
  • Loading branch information
aviator-app[bot] authored Oct 14, 2024
2 parents 0d96334 + 4d0924d commit 9f5df19
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 4 additions & 2 deletions R/conversion.R
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,9 @@ as.directed <- function(graph, mode = c("mutual", "arbitrary", "random", "acycli
#' @inheritParams as_undirected
#' @keywords internal
#' @export
as.undirected <- function(graph, mode = c("collapse", "each", "mutual")) {
as.undirected <- function(graph,
mode = c("collapse", "each", "mutual"),
edge.attr.comb = igraph_opt("edge.attr.comb")) {
lifecycle::deprecate_soft("2.1.0", "as.undirected()", "as_undirected()")
as_undirected(graph = graph, mode = mode)
as_undirected(graph = graph, mode = mode, edge.attr.comb = edge.attr.comb)
}
12 changes: 11 additions & 1 deletion man/as.undirected.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9f5df19

Please sign in to comment.