We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebac5c8 commit 8930c11Copy full SHA for 8930c11
1 file changed
R/make.R
@@ -698,25 +698,7 @@ undirected_graph <- function(...) constructor_spec(make_undirected_graph, ...)
698
#' @examples
699
#' make_empty_graph(n = 10)
700
#' make_empty_graph(n = 5, directed = FALSE)
701
-make_empty_graph <- function(n = 0, directed = TRUE) {
702
- # Argument checks
703
- if (is.null(n)) {
704
- stop("number of vertices must be an integer")
705
- }
706
-
707
- n <- suppressWarnings(as.numeric(n))
708
- if (is.na(n)) {
709
710
711
712
- directed <- as.logical(directed)
713
714
- on.exit(.Call(R_igraph_finalizer))
715
- # Function call
716
- res <- .Call(R_igraph_empty, n, directed)
717
718
- res
719
-}
+make_empty_graph <- empty_impl
720
721
#' @rdname make_empty_graph
722
#' @param ... Passed to `make_graph_empty`.
0 commit comments