diff --git a/R/make.R b/R/make.R index 28109c92a4..d159fda24b 100644 --- a/R/make.R +++ b/R/make.R @@ -339,7 +339,7 @@ graph.lcf <- function(n , shifts , repeats = 1) { # nocov start #' @inheritParams make_lattice #' @keywords internal #' @export -graph.lattice <- function(dimvector = NULL , length = NULL , dim = NULL , nei = 1 , directed = FALSE , mutual = FALSE , periodic = FALSE, circular) { # nocov start +graph.lattice <- function(dimvector = NULL , length = NULL , dim = NULL , nei = 1 , directed = FALSE , mutual = FALSE , periodic = FALSE, circular = deprecated()) { # nocov start lifecycle::deprecate_soft("2.0.4", "graph.lattice()", "make_lattice()") if (is.numeric(length) && length != floor(length)) { warning("length was rounded to the nearest integer") @@ -1672,7 +1672,7 @@ full_graph <- function(...) constructor_spec(make_full_graph, ...) #' make_lattice(length = 5, dim = 3) make_lattice <- function(dimvector = NULL, length = NULL, dim = NULL, nei = 1, directed = FALSE, mutual = FALSE, - periodic = FALSE, circular) { + periodic = FALSE, circular = deprecated()) { if (lifecycle::is_present(circular)) { lifecycle::deprecate_soft( "2.0.3", diff --git a/man/degree.Rd b/man/degree.Rd index f019f6efbd..7084f3a772 100644 --- a/man/degree.Rd +++ b/man/degree.Rd @@ -65,7 +65,7 @@ its adjacent edges. g <- make_ring(10) degree(g) g2 <- sample_gnp(1000, 10 / 1000) -max_degree(g) +max_degree(g2) degree_distribution(g2) } diff --git a/man/graph.lattice.Rd b/man/graph.lattice.Rd index 6c08918146..bfd2c80262 100644 --- a/man/graph.lattice.Rd +++ b/man/graph.lattice.Rd @@ -12,7 +12,7 @@ graph.lattice( directed = FALSE, mutual = FALSE, periodic = FALSE, - circular + circular = deprecated() ) } \arguments{ diff --git a/man/make_lattice.Rd b/man/make_lattice.Rd index f5f112d4d4..c31b03d8b9 100644 --- a/man/make_lattice.Rd +++ b/man/make_lattice.Rd @@ -13,7 +13,7 @@ make_lattice( directed = FALSE, mutual = FALSE, periodic = FALSE, - circular + circular = deprecated() ) lattice(...)