tests/testthat/test-undirected-overlapping-sbms.R

test_that("rank 1 overlapping sbms sample", {

  set.seed(27)

  n <- 10
  k <- 1
  pi <- rep(1, k) / k

  B <- matrix(0.5)

  sbm <- overlapping_sbm(n = n, pi = pi, B = B)

  expect_silent(A <- sample_sparse(sbm))
})

Try the fastRG package in your browser

Any scripts or data that you put into this service are public.

fastRG documentation built on Aug. 22, 2023, 1:08 a.m.