Skip to content

Commit b548ab9

Browse files
committed
chore: Fix call in graph.lcf()
1 parent 4321fc3 commit b548ab9

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

R/make.R

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -383,20 +383,8 @@ graph.star <- function(
383383
graph.lcf <- function(n, shifts, repeats = 1) {
384384
# nocov start
385385
lifecycle::deprecate_soft("2.1.0", "graph.lcf()", "graph_from_lcf()")
386-
# Argument checks
387-
n <- as.numeric(n)
388-
shifts <- as.numeric(shifts)
389-
repeats <- as.numeric(repeats)
390-
391-
on.exit(.Call(R_igraph_finalizer))
392-
# Function call
393-
res <- .Call(R_igraph_lcf_vector, n, shifts, repeats)
394-
395-
if (igraph_opt("add.params")) {
396-
res$name <- "LCF graph"
397-
}
398-
399-
res
386+
# Use the _impl function
387+
lcf_vector_impl(n = n, shifts = shifts, repeats = repeats)
400388
} # nocov end
401389

402390
#' Create a lattice graph

0 commit comments

Comments
 (0)