Skip to content

Commit a0d23cc

Browse files
committed
Fix docs for groupings
1 parent ff9ed18 commit a0d23cc

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

R/group.R

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@
2424
#' @param trials Number of times partition of the network should be attempted
2525
#' @param steps The number of steps in the random walks
2626
#' @param options Settings passed on to `igraph::arpack()`
27-
#' @param resolution Resolution of the modularity function used internally in the algorithm
27+
#' @param resolution Resolution of the modularity function used internally in
28+
#' the algorithm
29+
#' @param objective_function Either `"CPM"` (constant potts model) or
30+
#' `"modularity"`. Sets the objective function to use.
31+
#' @param beta Parameter affecting the randomness in the Leiden algorithm. This
32+
#' affects only the refinement step of the algorithm.
33+
#' @param n The number of iterations to run the clustering
2834
#' @param ... arguments passed on to [igraph::cluster_spinglass()]
2935
#'
3036
#' @return a numeric vector with the membership for each node in the graph. The
@@ -162,6 +168,7 @@ group_leiden <- function(weights = NULL, resolution = 1, objective_function = 'C
162168
if (is.null(weights)) {
163169
weights <- NA
164170
}
171+
# `resolution_parameter` may be renamed to `resolution` in future release of igraph
165172
res_arg <- if ("resolution" %in% names(formals(igraph::cluster_leiden))) {
166173
'resolution'
167174
} else {

man/group_graph.Rd

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)