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 7fb9f96 commit c5bceccCopy full SHA for c5bcecc
R/games.R
@@ -1020,7 +1020,6 @@ pa <- function(...) constructor_spec(sample_pa, ...)
1020
#' plot(sample_gnp(6, 0.5))
1021
sample_gnp <- function(n, p, directed = FALSE, loops = FALSE) {
1022
type <- "gnp"
1023
- type1 <- switch(type, "gnp" = 0, "gnm" = 1)
1024
1025
res <- erdos_renyi_game_gnp_impl(
1026
n = n,
@@ -1071,7 +1070,6 @@ gnp <- function(...) constructor_spec(sample_gnp, ...)
1071
1070
#' degree_distribution(g)
1072
sample_gnm <- function(n, m, directed = FALSE, loops = FALSE) {
1073
type <- "gnm"
1074
1075
1076
res <- erdos_renyi_game_gnm_impl(
1077
0 commit comments