Skip to content

Commit

Permalink
fix: preserve as.undirected() signature thanks to @jhollway
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle authored and aviator-bot committed Oct 14, 2024
1 parent 0d96334 commit 4d0924d
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 4d0924d

Please sign in to comment.