Skip to content

Commit

Permalink
Explicit forwarding
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Jun 24, 2024
1 parent 5efd3a3 commit 46e0f2d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
20 changes: 18 additions & 2 deletions R/games.R
Original file line number Diff line number Diff line change
Expand Up @@ -2125,6 +2125,7 @@ sample_k_regular <- k_regular_game_impl
#' graphs. Random Structures & Algorithms, 42, 480-508.
#' \doi{10.1002/rsa.20450}
#'
#' @inheritParams rlang::args_dots_empty
#' @param out.weights A vector of non-negative vertex weights (or out-weights).
#' In sparse graphs, these will be approximately equal to the expected
#' (out-)degrees.
Expand Down Expand Up @@ -2169,9 +2170,24 @@ sample_k_regular <- k_regular_game_impl
sample_chung_lu <- chung_lu_game_impl

#' @rdname sample_chung_lu
#' @param ... Passed to `sample_chung_lu()`.
#' @export
chung_lu <- function(...) constructor_spec(sample_chung_lu, ...)
chung_lu <- function(
out.weights,
in.weights = NULL,
...,
loops = TRUE,
variant = c("original", "maxent", "nr")
) {
variant <- rlang::arg_match(variant)
constructor_spec(
sample_chung_lu,
out.weights,
in.weights,
...,
loops = loops,
variant = variant
)
}


#' Random graphs from vertex fitness scores
Expand Down
10 changes: 8 additions & 2 deletions man/sample_chung_lu.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 46e0f2d

Please sign in to comment.